-
Notifications
You must be signed in to change notification settings - Fork 179
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 additional sorting value to ensure the same order of found posts #1737
Conversation
@BrittanyIRL Could you test to confirm if it fixes #1726 locally for you? |
Codecov Report
@@ Coverage Diff @@
## master #1737 +/- ##
=========================================
Coverage 63.63% 63.63%
Complexity 216 216
=========================================
Files 573 573
Lines 9262 9262
=========================================
Hits 5894 5894
Misses 3368 3368
|
Size Change: 0 B Total Size: 855 kB ℹ️ View Unchanged
|
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 didn't manage to replicate the issue locally. But this change look valid and tests are passing so I will approve.
Wow, thank you for getting to this so fast! It works great for descending (alpha a to z) but it looks like there's no option to set it to ascending? If you toggle over to the 'list' view, there's the added option to swap and go z - a. Any chance implementing that here is a quick win? Otherwise it can be its own ticket since i think it's something i overlooked in my initial request for this functionality. |
@BrittanyIRL Just to confirm -- in case of ascending, should the current author be the last independent of the name, and the rest of the authors come first?
Thoughts? |
@miina - |
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.
Changes work great! Thank you for the quick fix on this.
* master: (99 commits) Bump eslint-plugin-react from 7.19.0 to 7.20.0 (#1749) Checked if date is moment before wrapping Refactored formatted date tests Add spy to standardize timing on tests Remove tests that used to work in CI but no longer do Remove unused import Fix snapshot test for useTemplateAPI Added support for modal-routing on dashboard. Add additional sorting value to ensure the same order. (#1737) update tests around reshaping story object [ImgBot] Optimize images (#1723) Bump @testing-library/dom from 7.5.1 to 7.5.2 (#1732) Fixes element measuring relative to fullbleed (better) (#1558) swapping to use the decoded html version of the title we have access to to turn html symbols from & to characters & adding check for user name to display author moving required for users prop type to component level so that we can reuse the shape without it being required. updating displayDate propType to object not string some organization of imports moving date formatting to the card title level and memoizing clean up translation for modified date string in card item no need to call edit function inline - this has no functional difference but still ...
Summary
Adds additional sorting value to ensure the same order of found posts. Otherwise, there could be duplicate entries on different pages.
Relevant Technical Choices
To-do
Fixes #1726