Closed Bug 1663309 Opened 5 years ago Closed 5 years ago

Pontoon API returns non-active projects

Categories

(Webtools Graveyard :: Pontoon, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1640235

People

(Reporter: jordis, Unassigned)

Details

Call Pontoon API to return all projects for locale "ca":
https://pontoon.mozilla.org/graphql?query={locale(code:%22ca%22){name,localizations{project{slug}}}}

The returned json is:

{"data":{"locale":{"name":"Catalan","localizations":[{"project":{"slug":"mdn"}},{"project":{"slug":"fundraising"}},{"project":{"slug":"firefox-accounts"}},{"project":{"slug":"amo"}},{"project":{"slug":"amo-frontend"}},{"project":{"slug":"test-pilot-firefox-send"}},{"project":{"slug":"mozillalang"}},{"project":{"slug":"firefox-for-ios"}},{"project":{"slug":"lightning"}},{"project":{"slug":"thunderbird"}},{"project":{"slug":"firefox"}},{"project":{"slug":"amo-linter"}},{"project":{"slug":"common-voice"}},{"project":{"slug":"thunderbirdnet"}},{"project":{"slug":"sumo"}},{"project":{"slug":"facebook-container"}},{"project":{"slug":"firefox-monitor-website"}},{"project":{"slug":"android-l10n"}},{"project":{"slug":"mozilla-donate-website"}},{"project":{"slug":"mozillaorg"}},{"project":{"slug":"terminology"}}]}}}

ACTUAL RESULTS:
Among the projects returned, there are non-active projects, like:
fundraising
mozillalang

EXPECTED RESULTS:
Only active projects should be returned.

Note: they're actually private repositories (limited visibility). Disabled projects are correctly hidden in API requests.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.