Stream: dev

Topic: ✔ API to know if a dataset has been submitted for review


view this post on Zulip Johannes D (Apr 25 2024 at 11:32):

Hey @Philip Durbin, whats the smarted way to find out via API if a dataset is "Submitted for Review”? Sadly, its not one of the VersionStates .

view this post on Zulip Johannes D (Apr 25 2024 at 11:52):

Do I need to replicate this method within my client and use the lock API to obtain the needed information?

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 11:54):

Hmm, here I look for a notification called SUBMITTEDDS: https://github.com/IQSS/dataverse/blob/v6.2/src/test/java/edu/harvard/iq/dataverse/api/InReviewWorkflowIT.java#L139C62-L139C73

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 11:55):

Ha, you probably don't to try an edit and look for this error (further down): Couldn't update dataset edu.harvard.iq.dataverse.engine.command.exception.IllegalCommandException: Dataset cannot be edited due to In Review dataset lock

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 11:56):

Yeah, you might be on the right track with locks. Check for an "in review" lock?

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 11:57):

"Currently implemented lock types are Ingest, Workflow, InReview, DcmUpload, finalizePublication, EditInProgress and FileValidationFailed." -- https://guides.dataverse.org/en/6.2/api/native-api.html#dataset-locks

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 11:57):

Yeah, I'd check for a lock ^^

view this post on Zulip Johannes D (Apr 25 2024 at 11:59):

Yup, there is one. Sadly this needs another API request to obtain the information. I hoped for some hidden feature to get this information with the inital getDataset one...

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 12:03):

Hmm, I can't think of one off the top of my head.

view this post on Zulip Philip Durbin 🚀 (Apr 25 2024 at 12:04):

A dataset can only be in one state. I guess it's in draft state when it's in review.

view this post on Zulip Notification Bot (Apr 25 2024 at 12:41):

Johannes D has marked this topic as resolved.


Last updated: Nov 01 2025 at 14:11 UTC