Commit Graph

17 Commits

Author SHA1 Message Date
David Taylor 11d61cb82e
FIX: Do not shorten commit hashes for compare links (#128)
Using `git rev-parse --short` will adapt the number of characters based on the number of commits in the repository. In a development checkout of Discourse, it'll currently output 10 characters, making the chance of a collision minuscule.

However, in production we use a shallow clone of the Discourse repository. That means that `git rev-parse --short` only outputs 8 characters. On the `main` branch (with almost 50k commits), we currently have 6 7-character collisions, and no 8-character collisions. However, when looking beyond the `main` branch, 8-character collisions [have been observed](https://meta.discourse.org/t/193320/3).

This commit updates docker_manager to use the full commit hash internally, and for GitHub comparison links. In the UI, hashes are truncated to 8 characters, and the full hash is displayed on mouseover.
2022-01-22 18:27:25 +00:00
Osama Sayegh e658a36b4a
DEV: Upgrade Ember to 3.22 (#80) 2020-11-02 19:43:56 +03:00
Jarek Radosz f627eacb0d DEV: Prettier 2020-07-22 10:53:58 +02:00
Robin Ward 4f856c3c3c Migrate away from `Discourse.getURL`
docker_manager's implementation of `getURL` doesn't use the core
Discourse method so this might seem a little pointless, but it greatly
helps in our ability to grep the plugins so it's worth doing.
2020-07-06 14:38:26 -04:00
Osama Sayegh 1309955216
Ember upgrade to 3.6.1 (#49)
* Ember upgrade to 3.6.1

* ember-ajax printing deprecations; stop using it

* Use tag versions when possible instead of hashes

* Remove inline scripts for CSP

* dump `git describe` errors

* Commit hashes still needed for github diff link

* Update READMEs

* Production build

* Make repo-status component more isolated

* Minor tweaks

* Get JS tests in a working state, and write tests for repo-status component

* Add a note about tests in README

* Apply Prettier

* Production build #2

* We need vendor/message-bus.js
2019-01-03 09:21:34 +03:00
Osama Sayegh 4ee8ccf93c Refactoring and various enhancements 2018-06-29 01:17:59 +03:00
OsamaSayegh bc6cfe7d5f FEATURE: introduce Upgrade All functionality 2018-06-20 17:47:22 +03:00
Robin Ward 146e2de662 FIX: Update repos sequentially to avoid thrashing the server 2017-04-28 15:34:02 -04:00
Neil Lalonde 6cc5e4856b FIX: error in csrf initializer on subfolder installs 2017-01-16 14:52:53 -05:00
Robin Ward 678a42121e FIX: Upgrade button was quirky 2017-01-12 15:07:57 -05:00
Neil Lalonde 3623c2f5b0 FIX: progress bar and upgrade log on subfolder installs 2017-01-12 14:09:58 -05:00
Robin Ward 0a2e0690f9 Upgrade to new Ember, Ember CLI 2017-01-11 13:47:06 -05:00
Neil Lalonde 2b553cc815 add subfolder support 2015-12-14 15:01:35 -05:00
Robin Ward 898048eceb Upgrade to ember-cli, bring back bootbox 2014-11-07 14:56:57 -05:00
Arpit Jalan 11096e77fc Add alert if the tracking branch is master for Discourse 2014-06-29 01:14:33 +05:30
Robin Ward 6a22a873dd Animated progress bar, refresh fix. 2014-05-07 13:51:47 -04:00
Robin Ward 3c804ec605 Major upgrade: Docker Manager is now a Standalone Ember App, contains
many improvements.
2014-05-02 16:52:27 -04:00