* Fix plugin /public handling for subpaths
Plugins support a `public` folder in the bundle automatically being accessible at `<site_url>/plugins/<plugin_id/public/`, but it seems support for a `site_url` with a subpath has been broken for some time.
I tried to figure out when this stopped working, but gave up after a while and just focussed on the requisite changes plus tests.
* simplify comment
* more testing coverage, and simpler diff
* try cleaning up plugins after tests
* skip TestServePluginPublicRequest to isolate build issue
* Revert "skip TestServePluginPublicRequest to isolate build issue"
This reverts commit 62d0e4e427c7cf7b7f9b09202ce10cd5f1a56bca.
* do th.TearDown last by using t.Cleanup vs. defer
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
If a bulk export is triggered via a job, then
we update the metadata field of the job as it
progresses through the records.
https://mattermost.atlassian.net/browse/MM-49374
```release-note
Now you can monitor the progress of the bulk export job
via its metadata field. It is available at
`mmctl export job show <jobID>`.
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
https://mattermost.atlassian.net/browse/MM-49485
```release-note
Boards will be served as an in-built product from
within Mattermost server instead of a plugin.
If you want to disable this, please set the
MM_FEATUREFLAGS_BoardsProduct env var to "false" (without
the quotes).
In this mode, the boards plugin will remain disabled.
```
We also reduce the max size of uploaded emojis to 512KiB.
https://mattermost.atlassian.net/browse/MM-49395
```release-note
Max size of uploaded emojis is now reduced to 512KiB
to reduce image download bandwidth.
```
* accept multiple users and channels
* remove logs
* add translation for multiple
* refactor
* fix lint issues
* rollback translations and use multiple messages
* fix test
* fix spacing
* extract permission checking
* improve check
* improve error messages
* rewrite tests for better clarity
This way the environment is being rebuild so it starts (almost) fresh without interfering with each other
* make errors non-blocking
* simplify responses collector
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Critical wasn't added in the StdLevels slice
and due to that mlog.Critical wasn't printing anything.
This was a complete blindspot that was missed.
We have removed all references to mlog.Critical in the codebase
and pointed Critical to be Fatal in the library.
In v8, we will remove Critical altogether.
```release-note
Servers with an encrypted key will throw an error
during startup now.
```
This log is continuously spamming our community server
and I see it all the time in my dev environment.
Let's remove this to keep the logs clean.
```release-note
NONE
```
* [MM-47648] Handler for check if a subscription is expandable
* Mock cloud regenerate
* PR Webapp test purpose only
* [MM-47648] Refactor and tests for expand stats for a subscription
* Fix typos
* style fix
* has to be revert
* CWS URL to Spinwick
* new spinwick url
* target portal test
* Generate token instead of send licenseId
* Rename
* Rename methods
* Revert public key and cws url
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This change includes the following:
- Adds the job ID as a log field for bulk exports
- Adds checkpoint logging for posts and direct posts so that
progress can be tracked.
We accept a context that can cancel the query.
This allows us to exit a job faster.
```release-note
Compliance export job can now cancel the SQL query
execution during server shutdown which will allow
the job to exit faster.
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* MM-49077: fixes errors in migration job
UrgentMentionCount does not have a default values, so COALESCE has to be
used.
SELECT * FROM ChannelMembers fails for the above reason.
This commit SELECTs each and every column from ChannelMembers instead.
* Fixes syntax error
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>