aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-08-07 16:11:31 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-09 20:20:50 +0200
commite92f595ae8795ffc8906d84d95b2cc634ff34b72 (patch)
tree730b1b86600f8c3f258208314aba4c87bed1dad5 /server/sonar-web/src/main/js/apps/quality-profiles/utils.ts
parenta8f14ced18503abb466fefead861ea3d60f7115a (diff)
downloadsonarqube-e92f595ae8795ffc8906d84d95b2cc634ff34b72.tar.gz
sonarqube-e92f595ae8795ffc8906d84d95b2cc634ff34b72.zip
SONAR-11090 Use rulesUpdatedAt date for stagnant quality profiles
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/utils.ts')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts b/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts
index c0e23eeaf9f..e8f7c146052 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/utils.ts
@@ -67,8 +67,8 @@ export function createFakeProfile(overrides?: any) {
}
export function isStagnant(profile: Profile): boolean {
- if (profile.userUpdatedAt) {
- const updateDate = parseDate(profile.userUpdatedAt);
+ if (profile.rulesUpdatedAt) {
+ const updateDate = parseDate(profile.rulesUpdatedAt);
if (isValidDate(updateDate)) {
return differenceInYears(new Date(), updateDate) >= 1;
}