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

14740 Коммитов

Автор SHA1 Сообщение Дата
Martin Kraft
cd487c812c MM-41211: Allows rollback without destroying previous config setting. (#20137)
* MM-41211: Allows rollback without destroying previous config setting.

* MM-41211: Revert to original logic for unused config settings.

* MM-41211: Moves days defaults before hours defaults.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-05 10:41:18 -04:00
Agniva De Sarker
2c5f816e02 MM-43341: Fix flaky TestImportImportUser (#20140)
We use the specifically created NewTestId
to circumvent any clashes with reserved words.

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

```release-note
NONE
```
2022-05-05 20:03:37 +05:30
Agniva De Sarker
8358f92786 Update Dockerfile to 1.18.1 (#20138) 2022-05-05 12:59:52 +05:30
Agniva De Sarker
3c83187c5b MM-43929: Ignore archived team memberships in GraphQL (#20130)
https://mattermost.atlassian.net/browse/MM-43929

```release-note
NONE
```
2022-05-04 19:43:02 +05:30
Agniva De Sarker
89fac9d485 MM-41153: Add seats deployed to support packet (#20125)
Support packet contains 2 new fields:
1. Active users.
2. License supported users.

We refactor the code to its separate file.

```release-note
NONE
```
2022-05-03 21:13:16 +05:30
Ibrahim Serdar Acikgoz
a096a99542 [MM-43199] api4/elasticsearch: test elasticsearch after checking the config values (#20078) 2022-04-30 09:50:41 +03:00
Jesse Hallam
72a5d99ae3 MM-43770: Rename to Threads.ThreadDeleteAt (#20074)
Old versions of the Mattermost server did not qualify queries scanning both `Posts` and `Threads`, and choke on the ambiguity in deciding between the new `DeleteAt` on `Threads` and the `DeleteAt` on `Posts` in existing queries.

While this problem is transient only while running multiple server versions, it effectively makes our backwards compatibility guarantee void, not to mention complicating cloud deployments.

Work around this by renaming `Threads.DeleteAt` to `Threads.ThreadDeleteAt`. The old migration is nulled out, but remains, since some test servers have already upgraded and manually fixing each affected instance would be problematic. Thew new migration takes care of removing the old column -- if it ever existed.

Fixes: https://mattermost.atlassian.net/browse/MM-43770

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-29 14:42:38 -03:00
Amy Blais
2474b40cb9 Update en.json (#20093)
Automatic Merge
2022-04-29 16:27:05 +03:00
Miguel de la Cruz
c076f9fdf9 Remove code duplication and move utility methods to the store utils (#20091)
* Remove code duplication and move utility methods to the store utils

* Fix typo
2022-04-29 12:15:38 +02:00
lkyuchukov
79a0d3dac4 Don't log error when SendEmailNotifications is set to false (#20007)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-29 14:45:24 +05:30
Agniva De Sarker
b6239243e7 MM-43848: Skip flaky TestUserStore/LocalCache+MySQL/UpdateUpdateAt (#20094)
https://mattermost.atlassian.net/browse/MM-43848
https://mattermost.atlassian.net/browse/MM-43871

```release-note
NONE
```
2022-04-29 13:47:26 +05:30
Agniva De Sarker
c0eb0fd3c3 MM-43829: Default for user display_name preference (#20087)
We fall back to TeammateNameDisplay if a user display_name
preference is not found. This makes the logic consistent
with other parts of the app.

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

```release-note
NONE
```
2022-04-29 13:36:04 +05:30
Martin Kraft
cb3d8f0a1c MM-41211: Replaces SessionLength*InDays with SessionLength*InHours. (#19838)
* MM-41211: Replaces SessionLength[Web|Mobile|SSO]InDays with SessionLength[Web|Mobile|SSO]InHours.

* MM-41211: Clear the value of the old config settings.
2022-04-28 17:31:35 -04:00
Agniva De Sarker
4bc2ed3973 Bump GoSAML dependency (#20092)
```release-note
NONE
```
2022-04-28 22:28:58 +05:30
Mattermod
5cf721fdc0 Update latest version to 6.6.1 (#20090)
Automatic Merge
2022-04-28 18:57:06 +03:00
Nick Misasi
373c4655e6 [MM-43337] Updating email templates for trial will end and trial ended emails (#19976)
* Updating email templates for trial will end and trial will end emails

* put back variable

* Rebuilding

* fix tests

* Updates

* [MM-43339] Add Cloud Subscription Upgrade Confirmation Email (#19989)

* Add Cloud Upgrade Confirmation email

* Updates

* String change

* i18n-extract

* Updates

* make email-mocks

* Appease linter

* Add a test

* GMAIL NEVER RENDERS RIGHT

* Important EVERYWHERE because gmail just cant deal

* l

* Last one

* Update image

* Update tests

* Fix tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-28 10:06:16 -04:00
Maria A Nunez
9ee41765f7 Updated nps to 1.2.0 (#20016)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-27 17:45:14 -04:00
Michel Engelen
bb308b1a87 [MM-43393]: replace .Decoder() method with .Token() (#19988)
Automatic Merge
2022-04-27 19:27:06 +03:00
Mustafa Kara
4e7cfc2095 Replace expired GPG public key which is used to upgrade to enterprise (#20075)
Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com>
2022-04-27 18:16:56 +03:00
Agniva De Sarker
48f8e2fa44 MM-43753: Go mod tidy for 1.18 (#20073)
We bump the go.mod version to 1.18
and run go mod tidy.

This is required for using new features.

```release-note
NONE
```
2022-04-27 13:51:49 +05:30
Mylon Suren
52ac449012 [MM-42739] Insights - Top Channels API Endpoint (#19953)
* [MM-42739] Initial setup for top channels for team

* [MM-42739] Add initial tests

* [MM-42739] Update tests

* [MM-42739] Add top channels for user

* [MM-42739] Fix query

* [MM-42739] Update query

* [MM-42739] Improve query performance

* [MM-42739] Remove rank

* [MM-42739] Fix tests to use new time range today

* [MM-42739] Add tests for top channels for user

* [MM-42739] Add test for pagination

* Remove top channels by time struct

* [MM-42739] Update test names

* [MM-42739] Remove rank from top reactions

* [MM-42739] Return empty array instead of nil when result is empty

* [MM-42739] Add additional tests and update permissions check for teams

* [MM-42739] Add excluded channel tests for top reactions

* [MM-42739] Move insights to api4/insights and keep time range as string until required

* [MM-42739] Update queries only check DeleteAt after union

* [MM-42739] Improve query performance by using publicchannels table

* [MM-42739] Fix broken query after merge
2022-04-26 14:42:24 -04:00
Agniva De Sarker
9d37a6cc3d MM-42927: Use new gosaml2 library (#20004)
```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-04-26 11:28:49 +05:30
Cass C
980b9fd33d Pre-package Playbooks v1.27.0 (#20044) 2022-04-25 14:56:26 -03:00
Nathaniel Allred
d4db43c95e Mm 43084 add cloud workspace limits endpoint (#20041)
* add cloud workspace limits endpoint
2022-04-22 14:23:19 -05:00
Martin Kraft
f460401cf2 Query optimization for top reactions. (#20047) 2022-04-22 13:22:07 -04:00
Agniva De Sarker
0b9f8ef284 MM-43653: Fix incorrect system store update (#20051)
https://mattermost.atlassian.net/browse/MM-43653

```release-note
NONE
```
2022-04-22 20:17:25 +05:30
Claudio Costa
92c5c256ef Allow per connection WebSocket broadcasts (#19993) 2022-04-22 15:53:42 +02:00
Miguel de la Cruz
6608f3a9ca Extract binary_parameters handle logic into public methods for external use (#20043) 2022-04-21 15:59:54 +02:00
Doug Lauder
2576556c8b MM-43464 Enable timestamp for default audit config (#20015)
* Enable timestamp for default audot config

* add unit test
2022-04-21 00:32:47 -04:00
Michael Kochell
592e4fb5c0 [MM-43500] Fix MattermostAppID null values with NOT NULL constraint (#20028) 2022-04-20 11:05:53 -04:00
Jesse Hallam
5bd223c836 MM-43045: minimize JOIN Posts (#19934) 2022-04-19 17:06:31 -03:00
Guillermo Vayá
348602cf00 [MM-43151] add test for archived channels search (#19949)
* add test

* add channels to test

* check for actual channel

Co-authored-by: = <=>
2022-04-19 16:18:31 +02:00
Tom De Moor
7f5eae4062 Translated using Weblate (Dutch)
Currently translated at 99.1% (2300 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-04-19 10:38:11 +02:00
Matthew Williams
684e668858 Translated using Weblate (English (Australia))
Currently translated at 99.3% (2305 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-04-19 10:38:11 +02:00
Tóth Csaba // Online ERP Hungary Kft
726410ecdd Translated using Weblate (Hungarian)
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/hu/
2022-04-19 10:38:11 +02:00
jprusch
5d02f68962 Translated using Weblate (German)
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/de/
2022-04-19 10:38:11 +02:00
Alexey Napalkov
d5aa06fc55 Translated using Weblate (Russian)
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/ru/
2022-04-19 10:38:11 +02:00
Kaya Zeren
41945fed57 Translated using Weblate (Turkish)
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/tr/

Translated using Weblate (Turkish)

Currently translated at 99.3% (2305 of 2319 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-04-19 10:38:11 +02:00
Hosted Weblate
b65d612b5d 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-04-19 10:38:11 +02:00
Akis Maziotis
fc444204b3 Fix mmctl download bash script (#20014)
There are cases that instead of suffix, we get a SHA prefix for cherrypicking branch
We rewrite the regex to support this case
2022-04-19 10:24:14 +03:00
Agniva De Sarker
c78c5ce3f3 Add feature flag for command palette (#20011)
```release-note
NONE
```
2022-04-18 14:43:47 +05:30
Agniva De Sarker
98e7bb9ee9 Bump golangci to use 1.18 (#20010)
https://mattermost.atlassian.net/browse/MM-42148

```release-note
NONE
```
2022-04-18 13:53:07 +05:30
Agniva De Sarker
c09c36ce5e MM-43448: Bump the CI to use Go 1.18.1 (#20005)
https://mattermost.atlassian.net/browse/MM-43448

```release-note
NONE
```
2022-04-18 12:12:44 +05:30
Nazar Vovk
3476eccf5b Update minio-go dependency to 7.0.24 (#20006)
* Update minio-go dep to 7.0.24

* Bringing back some removed libraries

```release-note
NONE
```

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
2022-04-16 10:38:32 +05:30
Kyriakos Z
b15cd9d29f MM-41565,MM-42473: fixes incorrect unread thread count (#19962)
* MM-41565,MM-42473: fixes incorrect unread thread count

The infamous "-1 unread threads" bug, was due to incorrectly counting
previous unread mentions and replies.

When we calculate the previous counts, we didn't take into account if
a thread was newly followed one or not. So when a user gets added to a
thread via a mention receives a WS event with the previous count values
calculated by subtracting "1" from the current count values.
In the result the webapp subtracts the previous values for the thread
from the total values of all threads for the user.

This is wrong since the user just followed the thread those previous values
should be 0. Which results into showing a negative value of unread
threads to the user.

This commit fixes this issue by zeroing the previous count values when
the user was not following the thread previously.

* Adds test, and addresses comments

* Changes test's description

* Removes unneeded assertion

* Empty commit just to re-build
2022-04-15 12:47:04 -04:00
Agniva De Sarker
ed3b3b57de MM-42877: Fix TestGetFileHeaders (#20002)
The issue seems to be that different distros
have different set of included mime types
built-in. Go looks into those directories
and it looks like our CI systems don't have
those files.

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

```release-note
NONE
```
2022-04-15 14:49:48 +05:30
Kyriakos Z
79e36d4596 [MM-41185]: new API to mark thread as unread (#19951)
* [MM-41185]: new API to mark thread as unread

Until now we mark a thread as read/unread by sending a timestamp to the
server. This created some issues when marking a thread as unread from a
post. We needed to send the post.create_at - 1 as a timestamp but we
didn't do so consistently.

This commit adds a new API to set a thread as unread by post id.
Making all clients agnostic of the timestamp, and thus solving consistency issues.

Endpoint: /api/v4/users/{user_id}/teams/{team_id}/threads/{thread_id}/set_unread/{post_id}

* Updates client.go adding SetThreadUnreadByPostId

* Guards endpoint behind read channel permission

* Returns status 400 if post_id not belong in thread

* Root post as post_id should be permitted
2022-04-15 10:55:47 +03:00
Ibrahim Serdar Acikgoz
6ab7cd0f1a jobs: add config cleanup job (#19987) 2022-04-15 10:31:10 +03:00
Guillermo Vayá
282c2b94a9 Weblate 220408 (#19955)
* Translated using Weblate (German)

Currently translated at 100.0% (2306 of 2306 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% (2305 of 2305 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% (2304 of 2304 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% (2348 of 2348 strings)

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

* 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/

* Translated using Weblate (Russian)

Currently translated at 100.0% (2302 of 2302 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (2302 of 2302 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.9% (2301 of 2302 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (2306 of 2306 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% (2302 of 2302 strings)

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

* 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/

* Translated using Weblate (English (Australia))

Currently translated at 99.5% (2296 of 2306 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.5% (2292 of 2302 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (2302 of 2302 strings)

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

* 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/

* Translated using Weblate (French)

Currently translated at 93.7% (2161 of 2306 strings)

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

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Nathanaël <contact@nathanaelhoun.fr>
Co-authored-by: = <=>
2022-04-15 10:19:10 +03:00
Agniva De Sarker
66a0c02c62 Cleaning up old migration commands (#20000)
```release-note
NONE
```
2022-04-15 11:59:59 +05:30