Browse Source

chore(hc): Disable AI suggested solution in DE region (#69275)

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
Matt Duncan 10 months ago
parent
commit
e6ede98541
1 changed files with 2 additions and 0 deletions
  1. 2 0
      static/app/views/issueDetails/resourcesAndMaybeSolutions.tsx

+ 2 - 0
static/app/views/issueDetails/resourcesAndMaybeSolutions.tsx

@@ -12,6 +12,7 @@ import {
   getConfigForIssueType,
   shouldShowCustomErrorResourceConfig,
 } from 'sentry/utils/issueTypeConfig';
+import {getRegionDataFromOrganization} from 'sentry/utils/regions';
 import useOrganization from 'sentry/utils/useOrganization';
 
 type Props = {
@@ -39,6 +40,7 @@ export function ResourcesAndMaybeSolutions({event, project, group}: Props) {
   const displayAiSuggestedSolution =
     // Skip showing AI suggested solution if the issue has a custom resource
     organization.aiSuggestedSolution &&
+    getRegionDataFromOrganization(organization)?.name !== 'de' &&
     !shouldShowCustomErrorResourceConfig(group, project) &&
     !displayAiAutofix;