aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles
diff options
context:
space:
mode:
authorJacek Poreda <jacek.poreda@sonarsource.com>2023-11-17 15:18:49 +0100
committersonartech <sonartech@sonarsource.com>2023-11-28 20:02:42 +0000
commit87614500bffae2fc84f619b07808f56eeae58c9d (patch)
tree12a3e9b515f64fbf5e58255acb830c96c0208e87 /server/sonar-web/src/main/js/apps/quality-profiles
parent982713f8d4749a7c9fa867e772e532069da2b186 (diff)
downloadsonarqube-87614500bffae2fc84f619b07808f56eeae58c9d.tar.gz
sonarqube-87614500bffae2fc84f619b07808f56eeae58c9d.zip
SONAR-21042 - Remove ES Rule index usage in Recently Added Rules and Scanner Engine
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx
index 6cce1debf5c..d8c20c405d2 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx
@@ -21,7 +21,7 @@ import { DiscreetLink, Link, Note } from 'design-system';
import { noop, sortBy } from 'lodash';
import * as React from 'react';
import { useIntl } from 'react-intl';
-import { searchRules } from '../../../api/rules';
+import { listRules } from '../../../api/rules';
import { toShortISO8601String } from '../../../helpers/dates';
import { translateWithParameters } from '../../../helpers/l10n';
import { formatMeasure } from '../../../helpers/measures';
@@ -54,7 +54,7 @@ export default function EvolutionRules() {
s: 'createdAt',
};
- searchRules(data).then(({ actives, rules, paging: { total } }) => {
+ listRules(data).then(({ actives, rules, paging: { total } }) => {
setLatestRules(sortBy(parseRules(rules, actives), 'langName'));
setLatestRulesTotal(total);
}, noop);