Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 534152

Summary: Create a rotation in the "Recommended" section on the home page of eclipse.org
Product: Community Reporter: Eric Poirier <eric.poirier>
Component: WebsiteAssignee: Eric Poirier <eric.poirier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: chris.guindon, stephanie.swart, thabang.mashologu
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/146395
https://git.eclipse.org/r/146396
https://git.eclipse.org/r/146457
https://git.eclipse.org/c/www.eclipse.org/eclipse.org-common.git/commit/?id=f59a11c7ee8edb1dd3b920074821332d26dcea9f
https://git.eclipse.org/c/www.eclipse.org/home.git/commit/?id=cc33127072dca6dbe1c1ee4c6b8408e0b5ae2113
https://git.eclipse.org/r/146679
https://git.eclipse.org/r/146680
https://git.eclipse.org/c/www.eclipse.org/home.git/commit/?id=a3b6f3400751e50d5dc16dd4933bfb7de766db48
https://git.eclipse.org/c/www.eclipse.org/eclipse.org-common.git/commit/?id=19b7aee0f84f63c362043f7e139871da5e71046f
https://git.eclipse.org/r/147118
https://git.eclipse.org/r/147191
https://git.eclipse.org/c/www.eclipse.org/eclipse.org-common.git/commit/?id=e8eb7f5a9fd8a8e0ca78ce7ea3ae939a377f4a72
https://git.eclipse.org/c/www.eclipse.org/home.git/commit/?id=a3cf879aa27c8822ae500d5d04be15e0eacacb42
Whiteboard:
Bug Depends on: 534539    
Bug Blocks:    

Description Eric Poirier CLA 2018-04-27 09:09:35 EDT
As discussed with Stephanie, we would like to create a rotation mechanism to include multiple "Recommended" section of eclipse.org home page.

I'm opening this bug to figure out which of the 2 following solutions would be best.

1. Rotate randomly between all the Recommended story (a little like what we do for our eclipse ads)

This would allow us to create multiple Recommended Stories, set a higher weight for the ones we would like to show more often.

2. Show Recommended story by dates

This will show only one Recommended story at a time and will change at a certain date.


I think both these options are valid, just depends how we would like to show this to our users.
Comment 1 Christopher Guindon CLA 2018-04-27 10:03:43 EDT
I think we could do both without too much work.

We could create a file that Stephanie would maintain. This file would be a list of Recommended stories:

This is an example: 

Title: "News 1"
Body: "Body text 1."
Link: "https://..."
start_date: "May 1, 2018"
end_date "May 2, 2018" 

Title: "News 2"
Body: "Body text 1."
Link: "https://..."
start_date: "May 1, 2018"
end_date "May 2, 2018" 

Title: "News 3"
Body: "Body text 1."
Link: "https://..."
start_date: "May 2, 2018"
end_date "May 3, 2018" 

Title: "News 3"
Body: "Body text 1."
Link: "https://..."
start_date: null
end_date "null

* Before May 1st, News item 3 would appear.
* Between May 2-3, the site would randomly pick between News 2 and News 3
After May 3, News 3 would become the default.

It will be important to always include a news item without a start and end date as a fallback news item.
Comment 2 Eric Poirier CLA 2018-04-27 10:11:13 EDT
(In reply to Christopher Guindon from comment #1)
> I think we could do both without too much work.
> 
> We could create a file that Stephanie would maintain. This file would be a
> list of Recommended stories:
> 
> This is an example: 
> 
> Title: "News 1"
> Body: "Body text 1."
> Link: "https://..."
> start_date: "May 1, 2018"
> end_date "May 2, 2018" 
> 
> Title: "News 2"
> Body: "Body text 1."
> Link: "https://..."
> start_date: "May 1, 2018"
> end_date "May 2, 2018" 
> 
> Title: "News 3"
> Body: "Body text 1."
> Link: "https://..."
> start_date: "May 2, 2018"
> end_date "May 3, 2018" 
> 
> Title: "News 3"
> Body: "Body text 1."
> Link: "https://..."
> start_date: null
> end_date "null
> 
> * Before May 1st, News item 3 would appear.
> * Between May 2-3, the site would randomly pick between News 2 and News 3
> After May 3, News 3 would become the default.
> 
> It will be important to always include a news item without a start and end
> date as a fallback news item.

+1

This would solve our rotation issue and also prevent the site from showing outdated news items at all times.
Comment 3 Stephanie Swart CLA 2019-07-05 08:22:00 EDT
Should this be an MBO for Q3? 

I've put together a schedule in a Gsheet to start us off:
https://docs.google.com/spreadsheets/d/1vBRLl5RQHieZ5lG2DbkrP4xqzciACmCt9a1Z7JFIWKg/edit?usp=sharing
Comment 4 Christopher Guindon CLA 2019-07-05 11:04:17 EDT
(In reply to Stephanie Swart from comment #3)
> Should this be an MBO for Q3? 
> 
> I've put together a schedule in a Gsheet to start us off:
> https://docs.google.com/spreadsheets/d/
> 1vBRLl5RQHieZ5lG2DbkrP4xqzciACmCt9a1Z7JFIWKg/edit?usp=sharing

I don't think this needs to be an MBO since we currently have a work around.

With this said, I will increase the priority so that we can get this done sooner rather than later!
Comment 5 Eclipse Genie CLA 2019-07-19 13:50:15 EDT
New Gerrit change created: https://git.eclipse.org/r/146395
Comment 6 Eclipse Genie CLA 2019-07-19 13:55:28 EDT
New Gerrit change created: https://git.eclipse.org/r/146396
Comment 7 Eclipse Genie CLA 2019-07-22 09:35:31 EDT
New Gerrit change created: https://git.eclipse.org/r/146457
Comment 10 Eric Poirier CLA 2019-07-26 10:22:54 EDT
This is now live on production for the featured story but something we forgot to include is to use the featured story data in the xml file in the Featured Footer as well.

I'm gonna have to create another patch for the eclipse.org-common repo for this.
Comment 11 Eclipse Genie CLA 2019-07-26 13:53:47 EDT
New Gerrit change created: https://git.eclipse.org/r/146679
Comment 12 Eclipse Genie CLA 2019-07-26 13:55:00 EDT
New Gerrit change created: https://git.eclipse.org/r/146680
Comment 15 Eclipse Genie CLA 2019-08-06 11:15:55 EDT
New Gerrit change created: https://git.eclipse.org/r/147118
Comment 16 Eclipse Genie CLA 2019-08-07 08:53:00 EDT
New Gerrit change created: https://git.eclipse.org/r/147191
Comment 19 Eric Poirier CLA 2019-08-21 09:57:32 EDT
My patches for the rotation of the featured story section have been merged to production.

Please reopen this bug if there's an issue with my changes.

Thanks.