Граф коммитов

3251 Коммитов

Автор SHA1 Сообщение Дата
Konstantinos Pittas
53d6e7c3f7 [MM-49180] Error message not clear when creating group with mention name matching username (#22022)
* return the correct error message ID

* add test

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-23 13:34:28 -05:00
Nathaniel Allred
305fbb17cf Mm 49611 (#22054)
* remove limits we do not listen to anymore
* add back boards property for focalboard project compatibility
* remove boards cards as paid feature
* remove lingering unlimited integrations paid feature
2023-01-20 15:43:05 -06:00
Max Ripper
5d0fdb9dff Merge pull request #22101 from mattermost/mm-48089-fix-relative-email-urls
MM-48089 Fix broken links in emails
2023-01-20 16:19:51 +01:00
Doug Lauder
3c1f63d41b add GetDirectChannelOrCreate to product API (#22112) 2023-01-20 07:51:44 -05:00
Agniva De Sarker
51e5c9b36c MM-49551: Check if RemoteId is nil for participant (#22103)
We were trying to dereference without a nil check first.

https://mattermost.atlassian.net/browse/MM-49551

```release-note
NONE
```
2023-01-20 10:00:14 +05:30
Conor Macpherson
ed6b9123cd Merge pull request #22094 from mattermost/MM-49681-remove-boards-and-integration-limits-text
MM-49681 - Remove mentions of boards and integrations limits on delinquency emails, and replace remaining "Cloud Starter" text with "Cloud Free" text.
2023-01-18 09:30:50 -05:00
Tim Scheuermann
544304d1c6 MM-49720 Remove the check for active sessions in IsFirstUserAccount (#22102) 2023-01-18 10:34:42 +01:00
Konstantinos Pittas
761c5b530c [MM-48920] Fix updating channel moderation with WS (#21947) 2023-01-18 11:00:06 +02:00
Maximilian Ripper
6020499a42 MM-48089 Fix relative email urls 2023-01-17 18:21:32 +01:00
Mattermost Build
357428dfb0 Merge branch 'master' into MM-47853-true-up-review-telemetry-off-non-air-gapped 2023-01-17 08:45:44 +02:00
Conor Macpherson
ce718150f5 revert changes to cloud free text. 2023-01-16 14:38:58 -05:00
Conor Macpherson
4d313b0ed1 Change from cloud free to cloud starter, remove limitations info. 2023-01-16 13:43:48 -05:00
Konstantinos Pittas
1fdedf30f1 Revert "[MM-46579] Add a limit for preferences" (#22086) 2023-01-16 15:30:14 +02:00
Agniva De Sarker
0e6dc9389d MM-49658: Correctly disable plugin in product mode (#22071)
Automatic Merge
2023-01-13 14:33:49 +02:00
Nick Misasi
309df7917f [MM-48973] Enable test that was fixed separately (#22043)
* Enable test that was fixed separately

* Add cloud check to be safe

* Feedback

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-12 15:04:22 -05:00
Agniva De Sarker
0cd07df844 MM-48504: Bump dependencies (#21994)
* MM-48504: Bump dependencies

https://mattermost.atlassian.net/browse/MM-48504

```release-note
NONE
```
2023-01-12 19:30:04 +05:30
Konstantinos Pittas
3ad240c167 [MM-46579] Add a limit for preferences (#21780)
* add a limit for preferences

* add limits to preferences

* add config to telemetry

* remove unneeded tags from config
2023-01-12 13:17:53 +02:00
Tim Scheuermann
51ac81d816 MM-49083 Disable write timeouts for exports (#22035) 2023-01-11 11:23:09 +01:00
Agniva De Sarker
a9bac806f3 MM-39215: Add DBStatsCollector to metrics (#21957)
https://mattermost.atlassian.net/browse/MM-39215

```release-note
We now have Grafana metrics for DB connection metrics.
They are:
max_open_connections
open_connections
in_use_connections
idle_connections
wait_count_total
wait_duration_seconds_total
max_idle_closed_total
max_idle_time_closed_total
max_lifetime_closed_total
```
2023-01-11 08:39:54 +05:30
Jesse Hallam
41c028e346 Fix plugin /public handling for subpaths (#21886)
* 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>
2023-01-10 13:45:17 -04:00
Agniva De Sarker
02ffa107e1 MM-49374: Update job metadata for bulk export (#21983)
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>
2023-01-10 09:57:02 +05:30
Agniva De Sarker
079f752478 MM-49546: Sentry crash: fix nil pointer dereference (#22018)
We return a store error always to be handled correctly
at the app layer.

https://mattermost.atlassian.net/browse/MM-49546

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-09 22:25:29 +05:30
Conor Macpherson
e5444269f5 Remove plugin prefix. 2023-01-06 15:41:06 -05:00
Mattermod
425c6a673d Merge branch 'master' into MM-47853-true-up-review-telemetry-off-non-air-gapped 2023-01-05 23:27:31 +02:00
Agniva De Sarker
a83170e753 MM-49395: Increase compression for previews and emojis (#21985)
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.
```
2023-01-05 19:34:22 +05:30
Konstantinos Pittas
d4de6e6120 [MM-23837] Support multiple users/channels in invite slash command (#21726)
* 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>
2023-01-04 21:49:15 +02:00
Conor Macpherson
bdd7cb4638 Remove job reigstration and name. 2023-01-04 13:45:21 -05:00
Mylon Suren
ed23df6a2e [MM-47489] Move Shared Channels (Experimental) to Professional (#21882)
* Move shared channels to professional license

* Remove references to SharedChannels from license and use license SKU instead

* add tests

* Refactor shared channels license check and add tests

* Re-add removed negation on license check

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2023-01-03 16:30:30 -05:00
Conor Macpherson
40724ae44d Merge branch 'master' of github.com:mattermost/mattermost-server into MM-47853-true-up-review-telemetry-off-non-air-gapped 2023-01-03 13:54:38 -05:00
Conor Macpherson
e31a6a47b0 Only check if diagnostics are disabled, remove telemetry enabled in true up review status response in favor of using front-end configs. 2023-01-03 13:35:31 -05:00
Conor Macpherson
e4fe76d01f Only pull active plugins from the mattermost marketplace. 2023-01-03 11:47:05 -05:00
Agniva De Sarker
e4b050693d Return 404 when thread membership not found (#21960)
We were incorrectly returning by checking
for `err != nil` when a 404 error was included
in that condition.

```release-note
NONE
```
2023-01-03 21:30:51 +05:30
Agniva De Sarker
6ad1861535 MM-48345: Fix Critical level logging (#21952)
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.
```
2023-01-03 20:14:16 +05:30
Luis Suarez
f1e96cb830 MM-48988 Log plugins version on install and on startup (#21907) 2023-01-03 00:07:38 +01:00
Conor Macpherson
84fe5514fc One last cleanup, i18n, etc. 2022-12-30 15:04:30 -05:00
Conor Macpherson
b3b39e4f15 Move get or create true up review status into the app interface, adds a function to execute checks for being within true up review widnow (and tests), adds a job for sending true up telemetry. 2022-12-30 13:11:17 -05:00
Vishal
babe01ee2e remove crt feature flag (#21788)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-12-30 14:41:31 +05:30
Nathaniel Allred
408d752b5c dry up some code. Move other code to app layer (#21961)
* dry up some code. Move other code to app layer
* check err
2022-12-29 14:27:45 -06:00
Gabe Jackson
99b232e080 Improve bulk export logging (#21935)
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.
2022-12-25 21:43:30 -05:00
emmyni
7a8b09c242 Add comments for the subscriptionHistoryEvent call (#21946) 2022-12-22 15:33:04 -05:00
Ibrahim Serdar Acikgoz
c252704140 Revert "[MM-48626] Move plugins environment out of Channels (#21730)" (#21934) 2022-12-21 22:10:26 +03:00
Ibrahim Serdar Acikgoz
dcf499b51d [MM-48626] Move plugins environment out of Channels (#21730) 2022-12-21 16:11:57 +03:00
Shivashis Padhi
79193240e9 [MM-44842] Add restore_group permission (#21806)
* Add restore_group permission

* Fix tests failing due to new permission in groups

* Add new migration to add custom_group_restore permission

* Add mock for new migration function

* Fix tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-12-19 12:01:59 -05:00
Tim Scheuermann
bef1f1cf60 Close pipes on file writer error (#21900) 2022-12-16 16:44:51 +01:00
Ibrahim Serdar Acikgoz
e58b6ffa3e app/product: block products to be initialized with the feature flag (#21875) 2022-12-16 13:00:15 +03:00
cyrilzhang-mm
33b59e0e96 Add parameter to return group members in order of display name (#21775) 2022-12-15 14:20:36 -05:00
Ibrahim Serdar Acikgoz
e10460675e telemetry: add product hooks to daily telemetry (#21870) 2022-12-15 16:27:36 +03:00
Ibrahim Serdar Acikgoz
f31380f577 product/hooks: hooks service no longer requires channels service start (#21861) 2022-12-15 12:29:33 +03:00
Ibrahim Serdar Acikgoz
8d90c7042f [MM-48883] Remove app package dependency for products (#21853) 2022-12-14 15:24:04 +03:00
Tim Scheuermann
61317883bf Allow S3 uploads without a timeout for exports (#21774) 2022-12-13 20:36:40 +01:00