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
Add publication date to collections #3369
Conversation
Could you please use closing keywords in the PR description? It makes maintainers life easier https://help.github.com/articles/closing-issues-using-keywords/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Published at
is wrong English (at <place>
) and even replacing it bypublished on
would be kinda odd. I would suggest replacingpublished at
withpublish_date
;- The availability rendering has some logic issues;
- The 404 tests could get merged into a multi-cases test.
… changes in collections logic in templates
Codecov Report
@@ Coverage Diff @@
## master #3369 +/- ##
==========================================
+ Coverage 89.62% 89.64% +0.02%
==========================================
Files 237 237
Lines 12783 12789 +6
Branches 1283 1283
==========================================
+ Hits 11457 11465 +8
+ Misses 923 922 -1
+ Partials 403 402 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #3369 +/- ##
==========================================
+ Coverage 89.87% 89.89% +0.01%
==========================================
Files 241 241
Lines 13103 13107 +4
Branches 1322 1322
==========================================
+ Hits 11776 11782 +6
+ Misses 922 921 -1
+ Partials 405 404 -1
Continue to review full report at Codecov.
|
@k-brk could you flag the yellow outdated reviews as resolved? That would be awesome, because the page is really messy! 👍 |
Commit 04c5b22 introduced changes in type of CollectionInput(graphql/product/mutations/products.py) published_date field, from string to date. Had to change data dumper from json to djangoJsonEncoder(which is almost the same as json.JSONEncoder) in tests/api/conftest.py due to the fact that built in json module does not serialize dates. After this change security/snyk is failing. Should I roll back it to string as it was before? Similar string approach is used in PageInput (graphql/page/mutations.py) available_on field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from this comment, looks good to me
@k-brk Snyk is checking for dependency vulnerabilities and this error is not connected to your changes, as you've introduced no new packages. Probably package was flagged as vulnerable between your commits, that's why we've started seeing this message after certain push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested the PR and it seems fine, although I have some objections about inconsistent naming of the model fields related to publication date - here we use published_date
while in other models we have available_on
. I'd unify all of those fields to publication_date
but that's a separate issue and I recommend to handle that separately.
@k-brk We've added the changelog file recently, would you mind adding a note describing your changes? |
Congrats on your first contribution to Saleor! 🎉 |
I want to merge this change because...
resolves #3125