-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1802 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: -2.46 kB (0%) Total Size: 779 kB
ℹ️ View Unchanged
|
Thanks for the fix, @obulat! |
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, except for 1 change to meet Vue 3 + TS linting requirements. Not sure why the linting process did not flag that.
Co-authored-by: Dhruv Bhanushali <dhruv_b@live.com>
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.
Adds peaks to all requests, SSR and CSR!
And I agree with your remark about the services.
Fixes
Fixes #1800 by @krysal
Description
Wow, I struggled to work with the media services. I cannot wait to refactor some of that code.
Anyway, this PR adds a special case to add
peaks=true
to all audio and related audio searches. To do so I also had to upgrade the related media method to allow for query parameters. Maybe that will be a nice addition in the future.I'm not sure about tests here. Do we have any to verify the API endpoint paths are correct? Otherwise, this is covered by the fact that the visual regression tests would change if the peak data isn't downloaded. Still, it seems like we need better test coverage around the API endpoints in general.
Testing Instructions
Check on client-rendered searches that the
peaks=true
is present for all audio API search requests, and on related audio searches. Finally, make sure you see the same peaks on SSR searches.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin