diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-10 14:48:54 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-11 12:02:21 +0200 |
commit | 508a1d7944f43fcace900993f25bccf7f70110e9 (patch) | |
tree | 3f737a806128ab3ad6e305ba2c073d18603330b4 /server | |
parent | 5a1bf49ac17f4936a09efc0adf26b7622c7cbd4a (diff) | |
download | sonarqube-508a1d7944f43fcace900993f25bccf7f70110e9.tar.gz sonarqube-508a1d7944f43fcace900993f25bccf7f70110e9.zip |
SONAR-9777 Open severity facet and close resolutions facet by default
Diffstat (limited to 'server')
3 files changed, 15 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/App.js b/server/sonar-web/src/main/js/apps/issues/components/App.js index f7543b877c7..f6616f229ed 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/App.js +++ b/server/sonar-web/src/main/js/apps/issues/components/App.js @@ -122,7 +122,7 @@ export default class App extends React.PureComponent { loading: true, locationsNavigator: false, myIssues: areMyIssuesSelected(props.location.query), - openFacets: { resolutions: true, types: true }, + openFacets: { severities: true, types: true }, openIssue: null, openPopup: null, query: parseQuery(props.location.query), diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js b/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js index 0cf7de366c9..d1f77a79202 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.js @@ -84,6 +84,14 @@ export default class Sidebar extends React.PureComponent { stats={facets.types} types={query.types} /> + <SeverityFacet + facetMode={query.facetMode} + onChange={this.props.onFilterChange} + onToggle={this.props.onFacetToggle} + open={!!openFacets.severities} + severities={query.severities} + stats={facets.severities} + /> <ResolutionFacet facetMode={query.facetMode} onChange={this.props.onFilterChange} @@ -93,14 +101,6 @@ export default class Sidebar extends React.PureComponent { resolutions={query.resolutions} stats={facets.resolutions} /> - <SeverityFacet - facetMode={query.facetMode} - onChange={this.props.onFilterChange} - onToggle={this.props.onFacetToggle} - open={!!openFacets.severities} - severities={query.severities} - stats={facets.severities} - /> <StatusFacet facetMode={query.facetMode} onChange={this.props.onFilterChange} diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap index 12c174f551e..5cfa13f972f 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.js.snap @@ -4,8 +4,8 @@ exports[`should render facets for developer 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -23,8 +23,8 @@ exports[`should render facets for directory 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -40,8 +40,8 @@ exports[`should render facets for global page 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -57,8 +57,8 @@ exports[`should render facets for module 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -76,8 +76,8 @@ exports[`should render facets for project 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", @@ -95,8 +95,8 @@ exports[`should render facets when my issues are selected 1`] = ` Array [ "FacetMode", "TypeFacet", - "ResolutionFacet", "SeverityFacet", + "ResolutionFacet", "StatusFacet", "CreationDateFacet", "RuleFacet", |