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(endpoints): Fetching organisation repos regardless of status #75455

Merged

Conversation

benlangfeld
Copy link
Contributor

@benlangfeld benlangfeld commented Aug 1, 2024

Previous to e2fa60a, the behaviour of the API was that sending ?status= would return all entities regardless of their status. This restores that behaviour.

See #75409 where the actual fix comes from. My contribution here is adding test coverage.

closes #75409

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Christinarlong and others added 2 commits July 31, 2024 17:12
Prev changes led to some integrations that set status to an invalid value to be an empty queryset
leading to errors for certain providers (i.e terraform-provider)
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 1, 2024
@benlangfeld benlangfeld changed the title 20240801-org-repo-empty-status Fix fetching organisation repos regardless of status Aug 1, 2024
@benlangfeld benlangfeld changed the title Fix fetching organisation repos regardless of status fix(endpoints): Fetching organisation repos regardless of status Aug 1, 2024
@benlangfeld benlangfeld marked this pull request as ready for review August 1, 2024 17:53
@benlangfeld benlangfeld requested a review from a team as a code owner August 1, 2024 17:53
@asottile-sentry asottile-sentry added the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Aug 1, 2024
@asottile-sentry
Copy link
Member

technically your new test already passed (since it's part of the normal sentry suite and not the private getsentry suite -- thanks for the patch!

Copy link
Member

@asottile-sentry asottile-sentry left a comment

Choose a reason for hiding this comment

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

@asottile-sentry asottile-sentry enabled auto-merge (squash) August 1, 2024 17:57
@asottile-sentry asottile-sentry merged commit 23a1068 into getsentry:master Aug 1, 2024
53 of 55 checks passed
@benlangfeld benlangfeld deleted the 20240801-org-repo-empty-status branch August 1, 2024 18:46
@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants