-
Notifications
You must be signed in to change notification settings - Fork 493
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
Make productionPlace multiple, facetable, and enabled for Advanced Search #9253 #9254
Conversation
Please feel free not use these notes and just list the change under Complete List of Changes.
@philippconzett and I update the Solr schema.xml in a2f5d12 We did this in docker-aio. I'm not sure why it says "Production Place" instead of "Production Location". (Maybe some cruft on my machine?) That update was made here: Anyway, Solr was happy to take the data once we made that change (making it allow multiples). |
There's a test failing according to https://jenkins.dataverse.org/blue/organizations/jenkins/IQSS-Dataverse-Develop-PR/detail/PR-9254/3/tests |
Prio meeting with Stefano.
|
The changes in the citation.tsv file look good, and the changes in the schema.xml make sense to me, although I know less about that. I think the release notes just need to say "Production Location", the field's new name, instead of "Production Place", the old name. @philippconzett I can change that if that's okay, unless you'd like to. |
Heads up that we should also fix the failing test I mentioned above. |
Oooo, sorry. I saw that but it had been a while since you posted it so I thought it might've been resolved. Is the failing test saying that the API endpoint for importing a dataset using DDI Codebook xml doesn't like that the Production Location field can have multiple values now? So that code has to be adjusted? |
An xml file needs to be changed (and probably the surrounding tests?). Here, I guess? https://github.com/IQSS/dataverse/blob/v5.12.1/doc/sphinx-guides/source/_static/api/ddi_dataset.xml#L37 Hopefully this PR isn't a backward incompatible change. importDatasetDDIViaNativeApi is being called in that test. |
Replace "Production Place" with "Production Location"
@jggautier Thanks for spotting the naming issue in the release notes. I have replaced "Production Place" with "Production Location". @pdurbin I earlier mentioned that I wanted the field to be included in Advanced search, but I never got the issue and the PR updated accordingly. If still possible, I could do it later today. If this would mess up your ongoing work with the PR, I could submit a new issue/PR about Advanced Search. Please let me know which option you prefer. Thanks! |
@philippconzett I'm not assigned as a reviewer. Let's see what @scolapasta and @jggautier (who are) think. |
@philippconzett I'm happy with you making those changes here. It'll make it more complete (and easier to review and test together). |
Thanks, @scolapasta. I've edited the files 9253-productionPlace.md and citation.tsv accordingly, but left the file schema.xml untouched. Please let me know I the changes make sense and if anything needs to be improved. |
I've reviewed the release notes and citation.tsv files and they look good to me. I'm not sure if the schema.xml file needs to be changed anymore. And I'm probably not the best person to resolve the testing failures, so I'm going to remove myself as a reviewer now. Thanks all! |
@philippconzett I will update the ImportDDIServiceBean so that it will know to expect multiple Production locations are possible. I'll also add the upgrade instructions that I mentioned above. |
Thanks for adding this, @sekmiller. (I don't how enough about schema.xml to add anything substantial to this.) |
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.
@sekmiller Looks good - can you make one more change and add a second Prod location to the ddi that is used for testing? That way we actually exercise this change.
…made multiple in PR #9254; would be great to put together a process for developers who need to make changes to fields in metadata blocks that would help them to know of all the places where changes like this need to be made. (not the first time, when something breaks, in ddi export specifically, after a field is made multiple). #3648
What this PR does / why we need it:
Allows depositors to define multiple instances of the metadata field productionPlace in the Citation Metadata block, to refine searches based on the content in the field using the search facets, as well as using the field in the Advanced Search option.
Which issue(s) this PR closes:
Closes #9253
Special notes for your reviewer:
No.
Suggestions on how to test this:
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No. There are already other metadata fields that are repeatable, facetable, and enabled for Advanced Search.
Is there a release notes update needed for this change?:
Should briefly mention that the field now is repeatable, facetable, and enabled for Advanced Search.
Additional documentation:
No.