Skip to content

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Jul 25, 2025

What this PR does / why we need it: The bug reported in #11684 was originally seen at QDR in May and fixed in this commit, which was part of the initial #11268 PR. However, it appears that other changes in v6.7 have made the issue reappear - I can confirm we are seeing it again at QDR.

The original fix was to add NULLS LAST to the ORDER DESC annotation on the DatasetVersions curationStatuses list. For some reason (we did upgrade to a newer version of the postgres driver), NULLS LAST is no longer putting entries with null createtimes last. This PR adds an explicit sort (using a reverse sort to get DESC order, which I think is still true from the annotation) along with a nullsLast sort which is what appears to no longer happen in the initial retrieval of the list.

Which issue(s) this PR closes:

Special notes for your reviewer:
FWIW: I think this is a better approach than assigning a 'fake' createtime as suggested in the issue.

Suggestions on how to test this: If you can't find a dataset with a pre #11268 curation status (which would have a null createtime in the db), you should be able to add several curationstatus entries and then edit one of them to have a null createtime in the db. Prior to this fix, the entry with null will show as the current status when the page is refreshed. After, it will not.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: added.

Additional documentation:

@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Jul 25, 2025
@coveralls
Copy link

coveralls commented Jul 25, 2025

Coverage Status

coverage: 23.212% (+0.002%) from 23.21%
when pulling 9f837dc on QualitativeDataRepository:IQSS/9247-CurationStatus_updates
into b3e1c78 on IQSS:develop.

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Jul 28, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Jul 30, 2025
@cmbz cmbz added the FY26 Sprint 3 (2025-07-30 - 2025-08-13) label Jul 31, 2025
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Aug 6, 2025
@stevenwinship stevenwinship self-assigned this Aug 6, 2025
Copy link
Contributor

@stevenwinship stevenwinship left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified the order shows correct now

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Aug 6, 2025
@stevenwinship stevenwinship removed their assignment Aug 6, 2025
@ofahimIQSS ofahimIQSS self-assigned this Aug 6, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Aug 6, 2025
@ofahimIQSS
Copy link
Contributor

ofahimIQSS commented Aug 12, 2025

test done - merging

@ofahimIQSS ofahimIQSS merged commit f0ae22d into IQSS:develop Aug 12, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Aug 12, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Aug 13, 2025
@pdurbin pdurbin added this to the 6.8 milestone Aug 13, 2025
@ofahimIQSS ofahimIQSS removed their assignment Aug 14, 2025
@cmbz cmbz added the FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 3 (2025-07-30 - 2025-08-13) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

curation labels cannot be updated when creationTime is null and the label was set before DV 6.7

6 participants