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

CB-444: API error messages are music-specific #458

Merged
merged 7 commits into from
Aug 30, 2022

Conversation

anshg1214
Copy link
Member

@anshg1214 anshg1214 requested a review from alastair August 22, 2022 10:02
Without this check it would be possible to create a review in draft
mode, or have a review hidden and then submit one again.
This test would pass, but then an sql server error would be raised due
to duplicate key when trying to save the review.
These extensions are now built into jinja and don't need to be specified
separately
We share some code and variables between the website and webservice
which is translated with lazy_gettext.
If the babel extension is not installed in the flask app, the
evaluation of this variable causes an unhandled exception in babel.
In order to prevent this exception, configure babel with a domain which
is different to the default `messages` domain used in the website.
This will result in no translations being found, and the strings being
passed through to the WS in english.
@alastair
Copy link
Collaborator

@anshg1214 I believe I fixed the babel error that occurs when trying to render a lazy_gettext in the API, can you check?

@anshg1214
Copy link
Member Author

It is working now. Thanks!

@alastair alastair merged commit 48bb19a into metabrainz:master Aug 30, 2022
@github-actions
Copy link

Unit Test Results

    1 files  ±0      1 suites  ±0   1m 44s ⏱️ ±0s
194 tests ±0  194 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 48bb19a. ± Comparison against base commit 48bb19a.

@anshg1214 anshg1214 deleted the CB-444 branch August 30, 2022 15:29
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.

2 participants