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

Uniform Checks for Locale, Project, and ProjectLocale in AJAX Views #3056

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

ayanaar
Copy link
Contributor

@ayanaar ayanaar commented Dec 18, 2023

Fixes #2338

This PR addresses an inconsistency in our AJAX views regarding the checks for the existence and visibility of Locale and Project, as well as the existence of ProjectLocale. Previously, ajax_resources and ajax_tags only checked for the Locale and Project, while ajax_contributors and ajax_insights checked for the ProjectLocale. This update ensures that all these views consistently perform both sets of checks.

@ayanaar ayanaar requested a review from mathjazz December 18, 2023 21:51
@mathjazz mathjazz marked this pull request as ready for review December 20, 2023 15:58
Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

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

Greak work!

The code makes sense. I also tested locally and didn't spot any issues.

@mathjazz mathjazz merged commit 3a95b7b into mozilla:main Dec 20, 2023
4 checks passed
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.

Project+locale AJAX endpoint logic is not uniform
2 participants