From 6815b3813a842120b53ae6787a8cb6da89f3db01 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Thu, 13 Jun 2019 16:08:54 +0200 Subject: [PATCH] SONAR-11876 Replace deprecated 'componentQuery' parameter --- .../js/apps/background-tasks/components/BackgroundTasksApp.tsx | 2 +- server/sonar-web/src/main/js/apps/background-tasks/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx index 437d743ee07..9dcc3931657 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.tsx @@ -112,7 +112,7 @@ export class BackgroundTasksApp extends React.PureComponent { const query = this.props.location.query.query || DEFAULT_FILTERS.query; const filters = { status, taskType, currents, minSubmittedAt, maxExecutedAt, query }; - const parameters /*: Object */ = mapFiltersToParameters(filters); + const parameters = mapFiltersToParameters(filters); if (this.props.component) { parameters.componentId = this.props.component.id; diff --git a/server/sonar-web/src/main/js/apps/background-tasks/utils.ts b/server/sonar-web/src/main/js/apps/background-tasks/utils.ts index fa4573b9bdb..76aa8c4aa98 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/utils.ts +++ b/server/sonar-web/src/main/js/apps/background-tasks/utils.ts @@ -72,7 +72,7 @@ export function mapFiltersToParameters(filters: Partial = {}) { } if (filters.query) { - parameters.componentQuery = filters.query; + parameters.q = filters.query; } return parameters; -- 2.39.5