Skip to content

feat(ai): Migrate ai features to use new consolidated flag#80948

Merged
jennmueng merged 2 commits into
masterfrom
jenn/autofix/new-consolidated-flag-2
Nov 18, 2024
Merged

feat(ai): Migrate ai features to use new consolidated flag#80948
jennmueng merged 2 commits into
masterfrom
jenn/autofix/new-consolidated-flag-2

Conversation

@jennmueng

Copy link
Copy Markdown
Contributor

Consolidate all the AI features to use the same flag. Also removes unused instances of the codebase indexing endpoints.

To ensure consistency for customers flagged by this, this must be merged after https://github.com/getsentry/sentry-options-automator/pull/2700

@jennmueng jennmueng requested review from a team as code owners November 18, 2024 22:07
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 18, 2024
if not (
features.has("projects:ai-autofix", group.project)
or features.has("organizations:autofix", group.organization)
or group.organization.get_option("sentry:gen_ai_consent_v2024_11_14", False)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this should've been an and for the genai consent this whole time

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.

No, we made this an or for the Copilot extension as a workaround to allow GitHub to give access to whoever without us having to flag them in.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see, but now is it ok as we're open beta-ing this or should we revert it to an or?

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.

Offline decision: it's okay to remove this

Comment on lines -114 to -115
"disable_codebase_indexing": features.has(
"organizations:autofix-disable-codebase-indexing",

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.

are we removing these flags elsewhere in another PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes following up with a flag removal pr

@codecov

codecov Bot commented Nov 18, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/api/endpoints/group_ai_summary.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #80948      +/-   ##
==========================================
- Coverage   78.48%   78.47%   -0.02%     
==========================================
  Files        7210     7207       -3     
  Lines      319532   319455      -77     
  Branches    43963    43957       -6     
==========================================
- Hits       250797   250701      -96     
- Misses      62348    62364      +16     
- Partials     6387     6390       +3     

@roaga roaga 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.

Do we need to improve test coverage with all these changes?

@jennmueng

Copy link
Copy Markdown
Contributor Author

@roaga yeah means the lines we change weren't covered

@jennmueng jennmueng merged commit c937b46 into master Nov 18, 2024
@jennmueng jennmueng deleted the jenn/autofix/new-consolidated-flag-2 branch November 18, 2024 23:13
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 4, 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.

2 participants