Plugin for use with discourse docker image
Go to file
David Taylor 540a0640a6
FIX: Minimize database access following `db:migrate` (#247)
The upgrade process was triggering the database migrations, and then calling `User.find()`. This is problematic because the `users` table may have been changed by the migrations, and accessing it with the 'old code' will raise an exception.

This commit tweaks the Upgrader so that it loads the user object into memory **before** running database migrations.
2024-10-28 17:14:47 +00:00
.github/workflows DEV: Add the plugin CI workflow 2023-02-16 14:09:33 +01:00
admin/assets/javascripts/discourse DEV: update the classname to match in core; success label tweak (#246) 2024-10-24 15:29:58 -06:00
app/controllers/docker_manager UX: improve UI of software update page & display more info. (#214) 2024-07-09 00:14:26 +05:30
assets/stylesheets/common DEV: update the classname to match in core; success label tweak (#246) 2024-10-24 15:29:58 -06:00
config Update translations (#242) 2024-10-02 08:51:04 +02:00
lib/docker_manager FIX: Minimize database access following `db:migrate` (#247) 2024-10-28 17:14:47 +00:00
scripts DEV: Update rubocop-discourse to version 3.8.0 (#219) 2024-05-28 11:46:00 +02:00
spec DEV: Clean up the code (#245) 2024-10-23 11:21:22 +02:00
test/javascripts DEV: Clean up the code (#245) 2024-10-23 11:21:22 +02:00
.discourse-compatibility FIX: Remove <3.4.0.beta1 version pin (#241) 2024-09-07 19:48:43 +01:00
.eslintrc.cjs DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.gitignore DEV: Update linting setup 2023-02-16 14:09:33 +01:00
.npmrc DEV: Switch to use pnpm (#243) 2024-10-14 14:40:11 +02:00
.prettierrc.cjs DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.rubocop.yml DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.streerc DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.template-lintrc.cjs DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
Gemfile DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
Gemfile.lock DEV: Clean up the code (#245) 2024-10-23 11:21:22 +02:00
LICENSE DEV: Clean up the code (#245) 2024-10-23 11:21:22 +02:00
README.md DEV: Update readme 2023-02-16 14:09:33 +01:00
package.json DEV: Clean up the code (#245) 2024-10-23 11:21:22 +02:00
plugin.rb DEV: Update rubocop-discourse to latest version 2024-05-24 16:32:08 +02:00
pnpm-lock.yaml DEV: Clean up the code (#245) 2024-10-23 11:21:22 +02:00
translator.yml DEV: Add missing file to Crowdin (#168) 2023-02-20 09:44:12 +01:00

README.md

Docker Manager

This plugin works with the Discourse docker image. It allows you to perform upgrades via the web UI and monitor activity in the container.

Running tests

  • Ruby
    • Run RAILS_ENV=test bin/rails "plugin:spec[docker_manager]" in your discourse directory
  • JS
    • Run RAILS_ENV=test bin/rails "plugin:qunit[docker_manager]" in your discourse directory

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT