@@ -33,6 +33,11 @@ exports[`should handle the descending sort direction 1`] = ` | |||
"label": "projects.sorting.security", | |||
"value": "security", | |||
}, | |||
Object { | |||
"class": undefined, | |||
"label": "projects.sorting.security_review", | |||
"value": "security_review", | |||
}, | |||
Object { | |||
"class": undefined, | |||
"label": "projects.sorting.maintainability", | |||
@@ -107,6 +112,11 @@ exports[`should render correctly for leak view 1`] = ` | |||
"label": "projects.sorting.new_security", | |||
"value": "new_security", | |||
}, | |||
Object { | |||
"class": "projects-leak-sorting-option", | |||
"label": "projects.sorting.new_security_review", | |||
"value": "new_security_review", | |||
}, | |||
Object { | |||
"class": "projects-leak-sorting-option", | |||
"label": "projects.sorting.new_maintainability", | |||
@@ -181,6 +191,11 @@ exports[`should render correctly for overall view 1`] = ` | |||
"label": "projects.sorting.security", | |||
"value": "security", | |||
}, | |||
Object { | |||
"class": undefined, | |||
"label": "projects.sorting.security_review", | |||
"value": "security_review", | |||
}, | |||
Object { | |||
"class": undefined, | |||
"label": "projects.sorting.maintainability", |
@@ -41,6 +41,7 @@ export const SORTING_METRICS: SortingOption[] = [ | |||
{ value: 'analysis_date' }, | |||
{ value: 'reliability' }, | |||
{ value: 'security' }, | |||
{ value: 'security_review' }, | |||
{ value: 'maintainability' }, | |||
{ value: 'coverage' }, | |||
{ value: 'duplications' }, | |||
@@ -52,6 +53,7 @@ export const SORTING_LEAK_METRICS: SortingOption[] = [ | |||
{ value: 'analysis_date' }, | |||
{ value: 'new_reliability', class: 'projects-leak-sorting-option' }, | |||
{ value: 'new_security', class: 'projects-leak-sorting-option' }, | |||
{ value: 'new_security_review', class: 'projects-leak-sorting-option' }, | |||
{ value: 'new_maintainability', class: 'projects-leak-sorting-option' }, | |||
{ value: 'new_coverage', class: 'projects-leak-sorting-option' }, | |||
{ value: 'new_duplications', class: 'projects-leak-sorting-option' }, | |||
@@ -63,12 +65,14 @@ export const SORTING_SWITCH: T.Dict<string> = { | |||
name: 'name', | |||
reliability: 'new_reliability', | |||
security: 'new_security', | |||
security_review: 'new_security_review', | |||
maintainability: 'new_maintainability', | |||
coverage: 'new_coverage', | |||
duplications: 'new_duplications', | |||
size: 'new_lines', | |||
new_reliability: 'reliability', | |||
new_security: 'security', | |||
new_security_review: 'security_review', | |||
new_maintainability: 'maintainability', | |||
new_coverage: 'coverage', | |||
new_duplications: 'duplications', | |||
@@ -320,8 +324,8 @@ const propertyToMetricMap: T.Dict<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', | |||
security_review: 'security_review_rating', | |||
new_security_review: 'new_security_review_rating', | |||
maintainability: 'sqale_rating', | |||
new_maintainability: 'new_maintainability_rating', | |||
coverage: 'coverage', |
@@ -962,12 +962,14 @@ projects.sorting.name=Name | |||
projects.sorting.analysis_date=Last analysis date | |||
projects.sorting.reliability=Reliability | |||
projects.sorting.security=Security | |||
projects.sorting.security_review=Security Review | |||
projects.sorting.maintainability=Maintainability | |||
projects.sorting.coverage=Coverage | |||
projects.sorting.duplications=Duplications | |||
projects.sorting.size=Size | |||
projects.sorting.new_reliability=Reliability | |||
projects.sorting.new_security=Security | |||
projects.sorting.new_security_review=Security Review | |||
projects.sorting.new_maintainability=Maintainability | |||
projects.sorting.new_coverage=Coverage | |||
projects.sorting.new_duplications=Duplications |