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

14791 Коммитов

Автор SHA1 Сообщение Дата
Agniva De Sarker
aa59c28b04 POC: Cross-team recent search (#20027)
Just a quick POC to move fast :P

We use a search pointer to keep track of
the next row to inesrt to. For every new search
we increment the pointer and do modulo 5.
This means that the value will always remain
between 0-4. And that way, we will always overwrite
the oldest entry on every search.

And while getting the results, we get
all results for that user.

The search parameters are json marshalled
and stored as a JSON blob. This is because
there is no need to search/filter them
in the DB.

Pending items:
Tests obviously.

To improve:
The client needs to send the channel ids
instead of channel names.
2022-05-16 13:16:11 +05:30
Mattermod
979b616189 Update minor version to 7.0 (#20199)
Automatic Merge
2022-05-13 16:09:55 +03:00
Ashish Bhate
a99d5a34b7 MM-44148: fix race in CRT settings test (#20196)
* MM-44148: Remove test parallization to prevent race

* don't export pointer to loop variable

* capture whole loop variable
2022-05-13 12:38:38 +02:00
Agniva De Sarker
6e574aefd0 MM-41569: Prevent compliance directory to be changed on cloud instances (#20198)
https://mattermost.atlassian.net/browse/MM-41659

```release-note
NONE
```
2022-05-13 14:14:26 +05:30
Miguel de la Cruz
bcd65c513b Fixes a null pointer if the plugin requests the limits on a non-cloud server (#20197) 2022-05-12 17:05:44 +02:00
Agniva De Sarker
acae0031d1 MM-44101: GraphQL: Add sidebar categories at the top level (#20178)
Also, add a negate parameter to the team members to get
all sidebarcategories except the default team.

```release-note
NONE
```
2022-05-12 20:03:47 +05:30
Ashish Bhate
3c625743e5 MM-43716: enforce size limits in slack importer (#20144)
Automatic Merge
2022-05-12 16:09:55 +03:00
Ashish Dhama
87a719b4b4 [MM-44123] Advanced Text Editor Feature Flag (#20184)
* Advance Text Editor Feature Flag

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-12 16:28:09 +05:30
Agniva De Sarker
9dcd1df8f8 MM-44148: Skip racy TestIsCRTEnabledForUser (#20194)
https://mattermost.atlassian.net/browse/MM-44148

```release-note
NONE
```
2022-05-12 14:34:53 +05:30
Agniva De Sarker
2c155cdc95 Makefile: Added setup-go-work to build step as well (#20193)
Without this, the go.work file would not get
generated in a fresh build.

```release-note
NONE
```
2022-05-12 14:08:39 +05:30
Josh Soref
109a39eacf spelling: build (#19649)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-12 13:18:48 +05:30
Agniva De Sarker
52661807f7 MM-41655: Prevent mmctl import into cloud instances (#20191)
mmctl import is not supported and therefore we stop it.

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

```release-note
NONE
```
2022-05-12 12:37:59 +05:30
Vishal
1092c60bc6 [MM-32692] Add two more CRT options (#20088)
* MM-32692 Add two more CRT options deafult_on and always_on

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-12 12:03:59 +05:30
Agniva De Sarker
ea98f9f4a9 MM-44045: Fix double plugin creation due to recursive plugin activation (#20165)
The (*Environment).Activate method only guarded against multiple calls
and therefore wasn't properly re-entrant.

If a plugin calls an UpdateConfiguration in the OnActivate hook, it would
again call this method, resulting in 2 plugin processes getting created.

To prevent that from happening, we pre-emptively set the status to running
just after the supervisor is created.

I am not sure why starting the plugin normally from the server does not
cause this because the root cause is the same and there should be 2 plugin
processes created in the normal scenario as well. I have not spent time
looking into that. But let me know if you want me to.

Unit test: This might be a bit hard to test via a unit test. I think
an e2e test maybe written in the playbooks test itself which counts
the number of processes that the server spawns.

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

```release-note
NONE
```
2022-05-12 10:57:23 +05:30
Mustafa Kara
5fc24c6762 Configure gitlab pipeline to use Go 1.18.1 (#20186)
Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-11 20:29:30 +03:00
Agniva De Sarker
231db2df1e MM-43775: Use conn.NetConn() to get TCP conn from tls.Conn (#20180)
We use the new API in Go 1.18 to set TCP_NO_DELAY for tls connections
as well.

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

```release-note
NONE
```
2022-05-11 15:07:30 +05:30
Agniva De Sarker
a6d8e45297 MM-44088: Add teamID filter to channelMembers (#20176)
We add 2 new params to channel members query.
1. Filter by teamId.
2. Negate that filter.

We include some more optimizations like:
- Moved the team role checks inside the dataloader.
- Moved the channel pretty name computation inside the loader.

Now that we load less data on initial load, we can reduce
the concurrency requirement to be a bit on the safer side.

```release-note
NONE
```
2022-05-11 13:54:12 +05:30
Ben Lloyd Pearson
5ac3dbf058 Minor edits (#20177)
Automatic Merge
2022-05-11 01:09:55 +03:00
Nick Misasi
340612ec10 Divide TrialEnd date by 1000 to account for it being in ms (#20173)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-10 13:55:21 -04:00
Claudio Costa
aee68c7ae4 [MM-44056] Make Calls plugin's state on Cloud controllable by feature flag (#20161)
* Make Calls plugin's state on Cloud controllable by feature flag

* Prepackage Calls v0.4.9 (#20148)

* Update app/plugin.go

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>

* Update app/plugin_install.go

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>

* Bump Calls version to latest

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-10 19:29:48 +02:00
Jesse Hallam
a4ad6eda5d s/masterminds/mattermost for squirrel (#20162)
Our fork of https://github.com/Masterminds/squirrel at https://github.com/mattermost/squirrel (previously https://github.com/lieut-data/squirrel) isn't compatible with the upstream project, and causes issues for repositories importing mattermost-server and using squirrel.

Sidestep this by adopting the `mattermost/squirrel` fork explicitly.  (Downstream repos can either switch, or keep using the upstream version from `Masterminds`.)
2022-05-10 11:48:59 -03:00
Ibrahim Serdar Acikgoz
81700598ec app/cluster.go: add PublishWebSocketEvent method (#20171) 2022-05-10 17:25:57 +03:00
gavin-luo
8f7b501dd5 Translated using Weblate (Chinese (Simplified))
Currently translated at 98.8% (2299 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
2022-05-10 16:21:47 +02:00
Matthew Williams
426efe49c8 Translated using Weblate (English (Australia))
Currently translated at 99.3% (2310 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/

Translated using Weblate (English (Australia))

Currently translated at 99.3% (2309 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/

Translated using Weblate (English (Australia))

Currently translated at 99.2% (2307 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-05-10 16:21:47 +02:00
JtheBAB
fdcd5006d9 Translated using Weblate (German)
Currently translated at 100.0% (2326 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/

Translated using Weblate (German)

Currently translated at 100.0% (2325 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/

Translated using Weblate (German)

Currently translated at 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-05-10 16:21:47 +02:00
Kaya Zeren
13e6fe716e Translated using Weblate (Turkish)
Currently translated at 100.0% (2327 of 2327 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/

Translated using Weblate (Turkish)

Currently translated at 100.0% (2326 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/

Translated using Weblate (Turkish)

Currently translated at 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-05-10 16:21:47 +02:00
Maksim Matveev
da83093ef1 Translated using Weblate (Russian)
Currently translated at 99.6% (2317 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-05-10 16:21:47 +02:00
MArtin Johnson
177e1e9cc3 Translated using Weblate (Swedish)
Currently translated at 97.5% (2267 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/

Translated using Weblate (Swedish)

Currently translated at 97.4% (2261 of 2321 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2022-05-10 16:21:47 +02:00
jprusch
64c44ad9e2 Translated using Weblate (German)
Currently translated at 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/

Translated using Weblate (German)

Currently translated at 100.0% (2321 of 2321 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-05-10 16:21:47 +02:00
Alexey Napalkov
78118a1d40 Translated using Weblate (Russian)
Currently translated at 100.0% (2321 of 2321 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-05-10 16:21:47 +02:00
kaakaa
6c7ca068b6 Translated using Weblate (Japanese)
Currently translated at 100.0% (2326 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/

Translated using Weblate (Japanese)

Currently translated at 100.0% (2325 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/

Translated using Weblate (Japanese)

Currently translated at 100.0% (2319 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2022-05-10 16:21:47 +02:00
Tóth Csaba // Online ERP Hungary Kft
8f333ee9c1 Translated using Weblate (Hungarian)
Currently translated at 99.5% (2317 of 2327 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 99.5% (2316 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 99.5% (2315 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 99.5% (2314 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 99.6% (2311 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-05-10 16:21:47 +02:00
master7
9ce1824f45 Translated using Weblate (Polish)
Currently translated at 100.0% (2326 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (2325 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (2321 of 2321 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/

Translated using Weblate (Polish)

Currently translated at 100.0% (2319 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-05-10 16:21:47 +02:00
yeongeun.seo
618cffc46d Translated using Weblate (Korean)
Currently translated at 84.6% (1962 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
2022-05-10 16:21:47 +02:00
Tom De Moor
8a8ba0a6f3 Translated using Weblate (Dutch)
Currently translated at 100.0% (2326 of 2326 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/

Translated using Weblate (Dutch)

Currently translated at 99.5% (2314 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/

Translated using Weblate (Dutch)

Currently translated at 100.0% (2319 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/

Translated using Weblate (Dutch)

Currently translated at 99.2% (2302 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/

Translated using Weblate (Dutch)

Currently translated at 99.2% (2301 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-05-10 16:21:47 +02:00
Martin Kraft
d47a466a27 Bumps ES minor version. (#20117) 2022-05-10 08:31:44 -04:00
Daniel Espino García
50eaec6695 Respect send push proxy notification configuration on test notifications (#20063)
* Respect send push proxy notification configuration on test notifications

* Unify notifications check

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-10 12:37:47 +02:00
Ibrahim Serdar Acikgoz
6bad385164 update make update dependencies rule (#20157) 2022-05-10 11:29:51 +03:00
Ibrahim Serdar Acikgoz
22d040eeb2 update dependencies (#20158) 2022-05-10 10:58:09 +03:00
Ibrahim Serdar Acikgoz
3f921bf170 app/server: shutdown producst before closing the store (#20159) 2022-05-10 10:55:40 +03:00
Ben Potter
d779294d01 fix case studies link on README (#19543)
Automatic Merge
2022-05-09 20:39:55 +03:00
Justine Geffen
94c3a0c7e5 Update README.md (#20156)
Minor header and format changes.
2022-05-09 17:38:30 +02:00
Nathaniel Allred
6f87eb67fc MM-43084 update product limits through webhook and websocket (#20076)
* Define interfaces for updating subscriptions and product limits from CWS webhook.
2022-05-09 08:05:50 -05:00
Kyriakos Z
c7fe5e9aab Fixes: make run-server command (#20153)
Moves setup-go-work as the first target for run-server to solve
"go: inconsistent vendoring error"
2022-05-09 13:52:17 +03:00
Agniva De Sarker
461e407fbe MM-44044: Fix racy TestGraphQLChannelMembers (#20155)
Upgrading the user resolver to dataloader
meant that multiple goroutines would access
the user struct.

Hence we move the user struct sanitization inside
the dataloader itself so prevent access outside
the dataloader.

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

```release-note
NONE
```
2022-05-09 13:19:44 +05:30
Agniva De Sarker
fed5404166 GraphQL: Unlock goroutine throttle to match batch capacity (#20146)
We were throttling the amount of concurrent resolvers
at a given time. The idea behind this was to avoid overloading
the database with too many requests.

However, with the introduction of dataloaders, this limitation
actually becomes a bottleneck because all DB calls are actually
batched, so we are unnecessarily throttling the amount of
items that can be processed in a single batch.

The only caveat with this is that now all resolvers
need to backed by dataloaders, or otherwise not be queried
as part of a loop.

In a subsequent PR, we will be removing channel stats
from under channel to be a top-level object to be returned
for a given channel.

```release-note
NONE
```
2022-05-06 21:53:29 +05:30
Guillermo Vayá
a3af488492 Don't expect an interactive TTY in docker images (#20038)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-06 09:00:07 -07:00
Allan Guwatudde
37fd699175 [MM-43920] - Set Workspace Inactivity Email to only fire once and change subject (#20134)
* [MM-43920] - Set Workspace Inactivity Email to only fire once and change subject

* feedback impl

* temp change

* revert

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-06 11:54:38 +03:00
Agniva De Sarker
d9e3125e87 MM-42997: Fix flaky TestDeletePostEvent (#20133)
We increase the timeout further. Without this, there is
no reliable way to wait for a message.

Also consolidated the timeout values for other tests.

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

```release-note
NONE
```
2022-05-05 22:05:50 +05:30
Agniva De Sarker
adf62747bd MM-43848: Fix flaky TestUserStore/LocalCache+MySQL/UpdateUpdateAt (#20139)
Because of the fact that t.Unix() family of methods do not
contain the monotonic time, there is no guarantee that
consecutive methods will increase in time.

This is more of a best effort to double the time slept,
but in reality there is no way to control this unless
you specifically control your servers, which is hard to achieve
in a CI environment.

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

```release-note
NONE
```
2022-05-05 22:03:24 +05:30