aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects/utils.ts
diff options
context:
space:
mode:
authorJay <jeremy.davis@sonarsource.com>2023-07-06 17:32:55 +0200
committersonartech <sonartech@sonarsource.com>2023-07-11 20:03:24 +0000
commit76c1f065c934a9abcba93dedb97fe7b4b8277ec4 (patch)
treef0e190f826d1736b02b0eba4a2488c0e649614f8 /server/sonar-web/src/main/js/apps/projects/utils.ts
parentf062b56fd8656ee6239335a561474e25f73af5f5 (diff)
downloadsonarqube-76c1f065c934a9abcba93dedb97fe7b4b8277ec4.tar.gz
sonarqube-76c1f065c934a9abcba93dedb97fe7b4b8277ec4.zip
SONAR-19709 Migrate projects facets to the new UI
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/utils.ts')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/utils.ts b/server/sonar-web/src/main/js/apps/projects/utils.ts
index 235018b7a9a..5dc045f5f05 100644
--- a/server/sonar-web/src/main/js/apps/projects/utils.ts
+++ b/server/sonar-web/src/main/js/apps/projects/utils.ts
@@ -26,7 +26,7 @@ import { isDiffMetric } from '../../helpers/measures';
import { RequestData } from '../../helpers/request';
import { MetricKey } from '../../types/metrics';
import { Dict } from '../../types/types';
-import { convertToFilter, Query } from './query';
+import { Query, convertToFilter } from './query';
interface SortingOption {
class?: string;
@@ -219,7 +219,7 @@ function defineFacets(query: Query): string[] {
return FACETS;
}
-function convertToQueryData(query: Query, isFavorite: boolean, defaultData = {}) {
+export function convertToQueryData(query: Query, isFavorite: boolean, defaultData = {}) {
const data: RequestData = { ...defaultData };
const filter = convertToFilter(query, isFavorite);
const sort = convertToSorting(query);