diff options
author | Mathieu Suen <mathieu.suen@sonarsource.com> | 2020-01-28 16:59:33 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-02-11 20:46:11 +0100 |
commit | ec64094599252553e55efa348516ff36477bce57 (patch) | |
tree | 8c0d987bb2bd94a30ed44cf29a6da58da31dfe46 /server/sonar-web/src/main/js/apps/projects/query.ts | |
parent | 049128b4f1b226d15ef12802feb497d7edb7baed (diff) | |
download | sonarqube-ec64094599252553e55efa348516ff36477bce57.tar.gz sonarqube-ec64094599252553e55efa348516ff36477bce57.zip |
SONAR-12961 review in project cards
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/query.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/query.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/query.ts b/server/sonar-web/src/main/js/apps/projects/query.ts index ff632a4f283..e40e9c9af0c 100644 --- a/server/sonar-web/src/main/js/apps/projects/query.ts +++ b/server/sonar-web/src/main/js/apps/projects/query.ts @@ -27,6 +27,8 @@ export interface Query { new_reliability?: number; security?: number; new_security?: number; + security_review_rating?: number; + new_security_review_rating?: number; maintainability?: number; new_maintainability?: number; coverage?: number; @@ -51,6 +53,8 @@ export function parseUrlQuery(urlQuery: T.RawQuery): Query { new_reliability: getAsNumericRating(urlQuery['new_reliability']), security: getAsNumericRating(urlQuery['security']), new_security: getAsNumericRating(urlQuery['new_security']), + security_review_rating: getAsNumericRating(urlQuery['security_review']), + new_security_review_rating: getAsNumericRating(urlQuery['new_security_review']), maintainability: getAsNumericRating(urlQuery['maintainability']), new_maintainability: getAsNumericRating(urlQuery['new_maintainability']), coverage: getAsNumericRating(urlQuery['coverage']), @@ -94,9 +98,11 @@ export function convertToFilter(query: Query, isFavorite: boolean): string { [ 'reliability', 'security', + 'security_review_rating', 'maintainability', 'new_reliability', 'new_security', + 'new_security_review_rating', 'new_maintainability' ].forEach(property => pushMetricToArray(query, property, conditions, convertIssuesRating)); @@ -232,6 +238,8 @@ function mapPropertyToMetric(property?: string): string | undefined { new_reliability: 'new_reliability_rating', security: 'security_rating', new_security: 'new_security_rating', + security_review_rating: 'security_review_rating', + new_security_review_rating: 'new_security_review_rating', maintainability: 'sqale_rating', new_maintainability: 'new_maintainability_rating', coverage: 'coverage', |