Skip to content

Serve system projects to translate endpoints - #4408

Merged
ayshushus merged 1 commit into
mozilla:mainfrom
mathjazz:4354-tutorial-helpers
Aug 17, 2026
Merged

ayshushus merged 1 commit into
mozilla:mainfrom
mathjazz:4354-tutorial-helpers

Conversation

@mathjazz

Copy link
Copy Markdown
Collaborator

Fix #4354.

The History, Comments, Locales and Sibling strings endpoints looked the entity up in Project.objects.visible(), which is available().filter(system_project=False). The tutorial is a system project, so all four returned 404 for every user, and the panels showed nothing rather than reporting a failure.

What these endpoints need to know is whether the user can reach the project, not whether it is listed on the dashboards. available() still excludes disabled and resource-less projects, and visible_for still hides private ones from non-superusers.

The History, Comments, Locales and Sibling strings endpoints looked the
entity up in `Project.objects.visible()`, which is
`available().filter(system_project=False)`. The tutorial is a system
project, so all four returned 404 for every user, and the panels showed
nothing rather than reporting a failure.

What these endpoints need to know is whether the user can reach the
project, not whether it is listed on the dashboards. `available()` still
excludes disabled and resource-less projects, and `visible_for` still
hides private ones from non-superusers.

@ayshushus ayshushus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Logically makes sense to me :)

@ayshushus
ayshushus merged commit daa4ec2 into mozilla:main Aug 17, 2026
7 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.

Tutorial: History, Comments, Locales and sibling strings never load

2 participants