Skip to content

Conversation

@JoshFerge
Copy link
Member

still enforces org / project permissions

@JoshFerge JoshFerge requested review from a team May 15, 2024 00:31
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 15, 2024
@JoshFerge JoshFerge enabled auto-merge (squash) May 15, 2024 00:34
Comment on lines 22 to 24
if not features.has("projects:similarity-embeddings-backfill", project) or (
not is_active_superuser(request) and not settings.SENTRY_SINGLE_ORGANIZATION
):
Copy link
Contributor

Choose a reason for hiding this comment

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

As I understand it, you're allowed to go through if any of these conditions are true.
This would make it more obvious.

Suggested change
if not features.has("projects:similarity-embeddings-backfill", project) or (
not is_active_superuser(request) and not settings.SENTRY_SINGLE_ORGANIZATION
):
if not (
features.has("projects:similarity-embeddings-backfill", project)
or is_active_superuser(request)
or settings.SENTRY_SINGLE_ORGANIZATION
):

Copy link
Member Author

Choose a reason for hiding this comment

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

let me make this less confusing

Copy link
Member Author

Choose a reason for hiding this comment

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

kk, updated

@JoshFerge JoshFerge disabled auto-merge May 15, 2024 00:42
@JoshFerge JoshFerge enabled auto-merge (squash) May 15, 2024 00:45
@JoshFerge JoshFerge merged commit 75e0860 into master May 15, 2024
@JoshFerge JoshFerge deleted the jferg/s4s-option branch May 15, 2024 01:14
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants