From fc0c5dcca515aa1c45299c9e2e28e7be5fec4b8e Mon Sep 17 00:00:00 2001 From: Kevin Silva Date: Wed, 6 Dec 2023 13:35:28 +0100 Subject: [PATCH] SONAR-19973 - Change search issues api payload --- .../src/main/js/apps/issues/components/IssuesApp.tsx | 4 ++-- .../src/main/js/components/SourceViewer/helpers/loadIssues.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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), }; -- 2.39.5