Commit Graph

8 Commits

Author SHA1 Message Date
Bianca Nenciu 3a43aa6be7
DEV: Speed up /admin/docker/repos.json spec (#237)
Requesting /admin/docker/repos.json with a lot of plugins installed can
take a lot of time because of the large number of calls to the 'git'
CLI that are used to retrieve various information about the plugin
(eg. branch, latest commit, remote URL, etc).

This is not a problem in production because of memoization and the
much lower number of installed plugins, but it is a problem in test
environment where specs requesting this page can take 10+ seconds with
~100 installed plugins.

This commit speeds up by stubbing the `find_all` method to return only
the first few repositories.
2024-09-04 13:58:00 +03:00
Vinoth Kannan da4917770d
DEV: rename the "upgrade" route to "update" and change references. (#210)
This PR will rename the route "`/admin/upgrade`" to "`/admin/update`" and it will add a redirect for the old route.

Follow-up to the PR: https://github.com/discourse/docker_manager/pull/208
2024-04-03 21:10:13 +05:30
Jarek Radosz dcad087190 DEV: Update specs 2023-02-16 14:09:33 +01:00
Jarek Radosz 4ab63aca32 DEV: Run stree 2023-02-16 14:09:33 +01:00
Guo Xiang Tan 00617a1fb5 Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
Robin Ward f75ece9a95 Use our `AdminConstraint` to simplify auth 2018-06-15 13:15:34 -04:00
Guo Xiang Tan 1f686200bb Display a glyph for official plugins. 2018-04-25 12:20:06 +08:00
Guo Xiang Tan f117e28158 FIX: Redirect to login for anon user.
https://meta.discourse.org/t/link-to-upgrade-shows-500-error/70993/7
2017-10-02 18:44:11 +08:00