From f0c26b40f36ad281a7609554ceaf9a23c03d230e Mon Sep 17 00:00:00 2001 From: Mihir Mavalankar Date: Thu, 20 Nov 2025 14:04:53 -0800 Subject: [PATCH] feat(traige signals): Auto Trigger Fixes maps to Medium fixability threshold --- static/app/views/settings/projectSeer/index.spec.tsx | 4 ++-- static/app/views/settings/projectSeer/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/static/app/views/settings/projectSeer/index.spec.tsx b/static/app/views/settings/projectSeer/index.spec.tsx index c2d3233b8b77d7..24eaeb2090b6cc 100644 --- a/static/app/views/settings/projectSeer/index.spec.tsx +++ b/static/app/views/settings/projectSeer/index.spec.tsx @@ -661,7 +661,7 @@ describe('ProjectSeer', () => { ).toBeChecked(); }); - it('saves "always" when toggled ON, "off" when toggled OFF', async () => { + it('saves "medium" when toggled ON, "off" when toggled OFF', async () => { const projectPutRequest = MockApiClient.addMockResponse({ url: `/projects/${organization.slug}/${project.slug}/`, method: 'PUT', @@ -685,7 +685,7 @@ describe('ProjectSeer', () => { await waitFor(() => { expect(projectPutRequest).toHaveBeenCalledWith( expect.any(String), - expect.objectContaining({data: {autofixAutomationTuning: 'always'}}) + expect.objectContaining({data: {autofixAutomationTuning: 'medium'}}) ); }); diff --git a/static/app/views/settings/projectSeer/index.tsx b/static/app/views/settings/projectSeer/index.tsx index 2f2e815a70e083..97731e9361f983 100644 --- a/static/app/views/settings/projectSeer/index.tsx +++ b/static/app/views/settings/projectSeer/index.tsx @@ -94,8 +94,9 @@ const autofixAutomationToggleField = { type: 'boolean', saveOnBlur: true, saveMessage: t('Automatic Seer settings updated'), + // For triage signals V0: toggle ON maps to 'medium' threshold (fixability >= 0.40) getData: (data: Record) => ({ - autofixAutomationTuning: data.autofixAutomationTuning ? 'always' : 'off', + autofixAutomationTuning: data.autofixAutomationTuning ? 'medium' : 'off', }), } satisfies FieldObject;