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

3273 Коммитов

Автор SHA1 Сообщение Дата
Julien Tant
79e6c65933 [MM-50007] WorkTemplate: disallow creating private playbook without an enterprise license (#22159) 2023-01-27 14:03:46 -07:00
Julien Tant
7bfca605e1 [MM-49929] Work templates: allow simple users to list marketplace plugins (#22151) 2023-01-26 09:08:05 -07:00
Julien Tant
753ee85c6b [MM-47846] Execute Work Template (#22055) 2023-01-25 10:24:01 -07:00
Kyriakos Z
3094f10557 MM-49845: fixes acknowledgements in getpostsince (#22124)
* MM-49845: fixes acknowledgements in getpostsince

GetPostsSince returns posts updated after a user requested date.
If a user acknowledges a post the post's update at won't change thus not
getting that post returned from GetPostsSince. This is troublesome
particularly for the mobile client since it relies a lot to
GetPostsSince for keeping the data up to date.

This commit updates the post's update_at when a user
acknowledges/un-acknowledges a post fixing this way the issue above.

* Fixes linter

* Apply suggestions from code review

style changes

Co-authored-by: Jesse Hallam <jesse@thehallams.ca>

* Rename ack to acknowledgement

Co-authored-by: Jesse Hallam <jesse@thehallams.ca>
2023-01-25 14:45:45 +02:00
Giorgi Bochorishvili
a16192045a Merge branch 'master' into mpa-playbooks 2023-01-24 13:39:28 +04:00
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
Giorgi Bochorishvili
48e475a644 Merge branch 'master' into mpa-playbooks 2023-01-23 17:16:56 +04:00
Giorgi Bochorishvili
4bdc49d11d Fix potential nil dereference error 2023-01-23 16:33:45 +04: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
Giorgi Bochorishvili
a83728bca2 Address review comments
Switch channel to always use app

Remove channel wrapper init from server
2023-01-20 14:48:10 +04: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
Giorgi Bochorishvili
4732c32495 Merge branch 'master' into mpa-playbooks 2023-01-16 15:02:40 +04: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
Giorgi Bochorishvili
42103205f9 Merge branch 'master' into mpa-playbooks 2023-01-12 16:27:14 +04:00
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
Giorgi Bochorishvili
bc304ef9ef Merge branch 'master' into mpa-playbooks 2023-01-05 12:23:26 +04:00
Giorgi Bochorishvili
084c30bbc1 Add new method to channel service
Fix channel service App.ch nil bug
2023-01-05 12:22:52 +04:00
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