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

Fix supporter being required when selecting default options in beatmap listing #11419

Merged

Conversation

notbakaneko
Copy link
Collaborator

Check and normalize for default value when updating search filters instead of just the final url.

closes #10972

Comment on lines 12 to 18
beforeAll(() => {
core.setCurrentUser(testCurrentUserJson);
});

afterAll(() => {
core.setCurrentUser({ id: undefined });
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this for here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actual problem was if tests that simulated having a user ran first and didn't have user_preferences set left it undefined when logging out

Doesn't affect normal logout as it reloads the whole page, but js tests unset the user to simulate logout
@notbakaneko notbakaneko force-pushed the feature/beatmapset-search-filter-default-reset branch from 831e61d to 7297a1b Compare August 9, 2024 19:09
@nanaya nanaya enabled auto-merge August 13, 2024 12:23
@nanaya nanaya merged commit caf6fd7 into ppy:master Aug 13, 2024
3 checks passed
@notbakaneko notbakaneko deleted the feature/beatmapset-search-filter-default-reset branch September 17, 2024 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants