-
Notifications
You must be signed in to change notification settings - Fork 221
Add "sa" as valid license and map "publicdomain" to "pdm" #4220
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
Conversation
I queried the ES index for license values we used. Do we correctly handle all of them, @dhruvkb ?
|
We also do not handle "sa". The closest to that is "by-sa". All others are now handled. Should I update the PR for "sa" → "by-sa" as well? |
Sentry Issue: OPENVERSE-API-DB |
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.
Is this a problem that should be addressed in the catalog where we're setting those slugs? Or is that the long-term plan and this is temporary?
I'm also curious about mapping sa
to by-sa
. In the catalog we set these for https://creativecommons.org/licenses/sa/1.0/ and https://creativecommons.org/licenses/sa/2.0/jp, both of which I get results for (although there's a notice that they're retired). I'm not really familiar with how this works, but is it accurate to map that to by-sa
? Should we just not ingest those records, instead?
179182f
to
36b21e4
Compare
36b21e4
to
641844f
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.
@dhruvkb, I thought this could be a quick fix that would enable us to deploy the API without reverting the pdm changes. However, after @stacimc's note, I realize that we should carefully review the handling of licenses to ensure that we don't accidentally change the values.
Catalog has a very comprehensive list of license pair and license url correspondences, and publicdomain
there is a valid license (mark) value: https://github.com/WordPress/openverse/blob/2051936d08b31c024873051fd3b7725635579e47/catalog/dags/common/licenses/constants.py
I think we should move it to the attribution package, and update it to accept all possible values.
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!
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 for the sake of our deployments. I would generally prefer we use license
instead of lic
in the model and serializer but that's a style nitpick and not blocking.
|
Description
Some files specify the license as "publicdomain". Our standard slug for public domain content is "pdm".
Some files in the API have licenses like "publicdomain" and "sa". This PR adds these licenses to the
openverse-attribution
package. This PR also adds some exception handling around the use ofLicense
(it should not be necessary anymore, but still).A more comprehensive update for
License
is #4250, this PR is the baseline fix that will enable us to deploy the API again.Testing Instructions
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin