-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added support for date modified field on cards #3346
Conversation
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.
some tests are failing, also some tests are missing, the details are in the code comments.
app/react/Markdown/components/specs/__snapshots__/MarkdownMedia.spec.js.snap
Outdated
Show resolved
Hide resolved
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.
does not work properly on already existing collections, to replicate.
- yarn blank state
- modify an entity
- sorting by date modified (recently or least recently) results on the modified entity showing on the last position.
maybe this needs a migration to add the date modified property ? @grafitto @RafaPolit ?
I think it needs migration... |
this is wrong, the proper way to replicate is to use existing data, (yarn fixtures, instead of blank-state) |
Noted. After testing, I think the |
Only the entities with the |
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.
@grafitto migrations looks good.
i have noticed an issue where sorting by the new "date modified" results in the same order whether it is sorted by "recently" or "least recently"
Does this happen even after you run the migration? |
yes, does it work properly for you ? |
Mine seems to work as expected. I run |
@grafitto this was an issue on my side, sorting is working properly now, im not sure what happened may be i forgot a reindex. sorting apparently works properly but the date shown on the card for "Date modified" its always today not the actual date modified, it can be that the new field is somehow excluded from the results, please review. |
On it |
@daneryl I have added |
fixes #1893
PR checklist:
QA checklist: