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

Properly handle copyrighted data #574

Merged
merged 12 commits into from
Feb 21, 2025
Merged

Properly handle copyrighted data #574

merged 12 commits into from
Feb 21, 2025

Conversation

gunnarvelle
Copy link
Member

@gunnarvelle gunnarvelle commented Jan 9, 2025

Data med opphavsrett er lagra med lisens "COPYRIGHTED" og ikkje "copyrighted" så dette søket fungerer ikkje i dag.

https://github.com/NDLANO/Issues/issues/4263

@@ -268,7 +269,7 @@ trait MultiDraftSearchService {
val idFilter = if (settings.withIdIn.isEmpty) None else Some(idsQuery(settings.withIdIn))

val licenseFilter = settings.license match {
case None => Some(boolQuery().not(termQuery("license", "copyrighted")))
case None => Some(boolQuery().not(termQuery("license", License.Copyrighted.toString)))
Copy link
Member Author

@gunnarvelle gunnarvelle Jan 9, 2025

Choose a reason for hiding this comment

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

Dette funker ikkje slik det er no, men konsekvensen er at vi får opp artikler med opphavsrett i ed-søket, så hell i uhell!

@gunnarvelle gunnarvelle marked this pull request as ready for review January 10, 2025 12:13
Copy link
Member Author

@gunnarvelle gunnarvelle left a comment

Choose a reason for hiding this comment

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

For bakoverkompabilitets skyld bør vi la includeCopyrighted ligge og heller sette license=all dersom denne er satt.

@gunnarvelle
Copy link
Member Author

gunnarvelle commented Jan 17, 2025

Får ikkje lov å approve siden eg laga denne, men tenker vi kan merge.

@jnatten
Copy link
Contributor

jnatten commented Jan 31, 2025

Denne gikk litt i glemmeboka, men er vi klare i frontend for å ta inn dette? @gunnarvelle

@gunnarvelle
Copy link
Member Author

Ikkje heilt endå, men etter min tilhørende pr i ed kan vi nok ta den inn

@gunnarvelle gunnarvelle force-pushed the fix-copyrighted-filter branch from 133b30a to fe77995 Compare February 19, 2025 09:23
Copy link
Contributor

@jnatten jnatten left a comment

Choose a reason for hiding this comment

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

LGTM

@gunnarvelle gunnarvelle merged commit f8ddb75 into master Feb 21, 2025
19 checks passed
@gunnarvelle gunnarvelle deleted the fix-copyrighted-filter branch February 21, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants