Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only show products reviewed in the last year #3815

Merged
merged 4 commits into from
Oct 24, 2019
Merged

Conversation

Pomax
Copy link
Contributor

@Pomax Pomax commented Oct 24, 2019

Closes #3760 by adding an is_current property to the Product model that checks whether the review date is less than 365 days old. That's not perfect maths because dates are hard, but we don't need true to-the-day checks here, either.

https://github.com/mozilla/foundation.mozilla.org/pull/3815/files?utf8=%E2%9C%93&diff=unified&w=1 for the sane file view (with indent changes hidden)

@Pomax Pomax requested a review from mmmavis October 24, 2019 10:37
@patjouk patjouk temporarily deployed to foundation-mofostaging-pr-3815 October 24, 2019 10:37 Inactive
@Pomax Pomax temporarily deployed to foundation-mofostaging-pr-3815 October 24, 2019 10:50 Inactive
@Pomax Pomax temporarily deployed to foundation-mofostaging-pr-3815 October 24, 2019 11:04 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PNI homepage/categories: only show products with review date within one year
3 participants