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

14350 Коммитов

Автор SHA1 Сообщение Дата
Shota Gvinepadze
c554bbd977 [MM-41263] Fix stackoverflow error in saml login (#19423)
Automatic Merge
2022-01-31 15:34:18 +02:00
Agniva De Sarker
7988810fc0 Disable sentry tracing completely (#19410)
We don't do instrumentation of Sentry transactions
anywhere in the code. Only opentracing code is present.

One has to explicitly add custom instrumentation for it
to work: https://docs.sentry.io/platforms/go/performance/instrumentation/custom-instrumentation/

It's likely someone is running custom code and sending
transaction data to Sentry. It's not super hard to pick
off the sentry DSN string from the binary.

The PR is more of a best effort to stop any future
transaction events to be sent.

```release-note
NONE
```
2022-01-28 12:47:46 +05:30
Agniva De Sarker
0c9262c4d1 MM-41236: Sentry crash: Fix nil reference to token (#19417)
The AND condition would mean that it would try to dereference
token.Valid if there was an error. And there's no guarantee
to always have a non-nil token in case of an error. We need
to track those conditions separately.

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

```release-note
NONE
```
2022-01-28 12:37:02 +05:30
Kyriakos Z
8f35243604 Fixes editing and pinning a post (#19425)
PR https://github.com/mattermost/mattermost-server/pull/19404 fixed the
replies on posts by casting StringArray to a string.

This PR fixes editing and pinning a post by casting StringArray, and
StringInterface to a string as well.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-27 14:47:41 +02:00
Agniva De Sarker
461e6b0fb2 CI: Add another parallel stage for binary_parameters=yes (#19432)
We want to test with both text and binary mode. Using our CI
to test both in parallel.

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-27 12:10:14 +02:00
Spiros Economakis
fe782ebf7d Increase ulimit for CI testing (#19409)
The CI fails because of ulimit issues.

Ticket: https://mattermost.atlassian.net/browse/DOPS-783

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-27 11:46:45 +02:00
Agniva De Sarker
d639e3c87c MM-41231: Bump morph dependency to avoid advisory locks (#19421)
https://mattermost.atlassian.net/browse/MM-41231

```release-note
NONE
```
2022-01-26 19:48:21 +05:30
Carlos Tadeu Panato Junior
56a45ffa41 Merge pull request #19422 from weblate/weblate-mattermost-mattermost-server_master
Translations update from Mattermost Weblate
2022-01-26 11:30:59 +01:00
Agniva De Sarker
54938694b2 MM-41209: Fix flaky test CreateRecurringTaskFromNextIntervalTime (#19416)
We were noting down the time of execution of a function and
expected that to match with the exact interval that we set.

However, sometimes in very busy CI environments, the goroutine
does not get a chance to be scheduled at the right time for
the interval to match exactly. Sometimes, we see a delay of
1 second.

To account for this, we increase the interval to 3 seconds,
and consider a 1 second buffer for this. If we see lags of
more than a second, then this test becomes useless and we
would need to remove it entirely.

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

```release-note
NONE
```
2022-01-26 15:28:40 +05:30
yeongeun.seo
b048764084 Translated using Weblate (Korean)
Currently translated at 81.2% (1888 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
2022-01-26 10:36:46 +01:00
MArtin Johnson
8ef286a0c8 Translated using Weblate (Swedish)
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2022-01-26 10:36:46 +01:00
Maksim Matveev
24fc0f1519 Translated using Weblate (Russian)
Currently translated at 95.8% (2227 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-01-26 10:36:45 +01:00
kaakaa
1df6279de3 Translated using Weblate (Japanese)
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2022-01-26 10:36:45 +01:00
Matthew Williams
72b38dbbfe Translated using Weblate (English (Australia))
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-01-26 10:36:45 +01:00
aeomin
43ebfcf477 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
2022-01-26 10:36:45 +01:00
Tom De Moor
a2372a297f Translated using Weblate (Dutch)
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-01-26 10:36:45 +01:00
Nathanaël
09a816f25d Translated using Weblate (French)
Currently translated at 95.1% (2210 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fr/
2022-01-26 10:36:45 +01:00
Kaya Zeren
7bb405823a Translated using Weblate (Turkish)
Currently translated at 100.0% (2323 of 2323 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% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-01-26 10:36:45 +01:00
master7
bfa67f1584 Translated using Weblate (Polish)
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-01-26 10:36:45 +01:00
JtheBAB
eebc904334 Translated using Weblate (German)
Currently translated at 100.0% (2323 of 2323 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-01-26 10:36:45 +01:00
Elias Nahum
d475242b05 Translated using Weblate (Spanish)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
2022-01-26 10:36:45 +01:00
Kyriakos Z
513a4669cc MM-41066: fixes replies when binary_parameters=yes (#19404)
* MM-41066: fixes replies when binary_parameters=yes

Migrating post_store from gorp to sqlx breaks replies on threads.
Why? Participants is a jsonb field and when binary_parameters is set to
'yes' it is failing to insert because it needs the version (1) to be
prepended to the bytes array ([]byte{0x01}).

The easiest fix on this is to cast to a string when inserting.
There is a drawback though, non utf8 characters would be replaced by the
question mark icon �.

This commit does exactly that, casts StringArray to a string.

* Adds a comment

* Removes unnecessary conversion

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-26 11:36:33 +02:00
Agniva De Sarker
05dcd0217c MM-41285: Skip flaky test TestAddChannelMemberFromThread (#19419)
Skipping the test for now. The proper fix will need
to be done by the team.

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

```release-note
NONE
```
2022-01-26 14:08:55 +05:30
Agniva De Sarker
d8fc23c86b MM-41191: Apply upload_sessions incorrect index fix (#19383)
https://mattermost.atlassian.net/browse/MM-41191

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-26 13:18:09 +05:30
Ashish Bhate
7026818f80 MM-35298: Follow thread when added to channel (#19311)
* MM-35298: Follow thread when added to channel

* return better error if thread doesn't exist

* update test for possible race

* use correct comparision operator
2022-01-25 14:44:18 -05:00
Kirill Krotov
e2e049e05e [MM-39633] migrate team store to sqlx (#19207)
```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
2022-01-25 23:03:47 +05:30
Nathaniel Allred
3172adfce9 Mm 39663 (#19340)
* Add CurrentProductName to invoice
* make quantity a float
2022-01-24 15:43:42 -06:00
Nick Misasi
dcd4e50bde If the license is cloud, use the SiteURL instead of the X-Forwarded-Proto header (#19393) 2022-01-21 11:32:03 -05:00
Lev
a0e870bed2 Restored ToJSON encoding (sans Integration) for Post APIs (#19279)
* Restored ToJSON encoding sans Integration for Post APIs

* PR feedback + GetPost test

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-21 08:25:33 -08:00
Scott Bishel
956e21cfa2 Boards data retention (#19262)
* add Boards to DataRetention, add hook for data retention

* remove replaces

* update hook to remove parameter

* add boards data retention to telemetry

* fix unit test

* update test, update hooks

* update RunDataRetention server version

* put behind a feature flag

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-20 17:46:03 -07:00
Josh Soref
294bd44971 [GH-19267] Spelling comments (#19268)
* spelling: comments

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-01-20 10:07:27 +05:30
Agniva De Sarker
3207d861ca MM-40880: Sentry crash: MarkChannelAsUnread (#19370)
Use the correct error variable to prevent crash

The errors.As check has been removed because ThreadStore.Get
returns a nil error if no thread is found and that's how
the application logic is written. So the check was redundant.

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-20 09:11:03 +05:30
Ibrahim Serdar Acikgoz
0b46264426 [MM-41147] Remove cloud sysadmin access to migrate config API (#19373)
* remove cloud sysadmin access to migrate config API

* reflect review comments

* Update i18n/en.json

Co-authored-by: Claudio Costa <cstcld91@gmail.com>

Co-authored-by: Claudio Costa <cstcld91@gmail.com>
2022-01-19 23:05:32 +03:00
Scott Bishel
9fde5b1ac3 prepackage boards to v0.12.1 release (#19375) 2022-01-19 10:14:27 -07:00
Martin Kraft
c02c3f7f97 MM-40686: Added feature flag for group member dn lookup. (#19289)
* MM-40686: Added feature flag for group member dn lookup.

* MM-40686: Changes feature flag name.
2022-01-19 09:19:23 -05:00
Carlos Tadeu Panato Junior
2702abfc4a Merge pull request #19371 from weblate/weblate-mattermost-mattermost-server_master
Translations update from Mattermost Weblate
2022-01-19 13:15:54 +01:00
Carlos Panato
880174a4e5 Translated using Weblate (Korean)
Currently translated at 80.6% (1873 of 2322 strings)

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

Translated using Weblate (Korean)

Currently translated at 80.6% (1873 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
2022-01-19 12:52:01 +01:00
MArtin Johnson
dca8b07efc Translated using Weblate (Swedish)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2022-01-19 12:52:00 +01:00
Kaya Zeren
d17292ae04 Translated using Weblate (Turkish)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-01-19 12:52:00 +01:00
Tóth Csaba // Online ERP Hungary Kft
e51dcbc4a7 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-01-19 12:51:59 +01:00
master7
6b66a2b099 Translated using Weblate (Polish)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-01-19 12:51:59 +01:00
Tom De Moor
9486e3968b Translated using Weblate (Dutch)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-01-19 12:51:59 +01:00
yeongeun.seo
3cf9a51112 Translated using Weblate (Korean)
Currently translated at 80.6% (1873 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
2022-01-19 12:51:58 +01:00
Matthew Williams
d73e10a76d Translated using Weblate (English (Australia))
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-01-19 12:51:58 +01:00
JtheBAB
3fb0280468 Translated using Weblate (German)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-01-19 12:51:58 +01:00
Maksim Matveev
eb93f1a7d4 Translated using Weblate (Russian)
Currently translated at 96.1% (2233 of 2322 strings)

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

Translated using Weblate (Russian)

Currently translated at 96.1% (2233 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2022-01-19 12:51:57 +01:00
Elias Nahum
b9aa0a8324 Translated using Weblate (Spanish)
Currently translated at 100.0% (2322 of 2322 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
2022-01-19 12:51:57 +01:00
Hosted Weblate
0951f30aac 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-01-19 12:51:57 +01:00
Ibrahim Serdar Acikgoz
56c7da5817 [MM-40952] migrations: Add if statements for some queries (#19359)
* migrations: add if statements for some queries

* add better checks to upgrade posts v6 migration

* use "is null" instead of "= null"

* fix down script for users v6

* reflect review comments
2022-01-19 10:57:28 +03:00
Ibrahim Serdar Acikgoz
509f49c813 Remove unused store/sqlstore functions (#19354) 2022-01-18 09:00:58 +03:00