-
Notifications
You must be signed in to change notification settings - Fork 64
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/1393 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: +23.7 kB (+2%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
…into license_improv
…into license_improv
@dhruvkb can you add testing instructions (and fill out the checklist)? Thanks! |
@sarayourfriend done! |
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! The visual regression tests under the "media-reuse" tests also confirm there are no changes to the output 🎉
@@ -21,7 +21,7 @@ export interface Media { | |||
|
|||
license: License | |||
license_version: LicenseVersion | |||
license_url: string | |||
license_url?: string |
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.
Why does the license_url
change to an optional field?
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.
Practically it's never undefined, I added that just to ensure that things work even if it was undefined.
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.
Would it be possible to add a different language to the tests?
@obulat if you mean like for testing i18n, that'll be difficult because we only have the |
Oh, that's true! |
Description
This PR refactors and cleans up in the implementation of license constants and utils and their usage in the code.
This PR increases the code's parity with the frontend. A similar effort on the frontend is happening in WordPress/openverse-api#685.
Testing Instructions
Since this is a refactor, there are no changes to test but rather the test is that there should be no changes.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin