Skip to content
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

IQSS/7349-3 file updates for schema.org #9087

Merged

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Oct 19, 2022

What this PR does / why we need it: per the issue, we were sending the file mimetype in our schema.org metadata export and in-dataset-page metadata using a 'fileFormat' key which is non-standard - the schema.org spec specifies 'encodingFormat'. This PR makes the change to follow the spec.

Also per the issue - the code has not been sending the download url for restricted files. Since those URLs already handle access control and there's a separate 'dataverse.files.hide-schema-dot-org-download-urls' jvm option to not send any URLs if an admin so desires, (and because there are other (tbd) ways to indicate a file is not available without authorization), it doesn't seem helpful to hide just restricted/embargoed file urls by default. This PR also removes the if statement that did this.

Which issue(s) this PR closes:

Closes #7349

Special notes for your reviewer: all 4 PRs close this issue together.

Suggestions on how to test this: There is a test, but manually one can look at the page source or shcema.org export and verify that files have an 'encodingFormat' entry. Can also verify that the entries for restricted files also have a url now.

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?: included

Additional documentation:

@coveralls
Copy link

coveralls commented Oct 19, 2022

Coverage Status

Coverage: 19.999% (-0.001%) from 20.0% when pulling 44c54b5 on QualitativeDataRepository:IQSS/7349-3_file_updates into ecc23c0 on IQSS:develop.

@qqmyers qqmyers added the GDCC: QDR of interest to QDR label Oct 27, 2022
@mreekie mreekie added the bk2211 label Nov 1, 2022
@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Dec 14, 2022
@mreekie
Copy link

mreekie commented Jan 10, 2023

Prio meeting with Stefano.

  • Moved from External Commitments Backlog to ordered backlog

@mreekie mreekie removed the bk2211 label Jan 11, 2023
@mreekie mreekie added this to the 5.13 milestone Jan 25, 2023
@kcondon kcondon self-assigned this Jan 30, 2023
@kcondon kcondon merged commit 3d22e6a into IQSS:develop Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: QDR of interest to QDR Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Improve/update Schema.org JSON-LD export
5 participants