Browse Source

fix(issue-priority): Include project ID in request when updating priority (#69134)

Fixes https://github.com/getsentry/sentry/issues/69120

This matches exactly the request that's made for bulk editing on the
stream. We need to include the project or otherwise the endpoint can
fail for free plans that don't have access to all projects.
Malachi Willey 10 months ago
parent
commit
e849a2ab33

+ 4 - 4
static/app/actionCreators/group.tsx

@@ -214,7 +214,7 @@ export function updateNote(
 type ParamsType = {
   environment?: string | string[] | null;
   itemIds?: string[];
-  project?: number[] | null;
+  project?: number[] | string[] | null;
   query?: string;
 };
 
@@ -227,16 +227,16 @@ type QueryArgs =
   | {
       query: string;
       environment?: string | Array<string>;
-      project?: Array<number>;
+      project?: Array<number | string>;
     }
   | {
       id: Array<number> | Array<string>;
       environment?: string | Array<string>;
-      project?: Array<number>;
+      project?: Array<number | string>;
     }
   | {
       environment?: string | Array<string>;
-      project?: Array<number>;
+      project?: Array<number | string>;
     };
 
 /**

+ 1 - 0
static/app/views/issueDetails/groupPriority.tsx

@@ -44,6 +44,7 @@ function GroupPriority({group, onChange}: GroupDetailsPriorityProps) {
         itemIds: [group.id],
         data: {priority},
         failSilently: true,
+        project: [group.project.id],
       },
       {
         success: () => {