]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12026 Update status labels in sercurity reports pages
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Tue, 7 May 2019 14:06:27 +0000 (16:06 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 22 May 2019 18:21:14 +0000 (20:21 +0200)
server/sonar-web/src/main/js/apps/issues/sidebar/StatusFacet.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/StatusFacet-test.tsx
server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StatusFacet-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index ea83e7a20c25fd578d4274bf6703c1c7538a1d70..5c0c51f433eebc1a247597441fa268b52bcc895e 100644 (file)
@@ -39,7 +39,7 @@ interface Props {
 }
 
 const STATUSES = ['OPEN', 'CONFIRMED', 'REOPENED', 'RESOLVED'];
-const HOTSPOT_STATUSES = ['TO_REVIEW', 'REVIEWED', 'IN_REVIEW'];
+const HOTSPOT_STATUSES = ['TOREVIEW', 'REVIEWED', 'INREVIEW'];
 const COMMON_STATUSES = ['CLOSED'];
 
 export default class StatusFacet extends React.PureComponent<Props> {
index 3b7b1482d35ccc6a38887f00f8b174094ca5739d..6e7ee1ec10dc4c664864fd92f1c1610391abad34 100644 (file)
@@ -35,7 +35,7 @@ it('should toggle status facet', () => {
 
 it('should clear status facet', () => {
   const onChange = jest.fn();
-  const wrapper = shallowRender({ onChange, statuses: ['TO_REVIEW'] });
+  const wrapper = shallowRender({ onChange, statuses: ['TOREVIEW'] });
   wrapper.children('FacetHeader').prop<Function>('onClear')();
   expect(onChange).toBeCalledWith({ statuses: [] });
 });
@@ -43,8 +43,8 @@ it('should clear status facet', () => {
 it('should select a status', () => {
   const onChange = jest.fn();
   const wrapper = shallowRender({ onChange });
-  clickAndCheck('TO_REVIEW');
-  clickAndCheck('OPEN', true, ['OPEN', 'TO_REVIEW']);
+  clickAndCheck('TOREVIEW');
+  clickAndCheck('OPEN', true, ['OPEN', 'TOREVIEW']);
   clickAndCheck('CONFIRMED');
 
   function clickAndCheck(status: string, multiple = false, expected = [status]) {
@@ -70,8 +70,8 @@ function shallowRender(props: Partial<StatusFacet['props']> = {}) {
         REOPENED: 0,
         RESOLVED: 0,
         CLOSED: 8,
-        TO_REVIEW: 150,
-        IN_REVIEW: 7,
+        TOREVIEW: 150,
+        INREVIEW: 7,
         REVIEWED: 1105
       }}
       statuses={[]}
index 9d01da1c88e1996e066dee2c47b61eb9ed0f76ff..de473009503be98e2732d4e57d17292a7a6277f4 100644 (file)
@@ -90,17 +90,17 @@ exports[`should render correctly 1`] = `
       active={false}
       disabled={false}
       halfWidth={true}
-      key="TO_REVIEW"
+      key="TOREVIEW"
       loading={false}
       name={
         <StatusHelper
-          status="TO_REVIEW"
+          status="TOREVIEW"
         />
       }
       onClick={[Function]}
       stat="150"
-      tooltip="issue.status.TO_REVIEW"
-      value="TO_REVIEW"
+      tooltip="issue.status.TOREVIEW"
+      value="TOREVIEW"
     />
     <FacetItem
       active={false}
@@ -122,17 +122,17 @@ exports[`should render correctly 1`] = `
       active={false}
       disabled={false}
       halfWidth={true}
-      key="IN_REVIEW"
+      key="INREVIEW"
       loading={false}
       name={
         <StatusHelper
-          status="IN_REVIEW"
+          status="INREVIEW"
         />
       }
       onClick={[Function]}
       stat="7"
-      tooltip="issue.status.IN_REVIEW"
-      value="IN_REVIEW"
+      tooltip="issue.status.INREVIEW"
+      value="INREVIEW"
     />
   </FacetItemsList>
   <FacetItemsList
index 8ed013ff7836456ce0f3e0162309270202485d0f..74319838eafb7a1a438fb1de28ce081b7b8498f5 100644 (file)
@@ -649,8 +649,8 @@ issue.status.RESOLVED=Resolved
 issue.status.OPEN=Open
 issue.status.CONFIRMED=Confirmed
 issue.status.CLOSED=Closed
-issue.status.TO_REVIEW=To Review
-issue.status.IN_REVIEW=In Review
+issue.status.TOREVIEW=To Review
+issue.status.INREVIEW=In Review
 issue.status.REVIEWED=Reviewed
 
 issue.resolution.FALSE-POSITIVE=False Positive