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

15300 Коммитов

Автор SHA1 Сообщение Дата
TING
fece6ede01 Translated using Weblate (Chinese (Traditional))
Currently translated at 75.4% (1790 of 2374 strings)

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

Translated using Weblate (Chinese (Traditional))

Currently translated at 76.3% (1788 of 2343 strings)

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

Translated using Weblate (Chinese (Traditional))

Currently translated at 76.3% (1785 of 2339 strings)

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

Translated using Weblate (Chinese (Traditional))

Currently translated at 76.2% (1784 of 2340 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hant/
2022-09-01 18:58:49 +02:00
Hosted Weblate
d65bce8430 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-09-01 18:58:49 +02:00
Tóth Csaba // Online ERP Hungary Kft
6aade8cde4 Translated using Weblate (Hungarian)
Currently translated at 99.4% (2329 of 2341 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.4% (2328 of 2342 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.4% (2329 of 2341 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-09-01 18:58:49 +02:00
Kaya Zeren
18859b95c4 Translated using Weblate (Turkish)
Currently translated at 100.0% (2342 of 2342 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% (2341 of 2341 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-09-01 18:58:49 +02:00
master7
d56ec397bb Translated using Weblate (Polish)
Currently translated at 100.0% (2342 of 2342 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% (2341 of 2341 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% (2341 of 2341 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-09-01 18:58:49 +02:00
Agniva De Sarker
8f362cb8f6 Revert "Use error log level for websocket timeouts (#19609)" (#20929)
Apparently, this can happen in normal situations as well
and is causing confusion amongst customers. Reverting.

This reverts commit 9534efe534.

```release-note
NONE
```
2022-09-01 21:01:03 +05:30
Tim Scheuermann
aef5165cdc [MM-38705] Move import validators into own package (#20914) 2022-08-31 13:29:37 +02:00
Julien Tant
a5ea445bf9 [MM-46097] Change FileInfo count query (#20871)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-30 09:49:39 -07:00
Mustafa Kara
7a710e7047 Apt dependencies are not pinned, so upgrades will break docker builds. (#20901)
Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com>
2022-08-29 15:59:25 +03:00
Scott Bishel
7deb408898 update prepackage boards to v7.2.1 (#20877)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-26 10:43:45 -06:00
Akis Maziotis
16ecdde0df [chore] Doubling the instance size used for CI (#20889)
* [chore] Doubling the instance size used for CI

This is to compensate for increased memory usage for DB Tests running with -race
2022-08-26 12:23:28 +03:00
Tim Scheuermann
eb37139f16 MM-45994 ensure database operations return their errors (#20857) 2022-08-26 11:12:59 +02:00
Agniva De Sarker
c72e9131f4 MM-46577: Remove empty translation strings (#20876)
We replace the empty translation key with <untranslated>
which is ignored by the translation check tool.

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

```release-note
NONE
```
2022-08-25 19:59:16 +05:30
Nick Misasi
e8a45a8cf7 [MM-43399] Cloud Delinquency Email Sequence (#20814)
* Add DelinquentSince to Subscription fields

* Stashing, migrating

* Adding file

* Adding many email templates

* Fix templates pipeline

* Fix translations

* Fix mocks

* Many changes

* Adjust mocks

* Update i18n/en.json

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* PR fixes

* Update string

* Update i18n/en.json

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* Update URL's for buttons to open the delinquency modal

* Update emails from mjml

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
2022-08-25 09:39:35 -04:00
Michel Engelen
e9cc35122f [MM-45935]: removed feature flag definition and default (#20714)
* removed feature flag definition and default

* removed default for feature flag
2022-08-25 11:18:16 +02:00
Agniva De Sarker
f2463358c4 Limit GOMAXPROCS while running race tests (#20881)
In CI environment, race tests take a huge amount
of memory. Since we only run it on master, there's
no rush to finish it quickly. Hence we can limit
the parallelism and throttle memory usage.

```release-note
NONE
```
2022-08-25 13:31:36 +05:30
Tim Scheuermann
617eb98d29 MM-46455 Remove download limit (#20870)
* [MM-46455] Raise download limit and add errors for exceeding it

* [MM-46455] Report HTTP errors

* Remove download size limit

Co-authored-by: Tim Scheuermann <tim.scheuermann@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-25 08:06:14 +02:00
Shivashis Padhi
e3efc46f69 [MM-43444] Delete profile image and invalidate cache on permanent user deletion (#20033)
* Delete profile image and invalidate cache on permanent user deletion

* Modify request to send 202 with error information on failing to delete profile image
2022-08-25 11:30:50 +05:30
Shivashis Padhi
6adbcc5d05 MM-45899: Insights: least active channels (#20796)
* Add api endpoints, app layers for top inactive channels with dummy store calls

* Add store functions for top inactive channels

* Add model, store, app tests.

* Add client function and api tests

* Add participants information to TopInactiveChannel

* Translation fix

* Style fix while writing response

* Return channelmember IDs instead of profiles, query in batch avoiding inside the loop

* Make the following changes

 - move DeleteAt to subqueries, to avoid select, group by
 - Remove TeamId from response
 - Count bots and webhook posts

* SQL query lint fix, store test fix to include bot messages

* make app-layers

* Fix empty participant lists being sent as [""]

* Track channel joins, to distinguish 0 activity channels vs new channels

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-24 23:14:56 +05:30
Agniva De Sarker
8fd1762c3b MM-46503: Escape incorrect pg user search query (#20863)
There were 2 main problems after https://github.com/mattermost/mattermost-server/pull/20367.

1. The : wasn't escaped.
2. Empty search didn't work.

For 1, we escape the ':'. For 2, we just use
pattern search.

```release-note
NONE
```
2022-08-24 21:45:52 +05:30
Ibrahim Serdar Acikgoz
efbcb0a35a move logger under platform (#20831)
* move logger under platform
2022-08-24 10:10:56 +03:00
Doug Lauder
6a6e05073e Add preferences service API for products (#20869) 2022-08-23 11:57:07 -04:00
Julien Tant
3138543d10 [MM-46468] Change /help and add /marketplace (#20850) 2022-08-23 08:37:06 -07:00
Agniva De Sarker
492a3c0669 Warn on MariaDB servers (#20862)
```release-note
NONE
```
2022-08-23 14:17:45 +05:30
Ibrahim Serdar Acikgoz
ddce3fa47b fix flaky busy test (#20861)
* fix flaky busy test

* increase busy duration
2022-08-23 11:42:04 +03:00
Agniva De Sarker
8ce11f0806 MM-46475: Disable sending content sha in bifrost mode (#20853)
PR https://github.com/minio/minio-go/pull/1668 introduced
an option to disable sha256, which by default was disabled.
This meant all content was always hashed and this broke
in bifrost because the key signing fails in streaming
mode.

So for cloud installations, we disable sha256.

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

```release-note
NONE
```
2022-08-20 09:58:36 +05:30
Shivashis Padhi
7643a28263 Merge pull request #20690 from plant99/MM-45118_my_top_dms
[MM-45118] Add insights endpoint for top dms
2022-08-19 19:33:44 +05:30
Agniva De Sarker
6305b79475 Print full error string instead of only detailed error (#20852)
Due to the recent changes in error wrapping, the DetailedError
field does not contain the full info of all the wrapped errors.

Therefore, while printing the error, we display the stringified
representation instead of only the DetailedError field.

```release-note
NONE
```
2022-08-19 15:40:25 +05:30
Agniva De Sarker
6b6fec5678 MM-46420: Update server dependencies (#20844)
https://mattermost.atlassian.net/browse/MM-46420

```release-note
NONE
```
2022-08-19 09:40:21 +05:30
Ashish Bhate
ff4406e8b2 MM-46402: Use pointer to pointer to set pointer to nil (#20827)
Summary
We need a pointer to a pointer to set the original pointer to nil
The original task was not being set to nil (the local variable containing the pointer was being set to nil). The cancel function was being called even though the task had already been cancelled. This repeated cancellation was causing a panic because we were trying to close a channel that had already been closed the first time the task was cancelled.

Ticket Link
https://mattermost.atlassian.net/browse/MM-46402
2022-08-19 07:27:16 +05:30
Mattermod
e87a2bbe19 Merge branch 'master' into MM-45118_my_top_dms 2022-08-18 20:42:32 +03:00
Agniva De Sarker
9de6ce5275 MM-46450: Skip flaky TestSearchUsers (#20845)
https://mattermost.atlassian.net/browse/MM-46450

```release-note
NONE
```
2022-08-18 19:53:37 +05:30
Tim Scheuermann
1fe750ac9b Fix vet issues in model (#20784) 2022-08-18 14:53:11 +02:00
Tim Scheuermann
e665542c91 Put wrapped errors into the detailed field on serialization (#20846) 2022-08-18 14:22:12 +02:00
Vishal
53985ef162 [MM-45730] Fix Sentry crash: nil deference in model/post_list.go:152 (#20742)
* Add check to include ID in Order, only if it exists in Posts

* avoid calling GetPostsBeforePost if lastUnreadPostId is inaccessible
2022-08-18 14:33:33 +05:30
Tim Scheuermann
a28a967eba MM-45991 Wrap errors (#20785) 2022-08-18 11:01:37 +02:00
Ibrahim Serdar Acikgoz
8e0d46e0c6 re-assign cluster interface after initializing enterprise interfaces (#20839)
* re-assign cluster interface after initializing enterprise interfaces

* add a unit test to check if cluster is triggered

* remove env overrides

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-17 23:07:04 +03:00
Agniva De Sarker
3498592a45 Always regenerate go.work file (#20842)
We flip the default mode to always regenerate the file,
and expose an option to ignore if it exists.

```release-note
NONE
```
2022-08-18 01:11:18 +05:30
Pablo Andrés Vélez Vidal
a78d91e7c0 MM-43663 - add missing words to email invite (#20794)
Co-authored-by: Pablo Velez Vidal <pablo.velez@mattermost.com>
2022-08-17 18:41:11 +02:00
Doug Lauder
df60c20f86 add userService to the services provided by channels product (#20840) 2022-08-17 11:21:22 -04:00
Agniva De Sarker
d9d75b1a7d MM-45198: Migrate app/import and api4/import (#20799)
We migrate them to use logger context.

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

```release-note
NONE
```
2022-08-17 19:58:52 +05:30
Agniva De Sarker
5e00295b5a MM-38702: Do not fail during importing without attachment (#20800)
We just log a warning instead of failing completely.

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

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-17 13:36:36 +05:30
mattermod
ad652f1840 Update latest version to 7.2.0 2022-08-17 07:08:26 +00:00
Scott Bishel
16e06614be update built in boards v7.2.0 (#20809)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-16 12:11:35 -06:00
Nick Misasi
09eedaf10f Add DelinquentSince to Subscription fields (#20655)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-16 11:11:48 -04:00
Mattermod
5ea2ca8a3a Update minor version to 7.3.0 (#20815)
Co-authored-by: Mmbot <mmbot@mattermost>
2022-08-15 16:33:58 +03:00
Akis Maziotis
efed80a90c [CLD-3942] Container Image used for e2e testing, migration from Alpine to Debian Linux (#20807)
* [fix] Dockerfile using Debian instead of Alpine

We are switching to building docker container for Matermmost-server & enterprise
from Alpine Linux(unsupported) to Debian(supported)

This image is used for e2e testing.

Rationalle:
Alpine is actually unsupported distro for Mattermost-server. https://docs.mattermost.com/install/software-hardware-requirements.html#mattermost-server-operating-system
On top of that, Alpine linux uses musl libc vs glibc, which can cause several issues when testing
Finally We got to a point of being unable to run Alpine based mattermost instances with: `Error relocating ./mattermost: fcntl64: symbol not found`
Details @ https://github.com/mattermost/mattermost-server/pull/20735

Specifically the following changes are introduced:

- switching to using Debian Buster as being a supported linux flavor for Mattermost
- pinning the Debian base image with SHA hash
- defining Shell as bash, and enabling pipefail
- pinning additional packages installed using apt
- removing unused cache
- improving MM_PACKAGE variable checking logic introducing non zero exit code (127) when failing
- migrating adduser and addgroup command, to debian compatible
- removing unused chown dirs

Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>

* [fix] Using bash as a more capable shell

* [fix] Installing optional packages needed for tests

These packages are needed to perform succesfull end to end testing.
Relevant documentation:
https://docs.mattermost.com/configure/file-storage-configuration-settings.html#enable-document-search-by-content

Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>
2022-08-13 06:44:32 +08:00
Amy Blais
6aa57e6242 Revert "MM-45272: Fix getPostThread permissions (#20565)" (#20811)
Automatic Merge
2022-08-12 18:43:49 +03:00
Shivashis Padhi
582812f1fc Merge branch 'master' of github.com:mattermost/mattermost-server into top-dms-clean 2022-08-12 17:00:55 +05:30
Akis Maziotis
1ef24221e3 [feat] CI essential multi-product architecture changes (#20783)
* [feat] essential multi-product architecture changes

This takes care of aligning mattermost-server CircleCI pipeline to the mutlti-product architecture.
Specifically the following are performed:

- seperation of mattermost-server and mattermost-webapp clone/setup stages
- introduction of clone/setup stage for focalboard
- change to using cimg/base image instaed of  mattermost/mattermost-build-webapp when cloning/setup mattermost-server
- introduction of `configure-multirepo` stage, in which multi-module workspaces (golang) configuration is being performed for mattermost-server and focalboard
- introduction of parallel build of focalboard along with mattermost-server
- reorganisation of step dependencies, to accomodate `configure-multirepo` step

Ticket: https://mattermost.atlassian.net/browse/CLD-3801
Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>
2022-08-11 18:16:59 +03:00