Commit Graph

550 Commits

Author SHA1 Message Date
Guo Xiang Tan ef83f9cde1
DEV: Bump wait between Unicorn status check to to 2 seconds.
cc @codinghorror
2020-05-04 10:02:31 +08:00
dependabot[bot] d4ffaf8f5f
Bump jquery from 3.4.1 to 3.5.0 in /manager-client (#69)
Bumps [jquery](https://github.com/jquery/jquery) from 3.4.1 to 3.5.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](https://github.com/jquery/jquery/compare/3.4.1...3.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-30 09:52:11 -04:00
Michael Brown b6749080a9 Update Discourse base image to 2.0.20200429-2110 2020-04-29 23:01:11 -04:00
Robin Ward b929e4fc83
Compiled assets - bootbox seemed missing (#68) 2020-03-10 14:29:11 -04:00
Joffrey JAFFEUX 2c89085c61 SECURITY: updates dependencies (#66)
CVE-2019-10744
CVE-2019-10747
WS-2019-0017
CVE-2019-11358
2019-12-13 11:34:28 +11:00
Sam Saffron 6945ba4823 lint file
somehow linter was not working on local, will get it sorted.
2019-12-06 14:15:56 +11:00
Sam Saffron 1356552674 FIX: Make Discourse.redis change backwards compatible
25ea0b3a broke docker manager when it was run against earlier versions
of Discourse, this attempts to work around the issue by introducing
the method if it is missing.
2019-12-06 13:23:54 +11:00
Sam Saffron 57f3864e7a Revert "Revert "DEV: uses Discourse.redis instead of $redis (#65)""
This reverts commit 7091efb980.

This change is needed so we need a different approach here.
2019-12-06 13:13:26 +11:00
Sam Saffron 7091efb980 Revert "DEV: uses Discourse.redis instead of $redis (#65)"
This reverts commit 25ea0b3a55.

The change will break docker manager which always upgrades prior to
Discourse being upgrades.

We need to make the change more strategically here so docker manger can
never be in a broken state.
2019-12-06 12:06:34 +11:00
Joffrey JAFFEUX 25ea0b3a55
DEV: uses Discourse.redis instead of $redis (#65) 2019-12-03 11:01:02 +01:00
Jeff Wong bc4318f072
FEATURE: Attempt to flush nginx service worker cache on upgrade (#64)
* Feature: Attempt to flush nginx cache on upgrade

Flush is done via rake task

* Add a warning if we are unable to flush the service worker file

* Only catch RuntimeErrors if flush_sw fails
2019-11-20 11:53:32 -08:00
Penar Musaraj e4c82d3f13 DEV: Apply Rubocop redundant return style 2019-11-14 15:15:01 -05:00
Neil Lalonde 181bf432e2 FIX: link from dashboard always said you were out of date 2019-11-05 09:44:44 -05:00
Neil Lalonde 1e912642f0 UX: always show a link from dashboard to the upgrade app 2019-11-04 14:40:49 -05:00
Mark VanLandingham fa81f7f0af DEV: update dependencies with vulnerabilities (#63) 2019-10-15 15:42:28 -04:00
dependabot[bot] 0807e0596d Bump lodash.merge from 4.6.1 to 4.6.2 in /manager-client (#59)
Bumps [lodash.merge](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-10 16:24:45 +11:00
Rafael dos Santos Silva a0ef2c6c97 Force base image update 2019-09-04 22:21:24 -03:00
Sam Saffron 27c3dbce59 FIX: fetch tags with force
If we change tags on remote it should not matter, we should also update
origin
2019-09-05 11:16:16 +10:00
Robin Ward 980808de1c FIX: Update client app to include message bus 2019-07-11 10:09:55 -04:00
dependabot[bot] 35f9d5c58a Bump lodash.defaultsdeep from 4.6.0 to 4.6.1 in /manager-client (#58)
Bumps [lodash.defaultsdeep](https://github.com/lodash/lodash) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.6.0...4.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-11 10:07:08 -04:00
Gerhard Schlager b6e745c224
Force base image update 2019-06-27 10:47:27 +02:00
Christos Panagiotakopoulos af60412e94 FIX: message bus when using a longPollingBaseUrl not replacing chars correctly
Implementation needs to match:

03ba1d49fb/app/assets/javascripts/discourse/initializers/message-bus.js.es6 (L52-L53)
2019-06-19 10:35:59 +10:00
dependabot[bot] f41d4cd087 Bump handlebars from 4.0.12 to 4.1.2 in /manager-client (#56)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-07 15:23:30 +05:30
dependabot[bot] 813ef28fb3 Bump js-yaml from 3.12.0 to 3.13.1 in /manager-client (#55)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-07 15:20:20 +05:30
Guo Xiang Tan 00617a1fb5 Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
Osama Sayegh 6ffba0676a
DEV: upgrade jQuery to 3.4.1 (#54) 2019-05-06 18:20:33 +03:00
Guo Xiang Tan 79aa85a88a FIX: Don't install test gems in production.
This fixes an incorrect usage of the `--without` option.
As per the documentation, it takes groups seperated by a space `--without=GROUP[ GROUP...]`. Specifying the option twice meant we were overriding the first which lead the this bug.
2019-05-02 10:49:16 +08:00
Osama Sayegh 21b022b185 DEV: upgrade Ember to 3.8 (#53) 2019-04-15 12:59:11 +10:00
Sam Saffron 0e6fee4df4 Bump expected ruby version
Our image ships ruby 2.6.1 so check for that instead of 2.5.2
2019-04-11 12:50:27 +10:00
Sam Saffron ada600b852 FIX: compress brotli assets from web upgrader
Due to a logic bug we forgot to carry over compress brotli.

This was not an issue for years cause if a brotli asset was absent we
would simply serve the non brotli version.

Due to recent changes this is not longer the case

A follow up on core will remove the COMPRESS_BROTLI flag altogether
2019-04-11 12:29:59 +10:00
Yaw Anokwa 3fedba4a4d FIX: Allow requests with API keys (#52) 2019-02-27 17:19:48 +11:00
Sam Saffron 39ea15921c Force docker base image update
We need to force a rebuild now, last one was about 3 months ago.

The rebuild will pick up on important NGINX changes required for letter
avatar caching
2019-02-18 09:41:16 +11:00
Osama Sayegh 1b83bcc936
FIX: "Currently Upgrading" button should be clickable (#51) 2019-01-30 07:29:26 +03:00
Osama Sayegh a82159dec9
`@each` should be used for observing properties of array elements (#50) 2019-01-03 11:05:26 +03: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
Sam Saffron a929416aa2 FEATURE: simplify link to changes on GitHub
Instead of linking commit shas, link the test `N new commits`.

This simplifies the UX and makes it clearer what is going to happen.
2018-12-26 10:23:18 +02:00
Guo Xiang Tan f0d181a858 FIX: Restore unicorn workers when upgrader is met with an exception. 2018-12-13 11:19:58 +08:00
Gerhard Schlager a35e8d7e2a Inherit rubocop config from discourse repo 2018-12-03 00:38:35 +01:00
Sam 16ab881c2b
Merge pull request #48 from discourse/remove_pngcrush_check
Remove old check for pngcrush version
2018-11-19 09:59:45 +11:00
Gerhard Schlager 42bc80d0f3 Remove old check for pngcrush version 2018-11-16 17:12:27 +01:00
Gerhard Schlager 6774c0e5df FIX: "Reset Upgrade" button didn't work 2018-11-16 15:29:57 +01:00
Sam Saffron 5e641dfe5f bump required version and ensure ruby is running the correct version 2018-11-15 18:02:11 +11:00
Guo Xiang Tan 92b949b62f Add indication to logs that process is still active take 2. 2018-11-14 10:02:41 +08:00
Guo Xiang Tan 622d40e674 Logging the backtrace is helpful too. 2018-11-14 10:00:58 +08:00
Guo Xiang Tan fe454cb3a9 Upgrader process should try and log to message bus on error. 2018-11-14 09:56:38 +08:00
Guo Xiang Tan 8ebb3f90c0 Add indication to logs that process is still active. 2018-11-14 09:41:17 +08:00
David Taylor 61175ada7a DEV: Apply rubocop 2018-10-22 20:13:47 +01:00
Régis Hanol 6d9d78e6b2 Bump minimum required version 2018-10-10 15:28:53 +02:00
Guo Xiang Tan 8bfea831c7 FEATURE: Cycle Unicorn and reduce unicorn workers in upgrade process. 2018-10-08 13:55:34 +08:00
Guo Xiang Tan b28c5804ee Fix `DockerManager::Upgrader#local_web_url` to fall back to default port. 2018-10-08 12:52:27 +08:00