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

14197 Коммитов

Автор SHA1 Сообщение Дата
Allan Guwatudde
a7c6fa1340 [MM-40345] - Fix telemetry in resend invite email job (#19049)
* [MM-40345] - Fix telemetry in resend invite email job

* feedback impl
2021-11-30 18:42:33 +03:00
Agniva De Sarker
9fde5aa5e2 Do not parse developer flags if empty (#19097)
* Do not parse developer flags if empty

Attempting to parse an empty flag would
result in a spurious log line which would
clog up the console.

```release-note
NONE
```

* add test

```release-note
NONE
```
2021-11-30 14:27:25 +05:30
Matthew Williams
f075690195 Translated using Weblate (English (Australia))
Currently translated at 100.0% (2325 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2021-11-29 23:59:42 -05:00
MArtin Johnson
6de0559669 Translated using Weblate (Swedish)
Currently translated at 100.0% (2325 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2021-11-29 23:59:42 -05:00
master7
54866a0690 Translated using Weblate (Polish)
Currently translated at 100.0% (2325 of 2325 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2021-11-29 23:59:42 -05:00
Tóth Csaba // Online ERP Hungary Kft
1021c46d78 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2325 of 2325 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 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-11-29 23:59:42 -05:00
gruceqq
a0cac222d4 Translated using Weblate (Polish)
Currently translated at 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2021-11-29 23:59:42 -05:00
Tom De Moor
2a40dd9b33 Translated using Weblate (Dutch)
Currently translated at 100.0% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2021-11-29 23:59:42 -05:00
jprusch
7a463257f9 Translated using Weblate (German)
Currently translated at 100.0% (2325 of 2325 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% (2324 of 2324 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-11-29 23:59:42 -05:00
Martin Kraft
7b28367928 MM-39433: Fixes (*App).getEmbedsAndImages parameter. (#19103) 2021-11-29 19:56:15 -05:00
Igor German
d3536087d7 Make getPrepackaged resilient to missing plugin icons (#18505)
Signed-off-by: Igor German <germanenak@gmail.com>

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-29 14:17:59 -04:00
Ben Cooke
27dacb82ce [MM-38239 & MM-39788] Recent files causing crash (#18942)
* wip

* adding tests for new endpoint

* tool updates

* new function for getting postsByIds

* fixing test

* adding limit of 1000 to post query

* fixing PR comments

* fixing permission logic

Co-authored-by: Collin <collineng@gmail.com>
Co-authored-by: Collin Eng <eng.engineereng@gmail.com>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home>
2021-11-26 11:51:32 -05:00
Carlos Tadeu Panato Junior
44d324a45f prepera db upgrade to 6.3 (#19086) 2021-11-26 16:51:25 +01:00
Carlos Tadeu Panato Junior
810edf34a1 upgrade db to 6.2.0 (#19085) 2021-11-26 15:50:09 +01:00
Miguel de la Cruz
009d02c57a Take view archived config into account on users and posts api endpoints (#19014)
* Take view archived config into account on users and posts api endpoints

* Move the inChannel check to the top level
2021-11-25 15:01:17 +01:00
Nick Misasi
8588f69850 [MM-40342] Fix panic in Mattermost Server for cloud installations (#19046)
* Add a small change to trigger spinwick update

* Change if statement to fix panic

* Undo changes

* simplify logic
2021-11-25 00:07:39 -05:00
Agniva De Sarker
5ab3ad9bfd Move enterprise features under Channels (#19010)
* Move enterprise features under Channels

We move the EE features which are Channels related.

While here, we also move some code under *Server.Start()
from NewServer.

```release-note
NONE
```

* move saml and ldap back to server

```release-note
NONE
```

* fix test

```release-note
NONE
```

* try again

```release-note
NONE
```
2021-11-25 10:07:43 +05:30
Agniva De Sarker
189d447591 MM-39315: Bump dependencies (#19039)
Note: We keep splitio/go-client untouched
because the dependency is broken.

See https://github.com/mattermost/mattermost-server/pull/18604

```release-note
NONE
```
2021-11-24 19:45:28 +05:30
Doug Lauder
fd8fea804b Change default log rotation size to 100MB (#19018)
* chg default log rotation size to 100MB to match docs

* rename LogRotateSize -> LogRotateSizeMB

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-23 13:27:26 -05:00
Lev
03f43d7ae5 Convert URLs to fully-qualified for HTTP redirects (#19020)
* Convert URLs to fully-qualified for HTTP redirects

* forgot the tests
2021-11-23 08:51:25 -08:00
Ashish Bhate
8440a754b4 [MM-37013] Better post filtering (#19013)
Summary:
- Skip searching for deleted posts.

Ticket:
- Part of https://mattermost.atlassian.net/browse/MM-37013
2021-11-23 21:34:29 +05:30
Alex Boutin
3710aae7a1 MM-39635: Migrate gorp to sqlx #18873 (#18945)
Automatic Merge
2021-11-23 07:05:13 +01:00
Tom De Moor
6b732ee984 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/
2021-11-22 12:34:20 -05:00
Tóth Csaba // Online ERP Hungary Kft
7061d7acf0 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/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (2318 of 2318 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-11-22 12:34:20 -05:00
MArtin Johnson
af36c02e21 Translated using Weblate (Swedish)
Currently translated at 100.0% (2318 of 2318 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2021-11-22 12:34:20 -05:00
jprusch
9e3dbe910f 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/

Translated using Weblate (German)

Currently translated at 100.0% (2318 of 2318 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-11-22 12:34:20 -05:00
Kaya Zeren
a5d3a3eaf1 Translated using Weblate (Turkish)
Currently translated at 100.0% (2318 of 2318 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% (2317 of 2317 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2021-11-22 12:34:20 -05:00
master7
4b6b8a80f7 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/

Translated using Weblate (Polish)

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

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2021-11-22 12:34:20 -05:00
Matthew Williams
45a5a28fbb 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/

Translated using Weblate (English (Australia))

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

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2021-11-22 12:34:20 -05:00
Ernest Nguyen
47de1f37e6 MM-39632: Migrate from using gorp to sqlx (#18949)
Automatic Merge
2021-11-22 17:05:13 +01:00
Alex Boutin
478b3f7108 MM-39634: Migrated gorp to sqlx (#18951)
* MM-39634: Migrated gorp to sqlx

* MM-39634: Removed redundant limit on get since only one value is returned

* MM-39485: Fixed returned errors + goimports

Co-authored-by: Alex <alex@rumandcode.io>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-22 20:58:50 +05:30
Claudio Costa
3dea98ea4b Implement deep copy method for model.WebSocketEvent (#18977) 2021-11-22 09:54:19 +01:00
Ashish Bhate
0da249c651 [MM-37013] Async job to fix CRT channel unreads (#18340)
Summary
The addition of the TotalMsgCountRoot and MsgCountRoot columns to support CRT caused several issues with previously read threads and channels being marked as unread. Previously we attempted to fix this purely in a SQL migration [MM-35345][MM-35494] fixes for incorrect mentions and unreads for threads and channels #17803 but that turned out to be too heavy and it was decided to break up some of the fixes into async jobs.
This PR implements an async job to mark channels as read if there are no user posts since the last time the user viewed the channel. 

Ticket Link
https://mattermost.atlassian.net/browse/MM-37013
2021-11-18 15:31:18 +05:30
Agniva De Sarker
12dc171a60 MM-39341: Sentry crash: nil dereference in *User.ClearNonProfileFields (#18966)
In some cases, an invalid participant id like an empty string
might creep into the database. It's not exactly clear
how can this happen, but if it does, then it breaks the logic
of assuming that the users slice will contain all users
in the participants slice.

To prevent this, we check if a match was found before
adding it in the slice.

https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4/7sixm4t7c6rsr3d8ydxbtfgy9gr

```release-note
NONE
```
2021-11-17 20:49:40 +05:30
Agniva De Sarker
b7a7d8e7b6 MM-39612: Make acquiring and removing connections atomic (#18982)
* MM-39612: Make acquiring and removing connections atomic

The reconnect phase of a websocket was split into two parts:
one where we check if a connection with a given connectionID
exists or not. And second, where we remove that connection
and insert the new connection again in the index.

This would lead to a race where it would be possible
for 2 concurrent requests for the same connectionID to go through
which would lead to separate goroutines working on the same dead queue.

We simplify this by removing the connection from the index
in the check connection stage itself. And then just add that
during register phase.

And to distinguish between a fresh and an old connection, we add
a new field called reuseCount.

While here, we also cleanup some old comments and add more
in some places.

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

```release-note
NONE
```

* remove unused method

```release-note
NONE
```

* race test

```release-note
NONE
```
2021-11-16 19:43:43 +05:30
Ben Schumacher
e8591537e0 [MM-39851] Add CRUD methods for user sessions to plugin API (#18958) 2021-11-16 15:08:20 +01:00
Penthaa Patel
397edef1d8 [MM-39637] - Migrate from gorp to sqlx in store/sqlstore/shared_channel_store.go (#18898)
Automatic Merge
2021-11-16 05:40:13 +01:00
Kaya Zeren
c3ed4e11ab Translated using Weblate (Turkish)
Currently translated at 100.0% (2316 of 2316 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2021-11-15 17:29:07 -05:00
kaakaa
8a176846e8 Translated using Weblate (Japanese)
Currently translated at 99.9% (2315 of 2316 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2021-11-15 17:29:07 -05:00
maruTA-bis5
fa462d7891 Translated using Weblate (Japanese)
Currently translated at 99.9% (2314 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2021-11-15 17:29:07 -05:00
MArtin Johnson
bc7f1882ce Translated using Weblate (Swedish)
Currently translated at 100.0% (2315 of 2315 strings)

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

Translated using Weblate (Swedish)

Currently translated at 99.9% (2314 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2021-11-15 17:29:07 -05:00
jprusch
b48e695ec4 Translated using Weblate (German)
Currently translated at 100.0% (2317 of 2317 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% (2315 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-11-15 17:29:07 -05:00
SerHack
846a08041a Translated using Weblate (Italian)
Currently translated at 75.6% (1751 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/it/
2021-11-15 17:29:07 -05:00
Matthew Williams
580c439bff Translated using Weblate (English (Australia))
Currently translated at 100.0% (2315 of 2315 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 100.0% (2314 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2021-11-15 17:29:07 -05:00
Tóth Csaba // Online ERP Hungary Kft
c426f5407d Translated using Weblate (Hungarian)
Currently translated at 100.0% (2317 of 2317 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 100.0% (2316 of 2316 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 100.0% (2315 of 2315 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 100.0% (2314 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-11-15 17:29:07 -05:00
Ujjwal Sharma
627d2b9d6c [MM-39628] Migrate from gorp to sqlx in store/sqlstore/scheme_store.go (#18895)
Automatic Merge
2021-11-15 17:40:13 +01:00
Cesar Bretana
2153dc4d6d [MM-39641] Migrate Webhook store to sqlx (#18896)
* Migrated to sqlx INSERT + UPDATE incoming_webhooks

* Finish migrating IncomingWebhook to sqlx

* wip: outgoing webhooks

* Fix sql syntax error for incoming webhooks

* Add missing fields to insert incoming webhooks query

* Migrate outgoing_webhooks store to sqlx

* Migrate incoming_webhooks analytics count to sqlx

* Migrate outgoing_webhooks analytics count to sqlx

* Fix lint goimports alert

* Migrate unmigrated gorp methods

* Add missing fields to update incoming webhooks sql + remove unnecessary guards

* Address comments from review
2021-11-15 21:13:14 +05:30
Penthaa Patel
25b727d197 [MM-39638] - Migrate from gorp to sqlx in store/sqlstore/status_store.go (#18897)
* migrate from gorp to sqlx

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fixes

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-15 21:12:30 +05:30
Allan Guwatudde
0ee2a3ca35 [MM-39060] - A/B Test: Reminder to Join Workspace email (#18894)
* [MM-39060] - A/B Test: Reminder to Join Workspace email

* Fix error and add error handling

* feedback impl

* run make i18n-extract

* improvements

* make i18n-extract

* setup ability to do telemetry on reminder invite emails

* improvement

* add telemetry

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-15 18:42:15 +03:00
Yair Facio
e1eb0a0cf3 [MM-39643] Migrate from gorp to sqlx in store/sqlstore/system_store.go (#18893)
* Migrate from gorp to sqlx in SystemStore

* Add BeginXWithIsolation method to *sqlxDBWrapper

* Address PR comments
2021-11-15 21:03:55 +05:30