]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19973 - Change search issues api payload
authorKevin Silva <kevin.silva@sonarsource.com>
Wed, 6 Dec 2023 12:35:28 +0000 (13:35 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 6 Dec 2023 20:02:46 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx
server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts

index ca7c2ba0f48021731b8c16e418c16ee6781f37c9..9339e5add17803499170ea025e2f2200e3867af8 100644 (file)
@@ -517,7 +517,7 @@ export class App extends React.PureComponent<Props, State> {
         }
       : {
           ...getBranchLikeQuery(this.props.branchLike),
-          componentKeys: component?.key,
+          components: component?.key,
           s: 'FILE_LINE',
           ...serializeQuery(query),
           ps: `${ISSUES_PAGE_SIZE}`,
@@ -774,7 +774,7 @@ export class App extends React.PureComponent<Props, State> {
 
     const parameters = {
       ...getBranchLikeQuery(this.props.branchLike),
-      componentKeys: component?.key,
+      components: component?.key,
       facets: property,
       s: 'FILE_LINE',
       ...serializeQuery({ ...query, ...changes }),
index a29d83f34c0eb83c9f266004477c1d71ee62c1cf..a20d150d53e2301b669c9c52facec9e621266447 100644 (file)
@@ -42,7 +42,7 @@ function buildSearchQuery(component: string, branchLike: BranchLike | undefined)
   return {
     ...DEFAULT_ISSUES_QUERY,
     additionalFields: '_all',
-    componentKeys: component,
+    components: component,
     s: 'FILE_LINE',
     ...getBranchLikeQuery(branchLike),
   };