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

LB-1681: Fix 500 error on artist page #3042

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

LB-1681: Fix 500 error on artist page #3042

wants to merge 2 commits into from

Conversation

anshg1214
Copy link
Member

@anshg1214 anshg1214 commented Nov 20, 2024

This PR fixes LB-1681.

The sorting function for release groups anticipated a complete date as input. However, after the partial date issue was resolved in the PR #3029, the sorting function malfunctioned.

Also, there’s a minor issue when we save the partial dates in our cache. As discussed in the pull request https://github.com/metabrainz/listenbrainz-server/pull/3029/files#r1842882407, we only support a limited set of date formats, but the current method of saving the dates can also result in -MM-DD, -DD, -MM, or YYYY-DD formats.

This PR has been deployed on test.listenbrainz.org.

For reference, here are the links:

As mentioned in the discussion https://github.com/metabrainz/listenbrainz-server/pull/3029/files#r1842882407, we only support a few formats for the date, but the current way of saving the dates can lead to -MM-DD, -DD, -MM or YYYY-DD format too.
@pep8speaks
Copy link

Hello @anshg1214! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 137:9: E303 too many blank lines (2)

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