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

feat(data-consent): Add region check to data consent option #68315

Closed
wants to merge 4 commits into from

Conversation

roggenkemper
Copy link
Member

this pr adds a check for the region, since the genAIConsent option is limited to those organizations in the US region

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 4, 2024
Copy link

codecov bot commented Apr 5, 2024

Bundle Report

Changes will decrease total bundle size by 719 bytes ⬇️

Bundle name Size Change
sentry-webpack-bundle-array-push 26.16MB 719 bytes ⬇️

Copy link
Member

@vartec vartec left a comment

Choose a reason for hiding this comment

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

🚢 🇮🇹

if not request.access.has_scope("org:billing"):
raise serializers.ValidationError("You do not have permission to change this option")

if get_local_region().name != "us":
Copy link
Member

Choose a reason for hiding this comment

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

Beyond scope of this PR, but we probably should make region IDs into some kind of StrEnum or something like that, so it would use RegionEnum.US instead of "us".

@@ -326,6 +327,23 @@ def validate_projectRateLimit(self, value):
)
return value

def validate_aggregatedDataConsent(self, value):
Copy link
Member

Choose a reason for hiding this comment

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

style nit: what's with the camel-case?

🐍

mrduncan added a commit that referenced this pull request Apr 19, 2024
This is a temporary fix to disable AI suggested solution in the DE
region. A separate PR will update organization settings to disable the
option for regions which do not support AI suggested solution. This will
all be eventually replaced with Autofix.

We'll incorporate AI suggested solution into the same changes we're
making in #68315
MichaelSun48 pushed a commit that referenced this pull request Apr 25, 2024
This is a temporary fix to disable AI suggested solution in the DE
region. A separate PR will update organization settings to disable the
option for regions which do not support AI suggested solution. This will
all be eventually replaced with Autofix.

We'll incorporate AI suggested solution into the same changes we're
making in #68315
@getsantry
Copy link
Contributor

getsantry bot commented May 10, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label May 10, 2024
@getsantry getsantry bot closed this May 18, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 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 Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants