-
Notifications
You must be signed in to change notification settings - Fork 495
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
8822 incomplete datasets via api #8940
8822 incomplete datasets via api #8940
Conversation
Sorry, I dragged this out of "ready for QA" to do some minor cleanup. Thx for bearing with us and keeping up working on this @ErykKul ! |
Renaming should make it more obvious what this is about. Also using the API and a (new) UI scope to better distinguish where a certain setting will be used, instead of making it feature related (as before).
- Add documentation for the new Info API endpoint - Add example cURL call - Create subsubsections for the two distinct cases, making the docs easier to read
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.
I restructured the JvmSettings a bit, extended the docs and also added an Info API endpoint, so a client may detect if sending incomplete data will be acceptable before trying it.
Looks good to me, off to QA :-)
(One thing though: I'm missing tests for this... There has been no additional API test added with deactivated validation)
@kcondon I see sometimes the CI pipeline for Maven Unit Tests fail - the Test Coverage submission seems to be flaky, tests run OK.
@poikilotherm |
Issues found; functionality works, all issues are with doc except one minor edge case issue :
|
@kcondon I have added a small paragraph in the release notes about the properties that can be set. Would that be sufficient for the admins to configure the feature? For the edge case(s), I did the following: when a dataset has no title, its global ID would be used as the display name. This would improve linking and displaying information in all places for datasets without a title (also fixing the notifications links). |
@ErykKul Thanks for addressing all of the issues! |
What this PR does / why we need it:
When integrating GitLab or iRods with Dataverse, we want researchers to be able to send files and just enough information to get the dataset created via API. Publishing is prevented until required fields are entered (using the GUI, most often).
Which issue(s) this PR closes:
Closes #8822
Suggestions on how to test this:
First, you will need to update the solar configuration. For this feature to work, a new solr field is required: "datasetValid". The needed configuration is added in "schema.xml". Notice that when you do not use this feature, updating solr configuration and/or reindexing is not required. Nevertheless, it is reasonable to keep the solr configuration up-to-date and do the configuration update and reindex.
Next, you need to enable these settings:
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
When the new feature is not used, there are no changes to the user interface. When you use the new feature, you will have the possibility to enable filtering of valid and/or invalid metadata on the "My Data" page, as discussed earlier.
Invalid metadata is marked with a new tag "Invalid metadata":
This tag is visible in the "My Data" page and the main page, when logged in. When you do not log in, you can only see published metadata, and since invalid metadata cannot be published, you will not see that tag. The tag, together with a warning, is also shown when viewing a dataset with invalid metadata:
A warning is also shown when submitting for review and trying to publish a dataset with invalid metadata:
The exact content of the tag and the text of the warning can be modified with the "notValid" and "dataset.message.invalid.warning" properties, respectively.
Is there a release notes update needed for this change?:
Yes.
Additional documentation:
You can also watch the demo as given during the community meeting. You can find the video at the top of DataverseTV: https://dataverse.org/dataversetv
Here's a direct link: https://harvard.zoom.us/rec/share/EZGLPBLPv3o74H_WD-ejp34c3Grro1Jk8mS5L8um9PyFbKzVr2Ro_62gqIkckKf5.1Fh8UfNOIkc8sqpc