Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29334171: Issue 3410 - Added date sort / format for press releases (Closed)

Created:
Jan. 20, 2016, 4:58 p.m. by juliandoucette
Modified:
Feb. 10, 2016, 1:39 p.m.
CC:
Thomas Greiner
Visibility:
Public.

Description

Issue 3410 - Added date sort / format for press releases - I renamed the old datesort filter and updated the team template to avoid confusion - I wrote a new datesort that sorts and mutates the date inside the collection argument based on an inputFormat and outputFormat - I updated the press page to use the new datesort I wasn't sure about the filter names here. I'm open to suggestion.

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fixed rename, typos, and function names #

Total comments: 20

Patch Set 3 : Changing sort filters and utf8 charaters in release hrefs #

Total comments: 4

Patch Set 4 : Changed humanize_dates to format a single date and removed space before argument list #

Total comments: 4

Patch Set 5 : Fixed import #

Patch Set 6 : Changed teamsort to be consistent with fixed import #

Total comments: 2

Patch Set 7 : Fixed datetime call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -32 lines) Patch
D filters/datesort.py View 1 2 3 1 chunk +2 lines, -9 lines 0 comments Download
A filters/humanize_date.py View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A filters/teamsort.py View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M includes/press/releases.tmpl View 1 2 3 2 chunks +22 lines, -22 lines 0 comments Download
M pages/team.tmpl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19
juliandoucette
Jan. 20, 2016, 5:01 p.m. (2016-01-20 17:01:18 UTC) #1
juliandoucette
Added Sebastian to CC.
Jan. 22, 2016, 11:09 a.m. (2016-01-22 11:09:48 UTC) #2
saroyanm
https://codereview.adblockplus.org/29334171/diff/29334172/filters/datesort.py File filters/datesort.py (right): https://codereview.adblockplus.org/29334171/diff/29334172/filters/datesort.py#newcode8 filters/datesort.py:8: return sorted(collection, key=lambda date: datetime.strptime(date[0], outputFormat)) The items need ...
Jan. 22, 2016, 11:58 a.m. (2016-01-22 11:58:14 UTC) #3
juliandoucette
I addressed all of the issues marked. I'm not sure how to best address the ...
Jan. 25, 2016, 4:19 p.m. (2016-01-25 16:19:56 UTC) #4
saroyanm
https://codereview.adblockplus.org/29334171/diff/29334505/filters/humandates.py File filters/humandates.py (right): https://codereview.adblockplus.org/29334171/diff/29334505/filters/humandates.py#newcode1 filters/humandates.py:1: Detail: No new line needed in the beginning of ...
Feb. 1, 2016, 4:24 p.m. (2016-02-01 16:24:55 UTC) #5
saroyanm
On 2016/01/25 16:19:56, juliandoucette wrote: > I addressed all of the issues marked. I'm not ...
Feb. 1, 2016, 4:53 p.m. (2016-02-01 16:53:53 UTC) #6
Sebastian Noack
On 2016/02/01 16:53:53, saroyanm wrote: > On 2016/01/25 16:19:56, juliandoucette wrote: > > I addressed ...
Feb. 1, 2016, 6:01 p.m. (2016-02-01 18:01:23 UTC) #7
saroyanm
On 2016/02/01 18:01:23, Sebastian Noack wrote: > On 2016/02/01 16:53:53, saroyanm wrote: > > On ...
Feb. 2, 2016, 9:29 a.m. (2016-02-02 09:29:03 UTC) #8
Sebastian Noack
On 2016/02/02 09:29:03, saroyanm wrote: > On 2016/02/01 18:01:23, Sebastian Noack wrote: > > On ...
Feb. 2, 2016, 9:55 a.m. (2016-02-02 09:55:50 UTC) #9
saroyanm
On 2016/02/02 09:55:50, Sebastian Noack wrote: > On 2016/02/02 09:29:03, saroyanm wrote: > > On ...
Feb. 2, 2016, 10:30 a.m. (2016-02-02 10:30:04 UTC) #10
juliandoucette
https://codereview.adblockplus.org/29334171/diff/29334505/filters/humandates.py File filters/humandates.py (right): https://codereview.adblockplus.org/29334171/diff/29334505/filters/humandates.py#newcode1 filters/humandates.py:1: On 2016/02/01 16:24:54, saroyanm wrote: > Detail: No new ...
Feb. 2, 2016, 4:44 p.m. (2016-02-02 16:44:46 UTC) #11
Sebastian Noack
https://codereview.adblockplus.org/29334171/diff/29335343/filters/humanize_dates.py File filters/humanize_dates.py (right): https://codereview.adblockplus.org/29334171/diff/29335343/filters/humanize_dates.py#newcode3 filters/humanize_dates.py:3: def humanize_dates (unformatted_list): Nit: No space before arguments list. ...
Feb. 2, 2016, 4:50 p.m. (2016-02-02 16:50:21 UTC) #12
juliandoucette
https://codereview.adblockplus.org/29334171/diff/29335343/filters/humanize_dates.py File filters/humanize_dates.py (right): https://codereview.adblockplus.org/29334171/diff/29335343/filters/humanize_dates.py#newcode3 filters/humanize_dates.py:3: def humanize_dates (unformatted_list): On 2016/02/02 16:50:21, Sebastian Noack wrote: ...
Feb. 4, 2016, 10:04 a.m. (2016-02-04 10:04:23 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29334171/diff/29335535/filters/humanize_date.py File filters/humanize_date.py (right): https://codereview.adblockplus.org/29334171/diff/29335535/filters/humanize_date.py#newcode1 filters/humanize_date.py:1: import datetime, copy The import for the "copy" module ...
Feb. 4, 2016, 11:05 a.m. (2016-02-04 11:05:07 UTC) #14
juliandoucette
https://codereview.adblockplus.org/29334171/diff/29335535/filters/humanize_date.py File filters/humanize_date.py (right): https://codereview.adblockplus.org/29334171/diff/29335535/filters/humanize_date.py#newcode1 filters/humanize_date.py:1: import datetime, copy On 2016/02/04 11:05:06, Sebastian Noack wrote: ...
Feb. 4, 2016, 11:18 a.m. (2016-02-04 11:18:40 UTC) #15
Sebastian Noack
https://codereview.adblockplus.org/29334171/diff/29335550/filters/humanize_date.py File filters/humanize_date.py (right): https://codereview.adblockplus.org/29334171/diff/29335550/filters/humanize_date.py#newcode4 filters/humanize_date.py:4: return datetime.strftime( That is not what I meant. You ...
Feb. 4, 2016, 11:31 a.m. (2016-02-04 11:31:43 UTC) #16
juliandoucette
https://codereview.adblockplus.org/29334171/diff/29335550/filters/humanize_date.py File filters/humanize_date.py (right): https://codereview.adblockplus.org/29334171/diff/29335550/filters/humanize_date.py#newcode4 filters/humanize_date.py:4: return datetime.strftime( On 2016/02/04 11:31:42, Sebastian Noack wrote: > ...
Feb. 9, 2016, 4:01 p.m. (2016-02-09 16:01:17 UTC) #17
Sebastian Noack
LGTM
Feb. 9, 2016, 4:23 p.m. (2016-02-09 16:23:27 UTC) #18
saroyanm
Feb. 10, 2016, 11:29 a.m. (2016-02-10 11:29:55 UTC) #19
LGTM

Powered by Google App Engine
This is Rietveld