From: Kevin Silva Date: Wed, 6 Dec 2023 12:35:28 +0000 (+0100) Subject: SONAR-19973 - Change search issues api payload X-Git-Tag: 10.4.0.87286~354 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc0c5dcca515aa1c45299c9e2e28e7be5fec4b8e;p=sonarqube.git SONAR-19973 - Change search issues api payload --- diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx index ca7c2ba0f48..9339e5add17 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx @@ -517,7 +517,7 @@ export class App extends React.PureComponent { } : { ...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 { const parameters = { ...getBranchLikeQuery(this.props.branchLike), - componentKeys: component?.key, + components: component?.key, facets: property, s: 'FILE_LINE', ...serializeQuery({ ...query, ...changes }), diff --git a/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts b/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts index a29d83f34c0..a20d150d53e 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts +++ b/server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts @@ -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), };