Commit Graph

531 Commits

Author SHA1 Message Date
Ella E. d2d02c6fea
DEV: update the classname to match in core; success label tweak (#246) 2024-10-24 15:29:58 -06:00
Jarek Radosz ea174f7e36
DEV: Clean up the code (#245)
gjs, helper invocation case, typos, latest license template, unnecessary tracking, concatClass, unnecessary service injection, new imports, whitespace, pure function helper, htmlSafe calling convention, this. in template, unused vars in ruby, update linting, qunit-dom
2024-10-23 11:21:22 +02:00
Ella E. 06cc8dba9d
UX: Adjust table to be responsive on mobile (#244)
* UX: Apply core admin table classes to be visually responsive; styling tweaks

* DEV: update spec to use new classes

* fix failing tests
2024-10-22 16:45:36 -06:00
Kelv 8b08c190ae
DEV: Switch to use pnpm (#243) 2024-10-14 14:40:11 +02:00
Discourse Translator Bot 1e578da2ce
Update translations (#242) 2024-10-02 08:51:04 +02:00
Alan Guo Xiang Tan 30f2300ba8
DEV: Skip tests that shouldn't be run with `if` instead of `pending` (#239)
This speeds up running of this test file by around 10 seconds for me
locally which is a 20% improvement.
2024-09-11 15:11:20 +08:00
David Taylor 652ba9f1ff
FIX: Remove <3.4.0.beta1 version pin (#241)
This pin means that sites will not show an update available for docker_manager, and will then hit a pnpm/yarn error when updating core.

docker_manager is compatible with the 3.3.x series, so we can remove this pin.
2024-09-07 19:48:43 +01:00
David Taylor 31a282c0a7
UX: Suppress pnpm upgrade notifications in build logs (#240) 2024-09-06 10:28:27 +01:00
Bianca Nenciu 957867798e
DEV: Optimize specs (#238)
Git repositories will be initialized less often and then copied for each
spec. This reduces the calls to 'git' and the total execution time of
the specs.
2024-09-06 14:45:34 +08:00
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
David Taylor f16f400b33
Prepare for core switch from yarn to pnpm (#236) 2024-09-02 18:11:27 +01:00
dependabot[bot] 9bc52730d7
Bump micromatch from 4.0.5 to 4.0.8 (#235)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:52:51 +02:00
dependabot[bot] b687cf818d
Bump rexml from 3.3.3 to 3.3.6 (#234)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.3 to 3.3.6.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:23:00 +02:00
Discourse Translator Bot 9f33c4cc8a
Update translations (#233) 2024-08-13 16:31:34 +02:00
dependabot[bot] 3978a12f4f
Bump rexml from 3.2.8 to 3.3.3 (#232)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.8 to 3.3.3.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.8...v3.3.3)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 13:16:03 +02:00
Natalie Tay 3ff7323155
DEV: Pin plugin for Discourse < 3.4.0.beta1-dev (#231) 2024-08-02 17:35:22 +08:00
Discourse Translator Bot 38cdefa55a
Update translations (#230) 2024-07-31 00:14:28 +02:00
Discourse Translator Bot eb77dc0139
Update translations (#229) 2024-07-16 22:14:13 +02:00
David Taylor c42a2e901d
DEV: Skip system spec (#227)
This is still failing in our core CI. Followup to fe25a76fe3
2024-07-12 12:07:03 +01:00
Alan Guo Xiang Tan c47c37e107
DEV: Print page's HTML at the end after test fails (#226)
This system spec is flaky and we are getting a blank page so I would
like to see what the HTML is. Previously printing of the page's HTML was
doing it too early such that the ember application has not even boot.
2024-07-11 14:17:02 +08:00
Alan Guo Xiang Tan f3eda0a1a9
DEV: Add debugging info to figure out why system test is failing on CI (#225) 2024-07-11 10:08:11 +08:00
Alan Guo Xiang Tan fe25a76fe3
DEV: Unskip system tests and avoid predicate matchers (#224)
RSpec predicate matchers provide poor output when tests fail.
This commit switches to Capybara RSpec matches so that we get more
debugging information as to why these tests are flaky...
2024-07-10 10:38:29 +08:00
Discourse Translator Bot aa5d6f9ee8
Update translations (#222) 2024-07-09 23:12:20 +02:00
Vinoth Kannan 32170dfa38
DEV: skip the flaky system tests (#223)
I'm unable to find why the tests are failing in the Discourse core repo's plugin tests workflow. These tests always pass in the plugin repo and my local dev environment.
2024-07-09 23:12:50 +05:30
Vinoth Kannan e29c6b1504
UX: improve UI of software update page & display more info. (#214)
This PR will refresh the software update page so that self-hosters can more easily understand the plugins they have installed and which plugins need updates, and so that they are able to quickly and easily update them (or update everything).

Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
2024-07-09 00:14:26 +05:30
dependabot[bot] c8d8da7b44
Bump braces from 3.0.2 to 3.0.3 (#221)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-16 22:31:19 +02:00
Discourse Translator Bot 4bca0de0e8
Update translations (#220) 2024-05-31 12:27:43 +02:00
Loïc Guitaut be2ab29f21
DEV: Update rubocop-discourse to version 3.8.0 (#219) 2024-05-28 11:46:00 +02:00
Loïc Guitaut 2a651b0b59 DEV: Update rubocop-discourse to latest version 2024-05-24 16:32:08 +02:00
Discourse Translator Bot 6ffe7601dd
Update translations (#218) 2024-05-21 17:41:05 +02:00
dependabot[bot] 98532ee474
Bump rexml from 3.2.6 to 3.2.8 (#216)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 23:56:57 +02:00
David Taylor a3ec7a34ac
Bump minimum base image version (#215)
The last forced update was more than a year ago. That old image has a lot of old dependencies, including an old `node` version which is no longer supported by some of Discourse's JS dependencies. This commit will instruct self-hosters to perform a command-line rebuild.
2024-05-16 11:11:34 +01:00
Discourse Translator Bot dec486d0fa
Update translations (#213) 2024-04-23 16:22:42 +02:00
Discourse Translator Bot 6ce4e079b1
Update translations (#212) 2024-04-09 18:48:58 +02:00
Ella E 86fc5ab1ef
UX: Use sentence case and add Discourse to the page title and nav item (#211)
* Use sentence case and add Discourse to the page title and nav item
2024-04-05 12:59:29 -06: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
Discourse Translator Bot 34f204e7a9
Update translations (#209) 2024-04-02 18:20:00 +02:00
Vinoth Kannan 340f0006c5
UX: rename the word "Upgrade" to "Update" in the UI (#208)
In this PR, all references in the UI to the word "`upgrade`" are changed to "`update`". This is to differentiate the update process in self-hosted sites from the plan "upgrade" process in hosted sites.
2024-04-02 15:13:32 +05:30
Jarek Radosz a2bc9b6eac
DEV: Fix getOwner deprecation (#207) 2024-03-19 12:18:07 +01:00
Selase Krakani f2b97aa16e
DEV: Pin plugin for Discourse < 3.3.0.beta1-dev (#206) 2024-02-29 14:00:59 -07:00
Discourse Translator Bot 9523f7a884
Update translations (#205) 2024-02-06 22:35:39 +01:00
Martin Brennan db8608d9cc
DEV: Use new JS plugin API to add admin sidebar link (#201) (#204)
c.f. https://github.com/discourse/discourse/pull/25200

The new admin sidebar doesn't have plugin outlets, so we
need a way to register links like this Upgrade one. The
admin sidebar is currently experimental, so we need to keep
the old outlet around for now for sites who have not enabled
the admin sidebar.

This time we are not using before in the initializer, due
to the changes in this core PR https://github.com/discourse/discourse/pull/25396
2024-01-25 10:45:31 +10:00
Jarek Radosz 29a1fbab89
DEV: Update linting (#203) 2024-01-18 15:01:47 +01:00
Martin Brennan e480ca103c
Revert "DEV: Use new JS plugin API to add admin sidebar link (#201)" (#202)
This reverts commit 5a0499af29.

This breaks self-hosters who are running on an older version
of Discourse.
2024-01-15 10:58:01 +10:00
Martin Brennan 5a0499af29
DEV: Use new JS plugin API to add admin sidebar link (#201)
c.f. https://github.com/discourse/discourse/pull/25200

The new admin sidebar doesn't have plugin outlets, so we
need a way to register links like this Upgrade one. The
admin sidebar is currently experimental, so we need to keep
the old outlet around for now for sites who have not enabled
the admin sidebar.
2024-01-12 16:41:32 +10:00
Martin Brennan 4c550d5268
FIX: Hide this plugin from the plugin list (#199)
This plugin is not optional and cannot be disabled,
it's essential for self-hosting, so there is no point
showing it in the plugin list.
2023-12-18 11:29:19 +10:00
David Taylor 40a02992f6
FIX: Permit EMBER_VERSION env (#200) 2023-12-15 14:43:05 +00:00
Jarek Radosz 7cb07ca0a0
DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
Martin Brennan 5712deca63
DEV: Metadata update for plugin.rb (#197)
* Update plugin.rb metadata

* Update plugin.rb

---------

Co-authored-by: AlexDev <104522507+alexdevlaeminck@users.noreply.github.com>
2023-11-07 15:44:41 -08:00
dependabot[bot] 942920cf27
Bump @babel/traverse from 7.21.0 to 7.23.2 (#196)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.0 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 23:40:43 +02:00