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

3291 Коммитов

Автор SHA1 Сообщение Дата
Muhammad S
3ae70591d0 [MM-48029] notify admin for plugin install from work templates (#22007)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Julien Tant <julien@craftyx.fr>
2023-02-08 14:08:33 -07:00
Konstantinos Pittas
a72dd120b7 [MM-49744] Telemetry to track click on "Join Now" button in team invitation email (#22108)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-08 11:01:17 +02:00
Pablo Andrés Vélez Vidal
a9a6d3c7fb MM-50355 - add senderId so the channel validations function can validate sender permissions when inviting guests (#22267)
Automatic Merge
2023-02-08 01:38:34 +02:00
Sinan Sonmez (Chaush)
50fec7c892 MM-45494: Add endpoint for message history (#20945)
* add api url

* write sql in store

* update app and client golang driver

* update layers and tests

* change sql query sort

* update layers

* fix style

* fix style post_store.go

* fix comments

* add test for app/post_test.go

* update layers

* fix test

* fix style

* fix style again :)

* add permission check

* add additional checks and tests

* change from nil to empty

* update app-layers

* fix style

* add index for OriginalId for Posts table

* fix postgres query

* update migration file names

* update app-layers

* address PR reviews

* write tests for post store

* fix style

* Update file name

* Update file name 2

* Update file name 3

* Update file name 4

* change the error orders

* update migration file name

---------

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-07 16:30:37 +02:00
Julien Tant
218e971515 Work templates: move form SVG to PNG (#22238)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-06 06:39:30 -07:00
Julien Tant
b3f25e8661 [OSF] Allows opening the work template modal from a slash command (#22246)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-03 14:06:30 -07:00
Konstantinos Pittas
72b6ac0c1e [MM-49034] Team data broadcasted are not sanitized and not targeted to the team (#22063)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-03 22:57:42 +02:00
Konstantinos Pittas
56424a7601 [MM-42782] Incoming webhooks change their creator's status (#22050)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-03 10:56:47 +02:00
Nathaniel Allred
f713862041 Mm 49496 Add state and jobs for preventing screened purchase attempts from retrying (#22188)
* make signup unavailable when screening is in progress
2023-02-02 15:48:59 -06:00
Julien Tant
a68515b69a [MM-50082] Work templates: copy + other tweaks (#22207) 2023-02-02 12:17:32 -07:00
Agniva De Sarker
0bf1a91ad8 MM-49485: Properly disable plugin in product mode (round 2) (#22195)
There were multiple issues at play here.

1. If the plugin was disabled in ch.syncPlugins,
then the prepackaged plugin would not be processed.
Therefore, if there was an earlier version of the plugin
that remained in S3, that would show up instead.

Therefore, we have to let the full plugin extraction
procedure go ahead, but not enable focalboard.

2. We also need to send the disablePlugin signal
to the other node. But the signal won't be sent
until the cluster leader is elected and inter-node
communication is set up. Therefore, we need to listen
to the ClusterLeaderChanged event and send out
a disable plugin event as well.

When both these issues are taken care of,
then we would correctly see the version of the plugin
from the prepackaged_plugins directory in the disabled
state.

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

```release-note
NONE
```
2023-02-01 19:43:44 +05:30
Agniva De Sarker
3514e0f79f MM-50024: Handle empty team name for DM/GMs (#22160)
https://mattermost.atlassian.net/browse/MM-50024

```release-note
NONE
```
2023-01-31 14:02:40 +05:30
Tim Scheuermann
bc6c071c3a MM-47537 Export and import read channels (#22145) 2023-01-31 09:18:20 +01:00
Tim Scheuermann
a03033ef15 [MM-48385] Validate against a list of auth services (#22154) 2023-01-30 20:15:18 +01:00
Kyriakos Z
70800b2447 MM-49048: do not omit needed wsbroadcast vars (#22156)
* MM-49048: do not omit needed wsbroadcast vars

It seems that we are omitting ContainsSanitizedData, and
ContainsSensitiveData variables in WebsocketBroadcast.
This created a bug in cluster mode, in which we were sending duplicate
events to users whereas normally they would have access to only one of those.

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-30 18:10:39 +02:00
Said Atrahouch
289328c4b4 Mm 49463 send invoices annual (#22072)
* Attachment invoices for annual

* regenerate mocks

* lint

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-30 16:24:05 +01:00
Pablo Andrés Vélez Vidal
ae3c21dd79 MM-49813 - validate inviter permissions when sending invitations to private channels (#22119)
* MM-49813 - validate members invitation permissions to private channels

* Validate on the receiver side that the sender id still has permissions to invite

* add translations

* fix texts

* simplify implementation

* remove local test hardcoded data

* add test to user_test

* fix vet warning

* Add comments to validate user permissions function

Co-authored-by: Martin Kraft <martin@upspin.org>

* regenerate app layer iface

* fix unit test

* fix app user_tests

---------

Co-authored-by: Martin Kraft <martin@upspin.org>
2023-01-30 16:19:27 +01:00
Julien Tant
3522419e89 [MM-49715] Work templates: add content (#22168) 2023-01-27 14:57:57 -07:00
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