From 85140aa09a15303703da8a08e63a73e71d61fc2e Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 17 Oct 2019 15:08:43 -0400 Subject: [PATCH] UX: dashboard links to git commits list instead of git comparison Previously the link went to a comparison of the installed commit with the tests-passed branch. This change will show the list of installed commits. --- .../javascripts/admin/models/version-check.js.es6 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/admin/models/version-check.js.es6 b/app/assets/javascripts/admin/models/version-check.js.es6 index ce41d667133..2012d0ff081 100644 --- a/app/assets/javascripts/admin/models/version-check.js.es6 +++ b/app/assets/javascripts/admin/models/version-check.js.es6 @@ -17,12 +17,10 @@ const VersionCheck = Discourse.Model.extend({ return missingVersionsCount === 1; }, - @computed("git_branch", "installed_sha") - gitLink(gitBranch, installedSHA) { - if (gitBranch && installedSHA) { - return `https://github.com/discourse/discourse/compare/${installedSHA}...${gitBranch}`; - } else if (installedSHA) { - return `https://github.com/discourse/discourse/tree/${installedSHA}`; + @computed("installed_sha") + gitLink(installedSHA) { + if (installedSHA) { + return `https://github.com/discourse/discourse/commits/${installedSHA}`; } },