aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/about
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-05-01 17:48:42 +0200
committerGitHub <noreply@github.com>2017-05-01 17:48:42 +0200
commit4712ad2d974220f42893f6509ec5f0b7a7b446b0 (patch)
tree2ece706f5fed984c2fd996b5f87e5b0956eb1642 /server/sonar-web/src/main/js/apps/about
parent43f27896459dec1a76dc117db3a5b22afb99e0ff (diff)
downloadsonarqube-4712ad2d974220f42893f6509ec5f0b7a7b446b0.tar.gz
sonarqube-4712ad2d974220f42893f6509ec5f0b7a7b446b0.zip
sort issues by creation date when coming from about page (#1993)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/about')
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js10
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/EntryIssueTypesForSonarQubeDotCom.js10
2 files changed, 14 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js b/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js
index 010c2912f5c..349dbf85bba 100644
--- a/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js
+++ b/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js
@@ -43,7 +43,7 @@ export default class EntryIssueTypes extends React.PureComponent {
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'BUG' })}
+ to={getIssuesUrl({ resolved: 'false', types: 'BUG', s: 'CREATION_DATE' })}
className="about-page-issue-type-link">
{formatMeasure(bugs, 'SHORT_INT')}
</Link>
@@ -56,7 +56,11 @@ export default class EntryIssueTypes extends React.PureComponent {
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'VULNERABILITY' })}
+ to={getIssuesUrl({
+ resolved: 'false',
+ types: 'VULNERABILITY',
+ s: 'CREATION_DATE'
+ })}
className="about-page-issue-type-link">
{formatMeasure(vulnerabilities, 'SHORT_INT')}
</Link>
@@ -69,7 +73,7 @@ export default class EntryIssueTypes extends React.PureComponent {
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'CODE_SMELL' })}
+ to={getIssuesUrl({ resolved: 'false', types: 'CODE_SMELL', s: 'CREATION_DATE' })}
className="about-page-issue-type-link">
{formatMeasure(codeSmells, 'SHORT_INT')}
</Link>
diff --git a/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypesForSonarQubeDotCom.js b/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypesForSonarQubeDotCom.js
index e2a8e7ad16c..e7ef546f2ac 100644
--- a/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypesForSonarQubeDotCom.js
+++ b/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypesForSonarQubeDotCom.js
@@ -43,7 +43,7 @@ export default class EntryIssueTypesForSonarQubeDotCom extends React.PureCompone
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'BUG' })}
+ to={getIssuesUrl({ resolved: 'false', types: 'BUG', s: 'CREATION_DATE' })}
className="about-page-issue-type-link">
{formatMeasure(bugs, 'SHORT_INT')}
</Link>
@@ -56,7 +56,11 @@ export default class EntryIssueTypesForSonarQubeDotCom extends React.PureCompone
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'VULNERABILITY' })}
+ to={getIssuesUrl({
+ resolved: 'false',
+ types: 'VULNERABILITY',
+ s: 'CREATION_DATE'
+ })}
className="about-page-issue-type-link">
{formatMeasure(vulnerabilities, 'SHORT_INT')}
</Link>
@@ -69,7 +73,7 @@ export default class EntryIssueTypesForSonarQubeDotCom extends React.PureCompone
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'CODE_SMELL' })}
+ to={getIssuesUrl({ resolved: 'false', types: 'CODE_SMELL', s: 'CREATION_DATE' })}
className="about-page-issue-type-link">
{formatMeasure(codeSmells, 'SHORT_INT')}
</Link>