diff --git a/src/sentry/seer/endpoints/organization_autofix_automation_settings.py b/src/sentry/seer/endpoints/organization_autofix_automation_settings.py index 6bbe883a3c0ea0..cf5ffcab9d5adb 100644 --- a/src/sentry/seer/endpoints/organization_autofix_automation_settings.py +++ b/src/sentry/seer/endpoints/organization_autofix_automation_settings.py @@ -195,6 +195,7 @@ def _serialize_projects_with_settings( results.append( { "projectId": project.id, + "projectSlug": project.slug, "autofixAutomationTuning": ( preference.autofix_automation_tuning if preference diff --git a/tests/sentry/seer/endpoints/test_organization_autofix_automation_settings.py b/tests/sentry/seer/endpoints/test_organization_autofix_automation_settings.py index bb1977ca888753..2032ae016416f8 100644 --- a/tests/sentry/seer/endpoints/test_organization_autofix_automation_settings.py +++ b/tests/sentry/seer/endpoints/test_organization_autofix_automation_settings.py @@ -31,6 +31,7 @@ def test_get_returns_default_settings_for_all_projects(self) -> None: assert response.data == [ { "projectId": project1.id, + "projectSlug": project1.slug, "autofixAutomationTuning": AutofixAutomationTuningSettings.OFF.value, "automatedRunStoppingPoint": AutofixStoppingPoint.CODE_CHANGES.value, "automationHandoff": None, @@ -38,6 +39,7 @@ def test_get_returns_default_settings_for_all_projects(self) -> None: }, { "projectId": project2.id, + "projectSlug": project2.slug, "autofixAutomationTuning": AutofixAutomationTuningSettings.OFF.value, "automatedRunStoppingPoint": AutofixStoppingPoint.CODE_CHANGES.value, "automationHandoff": None, @@ -115,6 +117,7 @@ def test_get_reads_project_preferences(self) -> None: assert response.data == [ { "projectId": project1.id, + "projectSlug": project1.slug, "autofixAutomationTuning": AutofixAutomationTuningSettings.MEDIUM.value, "automatedRunStoppingPoint": AutofixStoppingPoint.OPEN_PR.value, "automationHandoff": None, @@ -122,6 +125,7 @@ def test_get_reads_project_preferences(self) -> None: }, { "projectId": project2.id, + "projectSlug": project2.slug, "autofixAutomationTuning": AutofixAutomationTuningSettings.HIGH.value, "automatedRunStoppingPoint": AutofixStoppingPoint.OPEN_PR.value, "automationHandoff": None,