-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: Update collection sorting, metadata, stats #2327
Conversation
@tw4l looks like we also need to decrement the counts when archived items are deleted. |
Done, good catch! Looks like that was a bug that's been around for a while. |
@ikreymer marked this as ready for review. I've fixed the issues Sua found while testing and tested locally that all looks good, but we decided to do the frontend updates in a separate PR. |
Tested locally with #2324, LGTM! |
- Fixes #2321 - Resolves #2323 Follows #2327, should be rebased and merged afterwards ## Changes - Refactors dashboard and org profile preview to use private API endpoint, to fix public collections not showing the org visibility is hidden - Enables sorting collections by `dateLatest`, sorts public collections by `dateLatest` by default - Enables sorting collections by page count - Shows collection period (i.e. `dateEarliest` to `dateLatest`) in collections list - Shows same collection metadata in private and public views, updates private view info bar - Fixes "Update Org Profile" action item showing for crawler roles <!-- ## Follow-ups --> --------- Co-authored-by: Tessa Walsh <[email protected]>
- Fixes #2321 - Resolves #2323 Follows #2327, should be rebased and merged afterwards ## Changes - Refactors dashboard and org profile preview to use private API endpoint, to fix public collections not showing the org visibility is hidden - Enables sorting collections by `dateLatest`, sorts public collections by `dateLatest` by default - Enables sorting collections by page count - Shows collection period (i.e. `dateEarliest` to `dateLatest`) in collections list - Shows same collection metadata in private and public views, updates private view info bar - Fixes "Update Org Profile" action item showing for crawler roles <!-- ## Follow-ups --> --------- Co-authored-by: Tessa Walsh <[email protected]>
273648b
to
09387f5
Compare
Per suggestions in discord, I think we should keep I think term snapshot could easily be confused for non-page URLs as well as screenshots.. |
@ikreymer @tw4l Updated frontend, not sure if it's a migration issue but Also updated this dropdown (cc @Shrinks99 ) |
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.
Tested both backend and frontend locally, looks good to me
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.
fixed small typo in migration, should be good now!
Fixes #2326
This slightly reworks the existing page counts in our API to include
snapshotCount
as distinct frompageCount
(which now only counts unique URLs).Tweaks migration 0040 (will require
rerun_from_migration
to be set to rerun this on dev or elsewhere where we've run that already) to include snapshot count and adds a new migration 0041 to update collection counts.