summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-03-08 17:35:01 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-03-10 10:44:17 +0100
commit5d1d0e52b2fcde16c3ff23adc6ea29752ee5cbd7 (patch)
treee8ccb68af0528607ba472f3b476612200d151713
parentb551bd6ef3f878f7b68acdf759b995e227e1baaa (diff)
downloadsonarqube-5d1d0e52b2fcde16c3ff23adc6ea29752ee5cbd7.tar.gz
sonarqube-5d1d0e52b2fcde16c3ff23adc6ea29752ee5cbd7.zip
SONAR-7345 Rename Issue debt to effort in UI
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/dashboard/widget/IssuesWidget.java2
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/platform/ws/l10n-index-example.json2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/templates/facets/issues-mode-facet.hbs2
-rw-r--r--server/sonar-web/src/main/js/components/issue/templates/issue.hbs2
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb3
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties22
6 files changed, 15 insertions, 18 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/dashboard/widget/IssuesWidget.java b/server/sonar-server/src/main/java/org/sonar/server/dashboard/widget/IssuesWidget.java
index 899b2cabce9..6d428f0dcd1 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/dashboard/widget/IssuesWidget.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/dashboard/widget/IssuesWidget.java
@@ -25,6 +25,6 @@ import org.sonar.api.web.WidgetCategory;
public class IssuesWidget extends CoreWidget {
public IssuesWidget() {
- super("rules", "Issues and Technical Debt", "/org/sonar/server/dashboard/widget/issues.html.erb");
+ super("rules", "Issues and Effort", "/org/sonar/server/dashboard/widget/issues.html.erb");
}
}
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/platform/ws/l10n-index-example.json b/server/sonar-server/src/main/resources/org/sonar/server/platform/ws/l10n-index-example.json
index eb7071f7e9d..b78aa60b08a 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/platform/ws/l10n-index-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/platform/ws/l10n-index-example.json
@@ -65,7 +65,7 @@
"coverage_viewer.overall_tests": "All Tests",
"metric.test_failures.description": "Number of unit test failures",
"dashboard.error_unshare_default": "This dashboard can't be unshared as long as it's defined as a default dashboard",
- "issue.technical_debt": "Technical Debt:",
+ "issue.effort": "Effort:",
"background_tasks.failures": "failures",
"property.category.exclusions.duplications.description": "Configure the files that should be ignored by duplication detection.",
"widget.treemap-widget.name": "Treemap of Components",
diff --git a/server/sonar-web/src/main/js/apps/issues/templates/facets/issues-mode-facet.hbs b/server/sonar-web/src/main/js/apps/issues/templates/facets/issues-mode-facet.hbs
index ea2f7433c8b..6e8ec1de40f 100644
--- a/server/sonar-web/src/main/js/apps/issues/templates/facets/issues-mode-facet.hbs
+++ b/server/sonar-web/src/main/js/apps/issues/templates/facets/issues-mode-facet.hbs
@@ -8,7 +8,7 @@
<li>
<input type="radio" name="issues-page-mode" value="debt" id="issues-page-mode-debt"
{{#eq mode 'debt'}}checked{{/eq}}>
- <label for="issues-page-mode-debt">Debt</label>
+ <label for="issues-page-mode-debt">Effort</label>
</li>
</ul>
</div>
diff --git a/server/sonar-web/src/main/js/components/issue/templates/issue.hbs b/server/sonar-web/src/main/js/components/issue/templates/issue.hbs
index 37a11c86c5c..c8d76d67734 100644
--- a/server/sonar-web/src/main/js/components/issue/templates/issue.hbs
+++ b/server/sonar-web/src/main/js/components/issue/templates/issue.hbs
@@ -111,7 +111,7 @@
{{#if debt}}
<li class="issue-meta">
<span class="issue-meta-label">
- {{tp 'issue.x_debt' debt}}
+ {{tp 'issue.x_effort' debt}}
</span>
</li>
{{/if}}
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb
index 1af6920069a..75494d55757 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb
@@ -34,7 +34,8 @@ class Issue
hash[:message] = issue.message if issue.message
hash[:line] = issue.line.to_i if issue.line
hash[:effortToFix] = issue.effortToFix.to_f if issue.effortToFix
- hash[:debt] = Internal.durations.encode(issue.debt) if issue.debt
+ hash[:debt] = Internal.durations.encode(issue.effort) if issue.effort
+ hash[:effort] = Internal.durations.encode(issue.effort) if issue.effort
hash[:reporter] = issue.reporter if issue.reporter
hash[:assignee] = issue.assignee if issue.assignee
hash[:author] = issue.authorLogin if issue.authorLogin
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index 8fb828e6c23..270bf9c9a62 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -679,13 +679,13 @@ issue.transition.unconfirm.description=This issue should be reviewed again to de
issue.transition.resolve=Resolve as fixed
issue.transition.resolve.description=This issue has been fixed in the code and is waiting for the next analysis to close it - or reopen it if it was not actually fixed.
issue.transition.falsepositive=Resolve as false positive
-issue.transition.falsepositive.description=This issue can be ignored because it is due to a limitation of the analysis engine. Its technical debt won't be counted.
+issue.transition.falsepositive.description=This issue can be ignored because it is due to a limitation of the analysis engine. Its effort won't be counted.
issue.transition.reopen=Reopen
issue.transition.reopen.description=This issue is not resolved, and should be reviewed again.
issue.transition.close=Close
issue.transition.close.description=
issue.transition.wontfix=Resolve as won't fix
-issue.transition.wontfix.description=This issue can be ignored because the rule is irrelevant in this context. Its technical debt won't be counted.
+issue.transition.wontfix.description=This issue can be ignored because the rule is irrelevant in this context. Its effort won't be counted.
issue.set_severity=Change Severity
issue.set_severity.submit=Change Severity
issue.set_type=Change Type
@@ -711,11 +711,11 @@ issue.status.CLOSED=Closed
issue.status.CLOSED.description=Non-active and no longer requiring attention.
issue.resolution.FALSE-POSITIVE=False Positive
-issue.resolution.FALSE-POSITIVE.description=Issues that manual review determined were False Positives. Technical debt from these issues is ignored.
+issue.resolution.FALSE-POSITIVE.description=Issues that manual review determined were False Positives. Effort from these issues is ignored.
issue.resolution.FIXED=Fixed
issue.resolution.FIXED.description=Issues that were corrected in code and reanalyzed.
issue.resolution.WONTFIX=Won't fix
-issue.resolution.WONTFIX.description=Issues that are accepted in this context. They and their technical debt will be ignored.
+issue.resolution.WONTFIX.description=Issues that are accepted in this context. They and their effort will be ignored.
issue.resolution.REMOVED=Removed
issue.resolution.REMOVED.description=Either the rule or the resource was changed (removed, relocated, parameters changed, etc.) so that analysis no longer finds these issues.
issue.unresolved.description=Unresolved issues have not been addressed in any way.
@@ -729,11 +729,8 @@ issue.manual.no_rules.non_admin=At least one manual rule must exist before manua
issue.reported_by=Reported by
issue.authorLogin=Author:
issue.component_deleted=Removed
-issue.debt=Debt:
-issue.x_debt={0} debt
-issue.technical_debt=Technical Debt:
-issue.technical_debt_short=Debt
-issue.technical_debt_deleted=Rule not configured to generate technical debt estimate.
+issue.effort=Effort:
+issue.x_effort={0} effort
issue.creation_date=Created
issue.filter_similar_issues=Filter Similar Issues
issues.return_to_list=Return to List
@@ -1219,10 +1216,9 @@ widget.events.all=All
widget.events.no_event=No event
widget.events.show_all=Show All
-widget.rules.name=Issues and Technical Debt
-widget.rules.description=Reports issues and technical debt.
+widget.rules.name=Issues and Effort
+widget.rules.description=Reports issues and effort.
widget.rules.issues=Issues
-widget.rules.technical_debt=Technical Debt
widget.rules.added=Added:
widget.rules.removed=Removed:
@@ -1367,7 +1363,7 @@ widget.issue_filter.property.distributionAxis.option.languages.name=By Language
widget.issue_filter.property.distributionAxis.option.reporters.name=By Reporter
widget.issue_filter.property.distributionAxis.option.authors.name=By Author
widget.issue_filter.property.displayMode.option.count.name=Issues
-widget.issue_filter.property.displayMode.option.debt.name=Technical Debt
+widget.issue_filter.property.displayMode.option.debt.name=Effort
widget.project_issue_filter.name=Project Issue Filter
widget.project_issue_filter.description=Displays the result of a pre-configured issue filter applied to the project.