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

Always return dummy data in debug mode if it's not in MusicBrainz #438

Merged
merged 1 commit into from Jun 29, 2022

Conversation

alastair
Copy link
Collaborator

This is so that we can see reviews during development when using the musicbrainz sample database. By default, if the entity being reviewed isn't in the musicbrainz database, it is omitted from the list, but with a sample database this means that only 3 or 4 reviews are ever shown, even on a full CB data dump.

When DEBUG=True, any time that a review is shown in a list or on a review page, and no related entity is in the connected musicbrainz database, a dummy title/artist will be shown.

Going to the entity page on the local CB server will still raise a 404, this change only affects reviews.

Screen Shot 2022-06-20 at 4 35 12 PM

Screen Shot 2022-06-20 at 4 35 19 PM

Screen Shot 2022-06-20 at 4 36 44 PM

This is so that we can see reviews during development when using the
musicbrainz sample database
@alastair alastair requested a review from amCap1712 June 20, 2022 14:39
@github-actions
Copy link

Unit Test Results

    1 files  ±0      1 suites  ±0   1m 45s ⏱️ -8s
171 tests ±0  171 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit f516800. ± Comparison against base commit 7ef06cb.

@alastair alastair merged commit f858811 into master Jun 29, 2022
@alastair alastair deleted the sampledb-missing-entities branch June 29, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant