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

15113 Коммитов

Автор SHA1 Сообщение Дата
Martin Kraft
1f34e8ba2e MM-44351: Creates new Custom Group Admin system role. (#20573)
* MM-44351: Creates new Custom Group Admin system role.

* MM-44351: Adds missing test mock.

* MM-44351: Adds missing mocks.
2022-07-13 09:38:07 +02:00
Agniva De Sarker
abd5384d9b Clarify collation mismatch string (#20641)
We replace expected/received with the source of the collation.

This makes it more clear as to from where the values
were retrieved.

```release-note
NONE
```
2022-07-13 12:11:03 +05:30
Jason Blais
74491f831c Make three file settings editable in Cloud System Console UI (#20525)
Automatic Merge
2022-07-13 09:03:13 +03:00
Agniva De Sarker
049e67b863 MM-45535: Batch optimize auth checks in GraphQL (#20634)
We create two new auth checks which take multiple channels
and teams. They can be used to check whenever a user needs
access to multiple entities.

These are then access in dataloaders to ease the load in the
database.

```release-note
NONE
```
2022-07-12 23:26:48 +05:30
Jesse Hallam
72346eccb8 Pre-package Playbooks v1.29.1 (#20638) 2022-07-12 13:49:11 -04:00
Tim Scheuermann
54c98b4019 [MM-43787] Replace hardcoded PGP key with embedded one (#20626) 2022-07-12 16:45:24 +02:00
Zef Hemel
a3754b0b31 Merge pull request #20630 from mattermost/fix-weblate-123
Fix weblate
2022-07-12 11:42:09 +02:00
Agniva De Sarker
474dbe46dd Add DB enums (#20601)
* Add DB enums

```release-note
Upgrade note:
Several schema changes are made which imposes additional
DB constraints to make the data more strict.

Here are the times taken:

Postgres (131869 channels, 2 teams):
[bigdb] # CREATE TYPE channel_type AS ENUM ('P', 'G', 'O', 'D');
CREATE TYPE
Time: 14.114 ms
[bigdb] # ALTER TABLE channels alter column type type channel_type using type::channel_type;
ALTER TABLE
Time: 3856.790 ms (00:03.857)
[bigdb] # CREATE TYPE team_type AS ENUM ('I', 'O');
CREATE TYPE
Time: 4.191 ms
[bigdb] # ALTER TABLE teams alter column type type team_type using type::team_type;
ALTER TABLE
Time: 116.205 ms
[bigdb] # CREATE TYPE upload_session_type AS ENUM ('attachment', 'import');
CREATE TYPE
Time: 4.266 ms
[bigdb] # ALTER TABLE uploadsessions alter column type type upload_session_type using type::upload_session_type;
ALTER TABLE
Time: 37.099 ms

MySQL (270959 channels, 2 teams):
mysql> ALTER TABLE Channels MODIFY COLUMN Type ENUM("D", "O", "G", "P");
Query OK, 270959 rows affected (13.24 sec)
Records: 270959  Duplicates: 0  Warnings: 0

mysql> ALTER TABLE Teams MODIFY COLUMN Type ENUM("I", "O");
Query OK, 2 rows affected (0.04 sec)
Records: 2  Duplicates: 0  Warnings: 0

mysql> ALTER TABLE UploadSessions MODIFY COLUMN Type ENUM("attachment", "import");
Query OK, 0 rows affected (0.03 sec)
Records: 0  Duplicates: 0  Warnings: 0

All the commands were tested on a 8 core, 16GB RAM machine.
```

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

```release-note
NONE
```

* Added migration list

```release-note
NONE
```
2022-07-12 15:11:35 +05:30
Ben Cooke
7ee7523729 [MM-45490] Adding compliance export config to client (#20597)
* tools updates

* Revert "tools updates"

This reverts commit 6293297b55803c5a263e200ebd80192899666ae9.

* adding new client config

Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-11 13:58:38 -04:00
Agniva De Sarker
1d2cb7c805 Fix incorrect dead queue clear logic (#20624)
We were incorrectly returning from the method without
resetting the pointer.

Fixes https://github.com/mattermost/mattermost-server/issues/20622

```release-note
NONE
```
2022-07-11 23:26:47 +05:30
Doug Lauder
ba9f82e010 Additional APIs for Focalboard multi-product architecture (#20608)
- adds HasPermissionToChannel to permissions service
- adds GetChannelsForTeamForUser to channel service
2022-07-11 13:43:15 -04:00
jprusch
011750bb77 Translated using Weblate (German)
Currently translated at 100.0% (2338 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-07-11 15:58:44 +02:00
Filipe Andrade
574d1378de Translated using Weblate (Portuguese (Brazil))
Currently translated at 90.8% (2123 of 2337 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
2022-07-11 15:58:44 +02:00
Sharuru
2ef850d5f4 Translated using Weblate (Chinese (Simplified))
Currently translated at 98.7% (2307 of 2337 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
2022-07-11 15:58:44 +02:00
Tóth Csaba // Online ERP Hungary Kft
e6a8874a8d Translated using Weblate (Hungarian)
Currently translated at 99.5% (2326 of 2337 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-07-11 15:58:44 +02:00
Tom De Moor
b3fce96cd6 Translated using Weblate (Dutch)
Currently translated at 100.0% (2337 of 2337 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-07-11 15:58:44 +02:00
Matthew Williams
f7342322cb Translated using Weblate (English (Australia))
Currently translated at 99.2% (2320 of 2337 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% (2317 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-07-11 15:58:43 +02:00
MArtin Johnson
a90349b850 Translated using Weblate (Swedish)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2022-07-11 15:58:06 +02:00
Kaya Zeren
31ec81430a Translated using Weblate (Turkish)
Currently translated at 100.0% (2337 of 2337 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% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-07-11 15:57:58 +02:00
Ji-Hyeon Gim
dca9688dde Translated using Weblate (Korean)
Currently translated at 84.0% (1962 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
2022-07-11 15:57:25 +02:00
kaakaa
076f20d0d2 Translated using Weblate (Japanese)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2022-07-11 15:57:15 +02:00
master7
2afd52a8c5 Translated using Weblate (Polish)
Currently translated at 100.0% (2337 of 2337 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% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-07-11 15:57:07 +02:00
jprusch
d5a112d981 Translated using Weblate (German)
Currently translated at 100.0% (2337 of 2337 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% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-07-11 15:56:42 +02:00
Hosted Weblate
707e76176d Update translation files
Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
2022-07-11 15:56:11 +02:00
Maksim Matveev
ad557edd28 Translated using Weblate (Russian)
Currently translated at 98.5% (2305 of 2340 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-07-11 15:55:57 +02:00
Kennet Winter
80779852a1 [MM-44691] Adding gender neutral doctor-emoji (#20578) 2022-07-11 15:33:29 +02:00
Shivashis Padhi
20d690b412 [MM-45444] Denormalize Reactions to add ChannelId for top reactions insights query (#20572)
* Denormalize Reactions to add ChannelId for top reactions insights query

* Remove hardcoded timestamps

* Fix store, api4 tests for reactions

* Fix tests

* Fix integrity tests, allow reaction to have ChannelId populated before calling store function

* Lint fixes

* Add ChannelId field to BulkGetForPosts, Delete store handlers

* Add index to mysql migration, add not null characteristic without a separate command

* Select channelId instead of fetching post via store.GetPost, add if exists to drop column

* Make updating of Reactions conditional to support pre-migration

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-11 09:25:03 -04:00
Tim Scheuermann
7bbf30d6bc MM-45168 GraphQL: add fields to Team (#20610) 2022-07-11 15:05:09 +02:00
Tim Scheuermann
0f21cfcd52 General GraphQL resolver optimizations (#20611) 2022-07-11 15:04:07 +02:00
Martin Kraft
a46840e96b MM-45395: Exclude bot and webhook posts from Top Team Channels. Exclude webhook posts from My Top Channels. (#20599)
* MM-45395: Exclude bot and webhook posts from Top Team Channels. Exclude webhook posts from My Top Channels.

* MM-45395: Adds missing error test.

* MM-45395: Adds missing whitespace.
2022-07-11 08:58:40 -04:00
Nathaniel Allred
f639122376 Usage: Round messages to 1K, files to 100MB (#20603) 2022-07-11 07:21:29 -05:00
Tim Scheuermann
662248291e [MM-45168] Added graphql fields for channel and channel_member (#20613) 2022-07-11 13:58:05 +02:00
Matthew Williams
00439aa2a7 Translated using Weblate (English (Australia))
Currently translated at 99.2% (2317 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-07-11 12:33:12 +03:00
MArtin Johnson
cd16b3f25e Translated using Weblate (Swedish)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2022-07-11 12:33:12 +03:00
Kaya Zeren
5ea080dcc0 Translated using Weblate (Turkish)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-07-11 12:33:12 +03:00
Ji-Hyeon Gim
54c9d0d757 Translated using Weblate (Korean)
Currently translated at 84.0% (1962 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
2022-07-11 12:33:12 +03:00
kaakaa
e41e891c26 Translated using Weblate (Japanese)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2022-07-11 12:33:12 +03:00
master7
11567b1d08 Translated using Weblate (Polish)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-07-11 12:33:12 +03:00
jprusch
f0f87b2e64 Translated using Weblate (German)
Currently translated at 100.0% (2334 of 2334 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-07-11 12:33:12 +03:00
Hosted Weblate
f41298fa50 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
2022-07-11 12:33:12 +03:00
Maksim Matveev
c33000cefc Translated using Weblate (Russian)
Currently translated at 98.5% (2305 of 2340 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-07-11 12:33:12 +03:00
Claudio Costa
76583344c0 [MM-45504] Improve GIF preprocessing logic (#20595)
* Improve GIF preprocessing logic

* Prefer io to ioutil

* Avoid color palette allocation
2022-07-11 09:34:49 +02:00
Jesse Hallam
c3d2602dfe Pre-package Playooks v1.29.0 (#20620) 2022-07-08 18:24:57 -04:00
Scott Bishel
7e4175d4b3 prepackage focalboard v7.1.0 (#20593)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-08 13:45:07 -06:00
Agniva De Sarker
b0327c2953 MM-45536: Track GraphQL queries in Grafana (#20609)
https://mattermost.atlassian.net/browse/MM-45536

```release-note
NONE
```
2022-07-08 14:45:05 +05:30
Nathaniel Allred
ad181532af ComputeLastAccessiblePostTime returns error interface (#20598) 2022-07-07 15:01:50 -05:00
Vishal
e5ee5eecd8 [MM-44488] Cloud limits: enforcing messages (#20362)
* Add new Job to keep updating the last_accessible_post time

* Filter out posts for funcs returning PostList model

* Separate methods to get and compute cache

* filter pinned posts

* For posts with sorted CreateAt order, support a faster form of filtering.

* Add inaccessible header for getPost and getPostsByIDs APIs

* replace manual binary search with the std. library

* in-place filter posts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Nathaniel Allred <neallred@protonmail.com>
2022-07-06 11:56:39 +05:30
Lev
c62d4bee5f Moved UserHasJoinedTeam callback to after the processing (#20410)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-05 16:51:22 -07:00
Christopher Poile
21a3370f11 prepackage calls 0.7.0 (#20590) 2022-07-05 15:59:48 -04:00
Tim Scheuermann
58fea61cc4 Add mocks, layers and generated as rules to the make file (#20585) 2022-07-05 17:39:31 +02:00