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

8796 fix no license display and indexing #10614

Merged
merged 8 commits into from
Jul 18, 2024

Conversation

sekmiller
Copy link
Contributor

What this PR does / why we need it:
Modifies the display so that datasets which were updated in version 5.10 to have "Terms of Use" that actually indicate that no terms of use have been entered are not displayed with "Custom Terms" in the UI. Also, it updates the index service bean so that these datasets are not indexed as having Custom Terms

Which issue(s) this PR closes:

Closes #8796 Indicate on dataset page when dataset version has no license or custom
Closes #10513 stop indexing datasets with no terms as "Custom Terms"

Special notes for your reviewer:

Suggestions on how to test this: I had to manually update the terms of use for some datasets to be :"This dataset is made available without information on how it can be used. You should communicate with the Contact(s) specified before use." Verify that these datasets are not indexed as having custom terms and not displayed as such in the UI.

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

Additional documentation:

@sekmiller sekmiller self-assigned this Jun 5, 2024
@qqmyers
Copy link
Member

qqmyers commented Jun 5, 2024

I thought from #8796 (comment) that this was going to be handled via non-active custom license for no terms and then removing the boilerplate text in termsofuse and adding that license at Harvard?

@coveralls
Copy link

Coverage Status

coverage: 20.57% (-0.003%) from 20.573%
when pulling 7cb4596 on 8796-fix-no-license-display-index
into 3c55c3f on develop.

This comment has been minimized.

@coveralls
Copy link

Coverage Status

coverage: 20.57% (-0.003%) from 20.573%
when pulling 3d9592c on 8796-fix-no-license-display-index
into 3c55c3f on develop.

This comment has been minimized.

@coveralls
Copy link

Coverage Status

coverage: 20.57% (-0.003%) from 20.573%
when pulling 584dad7 on 8796-fix-no-license-display-index
into 3c55c3f on develop.

This comment has been minimized.

@sekmiller sekmiller removed their assignment Jun 7, 2024
@coveralls
Copy link

Coverage Status

coverage: 20.571% (-0.003%) from 20.574%
when pulling a9ec416 on 8796-fix-no-license-display-index
into 5bf6b6d on develop.

This comment has been minimized.

@stevenwinship stevenwinship removed their assignment Jun 20, 2024
@cmbz cmbz added the Size: 3 A percentage of a sprint. 2.1 hours. label Jul 10, 2024
@landreev landreev self-assigned this Jul 16, 2024
@coveralls
Copy link

coveralls commented Jul 17, 2024

Coverage Status

coverage: 20.639% (-0.004%) from 20.643%
when pulling 194b099 on 8796-fix-no-license-display-index
into 93e7197 on develop.

This comment has been minimized.

//test to see if the terms of use are the default set in 5.10 - if so and there's no license then don't add license to solr doc.
//fixes 10513
if (datasetVersionService.isVersionDefaultCustomTerms(datasetVersion)){
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't yet fully solve the problem for which #10513 was opened, for some harvested files - where the license id is null, AND so is the termsofuse - we don't want to index such as "Custom Terms" either.
But a quick null check below should fix that... let me try.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sekmiller @qqmyers
I have added this extra check for null TermsOfUse: 194b099
in order to fix #10513 for harvested datasets that have neither a standard license, nor anything populated in TermsOfUseAndAccess.
Is this ok? - i.e., ok to assume that a version with actual custom terms of use will always have a non-null TermsOfUse?

Copy link
Contributor

@landreev landreev Jul 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... I'm leaning towards merging it shortly, unless someone stops me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, merging.

…ts harvested in oai_dc, and not break anything else... I think? #8796
Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:8796-fix-no-license-display-index
ghcr.io/gdcc/configbaker:8796-fix-no-license-display-index

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@landreev landreev merged commit 4615f4f into develop Jul 18, 2024
19 checks passed
@landreev landreev removed their assignment Jul 18, 2024
@pdurbin pdurbin added this to the 6.4 milestone Jul 18, 2024
PaulBoon added a commit to DANS-KNAW/dataverse that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Done 🧹
7 participants