Skip to content

Commit ed718fe

Browse files
feat(triage signals): Auto Trigger Fixes "On" maps to Medium fixability threshold (#103781)
## PR details + For the V0, rather than running on all issues with >= event count we are only running for issues with >= med. fixability and >= 10 event count. + This will help us reuse the `_is_issue_fixable` function as is in run_automation.
1 parent d7fce8d commit ed718fe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

static/app/views/settings/projectSeer/index.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ describe('ProjectSeer', () => {
661661
).toBeChecked();
662662
});
663663

664-
it('saves "always" when toggled ON, "off" when toggled OFF', async () => {
664+
it('saves "medium" when toggled ON, "off" when toggled OFF', async () => {
665665
const projectPutRequest = MockApiClient.addMockResponse({
666666
url: `/projects/${organization.slug}/${project.slug}/`,
667667
method: 'PUT',
@@ -685,7 +685,7 @@ describe('ProjectSeer', () => {
685685
await waitFor(() => {
686686
expect(projectPutRequest).toHaveBeenCalledWith(
687687
expect.any(String),
688-
expect.objectContaining({data: {autofixAutomationTuning: 'always'}})
688+
expect.objectContaining({data: {autofixAutomationTuning: 'medium'}})
689689
);
690690
});
691691

static/app/views/settings/projectSeer/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ const autofixAutomationToggleField = {
9494
type: 'boolean',
9595
saveOnBlur: true,
9696
saveMessage: t('Automatic Seer settings updated'),
97+
// For triage signals V0: toggle ON maps to 'medium' threshold (fixability >= 0.40)
9798
getData: (data: Record<PropertyKey, unknown>) => ({
98-
autofixAutomationTuning: data.autofixAutomationTuning ? 'always' : 'off',
99+
autofixAutomationTuning: data.autofixAutomationTuning ? 'medium' : 'off',
99100
}),
100101
} satisfies FieldObject;
101102

0 commit comments

Comments
 (0)