-
Notifications
You must be signed in to change notification settings - Fork 531
IQSS/9247 Curation Status Updates #11268
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
Merged
ofahimIQSS
merged 67 commits into
IQSS:develop
from
QualitativeDataRepository:IQSS/9247-CurationStatus_updates
Jun 26, 2025
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
0882b3f
Initial refactor
qqmyers b050305
change to have status as param
qqmyers 7faac7d
use getLocaleCurationStatusLabel
qqmyers b511fba
Temp fix to match current api call returning string
qqmyers 1353167
update to use new CurationStatus class
qqmyers 8b2b30e
restore label-based util call, update other uses
qqmyers e297262
typo
qqmyers 985590c
make authuser and time nullable for legacy data
qqmyers d0e868f
fix import javax->jakarta
qqmyers 06cdc93
typo
qqmyers 82eb6cc
fix script
qqmyers c708579
bug fixes
qqmyers 863a27c
more bugs
qqmyers fb31335
update listCurationStates report with new columns
qqmyers bb2b5b5
minor fixes
qqmyers 995b0eb
add missing columns
qqmyers 5ae00ea
add includeHistory param to report
qqmyers ffca519
add history and use JSON for getCurationStatus
qqmyers 864a8e4
dco updates
qqmyers 6907de8
add facet
qqmyers d810a47
update tests
qqmyers 5391ea3
add bundle entry
qqmyers b253d1f
typo
qqmyers 5126827
test fix
qqmyers 1504893
add curation createTime to solr index
qqmyers abb059f
update schema
qqmyers 2fc5764
missing field
qqmyers 8f8f09d
change date using getTime
qqmyers 8aeb0ef
more external->curation refactoring
qqmyers cabf0b6
use pdate
qqmyers d43a665
release note, change log
qqmyers c10a766
add option to let creators see curation status
qqmyers 7720886
refactor
qqmyers 789e94a
docs
qqmyers 743d799
support flag in API
qqmyers 5abf460
update api doc
qqmyers 7b6bede
sync test name
qqmyers bb668b6
update release note
qqmyers d521d6a
typo
qqmyers 1046a01
remove unused method
qqmyers b2e6b45
fix #10835
qqmyers af202df
Improve mail message per #10668
qqmyers d8f18e4
send notices based on feature flag
qqmyers 8e3f86a
add history menu item
qqmyers 7fb5aa1
bugs, display improvements
qqmyers 85afd88
change logic to show with submit for review
qqmyers 6859bf9
start separate menu
qqmyers 02d4a5b
typo, fix label, styling
qqmyers 243d46c
fix merge
qqmyers 4f13222
Merge remote-tracking branch 'IQSS/develop' into IQSS/9247-CurationSt…
qqmyers 9cab16a
test fix - use getDataAsJsonObject from #11271
qqmyers 7f0b959
typo
qqmyers c0c7775
handle nulls
qqmyers d2c79a8
fix test
qqmyers 5e430ce
fix getData methods
qqmyers a722287
use delete to remove label
qqmyers f552153
Merge remote-tracking branch 'IQSS/develop' into IQSS/9247-CurationSt…
qqmyers 5e9f609
cleanup, fix merge issue
qqmyers 2899614
Add an index
qqmyers fa2324b
Merge remote-tracking branch 'IQSS/develop' into
qqmyers 8cfdc22
remove redundant h:form
qqmyers 371b88f
Merge remote-tracking branch 'IQSS/develop' into IQSS/9247-CurationSt…
qqmyers ea1188b
Merge remote-tracking branch 'IQSS/develop' into
qqmyers 6ebf7ca
nulls last
qqmyers 91192a3
Merge remote-tracking branch 'IQSS/develop' into IQSS/9247-CurationSt…
qqmyers d87a649
changes per review
qqmyers 28b8791
Merge remote-tracking branch 'IQSS/develop' into
qqmyers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,14 @@ | ||
| The External/Curation Status Label mechanism has been enhanced: | ||
|
|
||
| - adding tracking of who creates the status label and when, | ||
| - keeping a history of past statuses | ||
| - updating the CSV report to include the creation time and assigner of a status | ||
| - updating the getCurationStatus api call to return a JSON object for the status with label, assigner, and create time | ||
| - adding an includeHistory query param for these API calls to allow seeing prior statuses | ||
| - adding a facet to allow filtering by curation status (for users able to set them) | ||
| - adding the creation time to solr as a pdate to support search by time period, e.g. current status set prior to a give date | ||
| - standardizing the language around 'curation status' vs 'external status' | ||
| - adding a 'curation-status' class to displayed labels to allow styling | ||
| - adding a dataverse.ui.show-curation-status-to-all feature flag that allows users who can see a draft but not publish it to also view the curation status | ||
|
|
||
| Due to changes in the solr schema, updating the solr schema and reindexing is required. Background reindexing should be OK. |
This file contains hidden or 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 hidden or 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 hidden or 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
91 changes: 91 additions & 0 deletions
91
src/main/java/edu/harvard/iq/dataverse/CurationStatus.java
This file contains hidden or 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,91 @@ | ||
| package edu.harvard.iq.dataverse; | ||
|
|
||
| import edu.harvard.iq.dataverse.authorization.users.AuthenticatedUser; | ||
| import jakarta.persistence.*; | ||
|
|
||
| import java.io.Serializable; | ||
| import java.util.Date; | ||
|
|
||
| @Entity | ||
| @Table(name = "curationstatus", indexes = { | ||
| @Index(name = "index_curationstatus_datasetversion", columnList = "datasetversion_id") | ||
| }) | ||
| public class CurationStatus implements Serializable { | ||
|
|
||
| @Id | ||
| @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
| private Long id; | ||
|
|
||
| @Column(nullable = true) | ||
| private String label; | ||
|
|
||
| @ManyToOne | ||
| @JoinColumn(name = "datasetversion_id", nullable = false) | ||
| private DatasetVersion datasetVersion; | ||
|
|
||
| @ManyToOne | ||
| @JoinColumn(name = "authenticateduser_id", nullable = true) | ||
| private AuthenticatedUser authenticatedUser; | ||
|
|
||
| @Temporal(TemporalType.TIMESTAMP) | ||
| @Column(nullable = true) | ||
| private Date createTime; | ||
|
|
||
| // Constructors, getters, and setters | ||
|
|
||
| public CurationStatus() { | ||
| } | ||
|
|
||
| public CurationStatus(String label, DatasetVersion datasetVersion, AuthenticatedUser authenticatedUser) { | ||
| this.label = label; | ||
| this.datasetVersion = datasetVersion; | ||
| this.authenticatedUser = authenticatedUser; | ||
| this.createTime = new Date(); | ||
| } | ||
|
|
||
| // Getters and setters for all fields | ||
|
|
||
| public Long getId() { | ||
| return id; | ||
| } | ||
|
|
||
| public void setId(Long id) { | ||
| this.id = id; | ||
| } | ||
|
|
||
| public String getLabel() { | ||
| return label; | ||
| } | ||
|
|
||
| public void setLabel(String label) { | ||
| this.label = label; | ||
| } | ||
|
|
||
| public DatasetVersion getDatasetVersion() { | ||
| return datasetVersion; | ||
| } | ||
|
|
||
| public void setDatasetVersion(DatasetVersion datasetVersion) { | ||
| this.datasetVersion = datasetVersion; | ||
| } | ||
|
|
||
| public AuthenticatedUser getAuthenticatedUser() { | ||
| return authenticatedUser; | ||
| } | ||
|
|
||
| public void setAuthenticatedUser(AuthenticatedUser authenticatedUser) { | ||
| this.authenticatedUser = authenticatedUser; | ||
| } | ||
|
|
||
| public Date getCreateTime() { | ||
| return createTime; | ||
| } | ||
|
|
||
| public void setCreateTime(Date createTime) { | ||
| this.createTime = createTime; | ||
| } | ||
|
|
||
| public boolean isNoStatus() { | ||
| return label == null || label.trim().isEmpty(); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.