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

15145 Коммитов

Автор SHA1 Сообщение Дата
Tim Scheuermann
9ed453dcac [MM-38700] Use the job ID for the export name (#20675) 2022-07-20 10:58:17 +02:00
Tim Scheuermann
1f1d3785fe [MM-44365] Add values and operation to the condition checks (#20666) 2022-07-19 17:55:10 +02:00
Mattermod
e7a93e3f59 Update latest version to 7.1.1 (#20678)
Automatic Merge
2022-07-19 14:03:13 +03:00
Tom De Moor
09a5466ce2 Translated using Weblate (Dutch)
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/nl/
2022-07-19 11:03:13 +03:00
Allan Guwatudde
9e24191137 Revert "[MM-45684] - Self Managed: Add pricing modal + Upgrade button (#20653)" (#20673)
This reverts commit 01fce41bd7.
2022-07-19 10:34:24 +03:00
Akis Maziotis
56ce900f7b [feat] Notice.txt generation configuration (#20669)
We created a tool to automatically generate NOTICE.txt from project folders. And there is a scheduled pipeline configured to run at every Monday which creates a PR if there is a change.
We selected build/notice-file directory to store the configuration files.

Tool repo: https://github.com/mattermost/notice-file-generator

Ticket: https://mattermost.atlassian.net/browse/CLD-3697
2022-07-19 10:16:40 +03:00
Jason Blais
0a9eda0e63 Make 'DisableBotsWhenOwnerIsDeactivated' and 'HelpLink' editable in Cloud (#20571)
Automatic Merge
2022-07-19 08:33:12 +03:00
Agniva De Sarker
b70a0f7880 MM-44542: Add timeout to S3 operations (#20648)
https://mattermost.atlassian.net/browse/MM-44542

```release-note
We add a new config setting AmazonS3RequestTimeoutMilliseconds under
FileSettings which sets a timeout for requests to AWS S3.

By default, the timeout is at 30 seconds.
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-19 10:03:24 +05:30
Allan Guwatudde
01fce41bd7 [MM-45684] - Self Managed: Add pricing modal + Upgrade button (#20653) 2022-07-18 18:46:32 +03:00
kaakaa
14dbe2a030 Translated using Weblate (Japanese)
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/ja/
2022-07-18 18:33:13 +03:00
Matthew Williams
a190f87e63 Translated using Weblate (English (Australia))
Currently translated at 99.2% (2321 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-07-18 18:33:13 +03:00
Tóth Csaba // Online ERP Hungary Kft
df22c526de Translated using Weblate (Hungarian)
Currently translated at 99.5% (2327 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-07-18 18:33:13 +03:00
Kaya Zeren
df62761043 Translated using Weblate (Turkish)
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/tr/
2022-07-18 18:33:13 +03:00
jprusch
ea07e509d2 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-18 18:33:13 +03:00
Mattermod
fec5bf1ea7 Update latest version to 7.1.0 (#20670)
Automatic Merge
2022-07-18 17:33:13 +03:00
Tim Scheuermann
cb6cee1883 [MM-45769] Properly initialize the request.Context for imports and tests (#20659) 2022-07-18 10:58:06 +02:00
Agniva De Sarker
ae482e6214 GraphQL: Add missing fields (#20646)
Went through the model and added all missing fields.

Except user.Password/MfaSecret/AuthData and session.TeamMembers.

```release-note
NONE
```
2022-07-18 11:10:58 +05:30
Doug Lauder
2aaf4cf0fb Fix broken master; ensure all product service APIs have correct implementations (#20663)
* fix broken master; ensure all product service APIs are implemented by the structs passed to products

* use zero allocation interface checks
2022-07-15 13:20:40 -04:00
Agniva De Sarker
d9bd29be33 Enable GraphQL in dev environments (#20652)
```release-note
NONE
```
2022-07-15 11:50:52 -04:00
Ossi Väänänen
8f44fbf89c Audit logging -- convert audit logs to use the new schema (#20526)
* Audit logging - new schema added, old schema removed.

* fix linter error by running goimports

* Address review comments

* Address review comments

* Example usage of new audit logging API for the updateUserAuth call

* fixed unit test on auditing updating user record

* Changed the `TestUpdateConfigDiffInAuditRecord` testcase---it failed, because this PR changes how the `meta` field is serialized into the audit log records.

* fix linter error

* use string constants for record keys

* new audit api calls for api4/bot

* `Auditable` interface implementations for model classes

* New audit calls for channel api

* New audit calls for channel_local

* renamed receivers for required style reasons

* New audit calls for api4/command

* renamed receiver

* New audit calls for api4/command_local

* renamed receiver

* fix unit test to reflect changes in the Auditable implementation of the user class

* new audit calls for compliance

* new audit calls for configs

* remove auditRec.addMeta from updateConfig and patchConfig

* new audit calls for config_local

* new audit calls

* new audit calls for ldap, license apis

* new audit calls

* new audit calls

* new audit calls

* new audit calls

* new audit calls

* new audit calls

* new audit calls

* new audit calls

* fix linter error

* fixed linter error

* fixed "user update" test

* Don't include all of config when audit logging config changes. Also fix unit test on TestUpdateConfigDiffInAuditRecord

* address review comments

* Added Auditable() method for UserPatch

* Fix duplicative method declaration from merge

* Fix styling and API changes issues introduced with merge

* Fix broken test

Co-authored-by: Daniel Schalla <daniel@schalla.me>
2022-07-14 13:52:46 +02:00
Mattermod
4d3bdab14c Update minor version to 7.2.0 (#20649)
Automatic Merge
2022-07-14 13:03:13 +03:00
Ossi Väänänen
0c5c74904b Audit logging - new schema (#20447)
* Audit logging - new schema added, old schema removed.

* fix linter error by running goimports

* Address review comments

* Address review comments

* Example usage of new audit logging API for the updateUserAuth call

* fixed unit test on auditing updating user record

* Changed the `TestUpdateConfigDiffInAuditRecord` testcase---it failed, because this PR changes how the `meta` field is serialized into the audit log records.

* fix linter error
2022-07-14 11:19:33 +02:00
Tim Scheuermann
6dc897b04f MM-45193 Use context for channel logging (#20575) 2022-07-14 11:01:29 +02:00
Agniva De Sarker
5f4da3f308 MM-45725: Skip BusySet (#20647)
https://mattermost.atlassian.net/browse/MM-45725

```release-note
NONE
```
2022-07-14 12:17:52 +05:30
Guillermo Vaya
c33641e64c fix empty translations 2022-07-13 18:51:35 +02:00
Anonymous
bc91e8cfd3 Translated using Weblate (Japanese)
Currently translated at 99.8% (2334 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2022-07-13 18:51:35 +02:00
SerHack
14bb948747 Translated using Weblate (Italian)
Currently translated at 73.9% (1730 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/it/
2022-07-13 18:51:35 +02:00
Anonymous
64ebbc0b4f Translated using Weblate (Italian)
Currently translated at 73.9% (1730 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/it/
2022-07-13 18:51:35 +02:00
Anonymous
309d4c23cb Translated using Weblate (French)
Currently translated at 94.9% (2221 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fr/
2022-07-13 18:51:35 +02:00
Anonymous
612e63b4a3 Translated using Weblate (Spanish)
Currently translated at 95.5% (2234 of 2338 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
2022-07-13 18:51:35 +02:00
Martin Kraft
5c929c4952 Coalesce migration of Reactions.ChannelId to '' if Post does not exist. (#20643)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-13 10:19:59 -04:00
Pablo Andrés Vélez Vidal
059ea7eb44 MM-45174 - split validate business email logic (#20581)
* MM-45174 - split validate business email logic

* remove unnecessary interface method

* check for error just after the cloud call to prevent server panic

Co-authored-by: Pablo Velez Vidal <pablo.velez@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-13 12:05:35 +02:00
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