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

don't default to a language in the content api #2265

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

longhotsummer
Copy link
Contributor

@longhotsummer longhotsummer commented Oct 17, 2024

if the FRBR URI doesn't have a language, we should just try to find any document, and then consistently and unambiguously use that in the response.

Otherwise, if the default language in a country is fra and (for some reason) we only have an eng expression, then using the content API without a language gives us a 404, rather than just finding an expression with any language.

Fixes #2261

if the FRBR URI doesn't have a language, we should just try to find any
document.
Copy link

github-actions bot commented Oct 17, 2024

Test Results

565 tests  +565   565 ✅ +565   4m 25s ⏱️ + 4m 25s
 59 suites + 59     0 💤 ±  0 
 59 files   + 59     0 ❌ ±  0 

Results for commit 4474690. ± Comparison against base commit 732b06b.

♻️ This comment has been updated with latest results.

@longhotsummer longhotsummer merged commit 5a24c4b into master Oct 17, 2024
5 checks passed
@longhotsummer longhotsummer deleted the content-api-language branch October 17, 2024 11:16
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.

Content API returns a 404 for a work URI when there is no expression in the country's default language
2 participants