forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IQSS#11180 from vera/fix/dataset-sort-order
Fix sorting of dataset drafts and minor versions when sorting by "newest first"
- Loading branch information
Showing
3 changed files
with
215 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### Bug fix: Sorting by "newest first" | ||
|
||
Fixed an issue where draft versions of datasets were sorted using the release timestamp of their most recent major version. | ||
This caused newer drafts to appear incorrectly alongside their corresponding major version, instead of at the top, when sorted by "newest first". | ||
Sorting now uses the last update timestamp when sorting draft datasets. | ||
The sorting behavior of published dataset versions (major and minor) is unchanged. | ||
|
||
**Upgrade instructions**: draft datasets must be reindexed for this fix to take effect. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters