-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
@@ -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))) |
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.
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!
Also remove `includeCopyrighted` flag from search
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.
For bakoverkompabilitets skyld bør vi la includeCopyrighted ligge og heller sette license=all dersom denne er satt.
For backwards compatibility. If `license` is provided this is used instead.
search-api/src/main/scala/no/ndla/searchapi/service/search/MultiDraftSearchService.scala
Outdated
Show resolved
Hide resolved
image-api/src/main/scala/no/ndla/imageapi/controller/ImageControllerV2.scala
Show resolved
Hide resolved
Får ikkje lov å approve siden eg laga denne, men tenker vi kan merge. |
Denne gikk litt i glemmeboka, men er vi klare i frontend for å ta inn dette? @gunnarvelle |
Ikkje heilt endå, men etter min tilhørende pr i ed kan vi nok ta den inn |
133b30a
to
fe77995
Compare
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.
LGTM
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