aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorKevin Silva <kevin.silva@sonarsource.com>2023-12-06 13:35:28 +0100
committersonartech <sonartech@sonarsource.com>2023-12-06 20:02:46 +0000
commitfc0c5dcca515aa1c45299c9e2e28e7be5fec4b8e (patch)
tree3e31424c1ad08ce5a2362c760574f65dec39b5f5 /server
parent160ec1c685f0eae5bfc4e0032e901b51f06258e5 (diff)
downloadsonarqube-fc0c5dcca515aa1c45299c9e2e28e7be5fec4b8e.tar.gz
sonarqube-fc0c5dcca515aa1c45299c9e2e28e7be5fec4b8e.zip
SONAR-19973 - Change search issues api payload
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx4
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/helpers/loadIssues.ts2
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<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 }),
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),
};