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

14503 Коммитов

Автор SHA1 Сообщение Дата
Mylon Suren
7e2ae93231 [MM-36190] Permalink Nested Previews (#19413) 2022-03-01 18:52:39 -05:00
Allan Guwatudde
e3b0e61794 [MM-40962] - Remove log when checking renewal token validity (#19653) 2022-03-01 18:25:04 +03:00
Daniel Espino García
d6603b4bf8 [MM-41611] Only check for userId when saving userTermsOfService (#19587)
* Only check for userId when saving userTermsOfService

* Add test

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-03-01 13:17:05 +01:00
Ibrahim Serdar Acikgoz
f2471200f9 [MM-40817] Add license wrapper (#19648)
* add license service interface

* add wrapper

* remove wrapper from channels struct until its being used

* add comments
2022-03-01 15:14:43 +03:00
Agniva De Sarker
229200720c Revert "Translations update from Mattermost Weblate" (#19651)
* Revert "Translated using Weblate (Polish)"

This reverts commit 5aee5b3632.

* Revert "Translated using Weblate (Hungarian)"

This reverts commit 4ad13d21f5.

* Revert "Translated using Weblate (Portuguese (Brazil))"

This reverts commit 986cf9a439.

* Revert "Translated using Weblate (Italian)"

This reverts commit 0398e34f4b.

* Revert "Translated using Weblate (Turkish)"

This reverts commit c8e8a4a2ac.

* Revert "Translated using Weblate (German)"

This reverts commit 86c2680d02.

* Revert "Translated using Weblate (English (Australia))"

This reverts commit 5709e6c564.
2022-03-01 10:30:36 +05:30
master7
5aee5b3632 Translated using Weblate (Polish)
Currently translated at 100.0% (2344 of 2344 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-02-28 23:15:16 +02:00
Tóth Csaba // Online ERP Hungary Kft
4ad13d21f5 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2344 of 2344 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-02-28 23:15:16 +02:00
Nimg src=x onerror=prompt(1)
986cf9a439 Translated using Weblate (Portuguese (Brazil))
Currently translated at 92.7% (2173 of 2344 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
2022-02-28 23:15:16 +02:00
SerHack
0398e34f4b Translated using Weblate (Italian)
Currently translated at 74.4% (1745 of 2344 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/it/
2022-02-28 23:15:16 +02:00
Kaya Zeren
c8e8a4a2ac Translated using Weblate (Turkish)
Currently translated at 100.0% (2344 of 2344 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-02-28 23:15:16 +02:00
jprusch
86c2680d02 Translated using Weblate (German)
Currently translated at 100.0% (2344 of 2344 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-02-28 23:15:16 +02:00
Matthew Williams
5709e6c564 Translated using Weblate (English (Australia))
Currently translated at 99.7% (2337 of 2343 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-02-28 23:15:16 +02:00
Jesse Hallam
6757edc4e2 MM-41349: CRT, fix LastUpdated semantics (#19523)
* deadcode: remove UpdateChannelLastViewedAt

* deadcode: remove ThreadStore.(Save(Multiple)|Update|Delete)

* deadcode: followThead in App.MarkChannelAsUnreadFromPost

* document ThreadMembership, Thread structs

* maintain LastUpdated consistently

Whenever we touch a `ThreadMembership` record, we should be setting `LastUpdated` to the current timestamp. The mobile client relies on this to detect changes to these records.

* simplify: never updateThreads from `App.MarkChannelAsUnreadFromPost`

Change all invocations of `ChannelStore.UpdateLastViewedAtPost` from `App.MarkChannelAsUnreadFromPost` to pass `updateThreads` as `false`. When `ChannelStore.UpdateLastViewedAtPost` was invoked with `updateThreads` as `true`, it would in turn call `ThreadStore.UpdateUnreadsByChannel` but pass `updateViewedTimestamp` as `false`. This effectively updated the `LastUpdated` field of the corresponding thread memberships but never touched any of the actual data (such as `LastViewed`).

The overall CRT feature continued to work, because `App.MarkChannelAsUnreadFromPost` directly updates the relevant thread memberships via `ThreadStore.MaintainMembership`.

* deadcode: updateThreads in ChannelStore.UpdateLastViewedAtPost

* simplify: never updateThreads from App.SendNotifications

Change all invocations of `ChannelStore.IncrementMentionCount` from
`App.SendNotifications` to pass `updateThreads` as `false`. When `ChannelStore.IncrementMentionCount` was invoked with `updateThreads` as `true`, it would in turn call `ThreadStore.UpdateUnreadsByChannel` but pass `updateViewedTimestamp` as `false`. This effectively updated the `LastUpdated` field of the corresponding thread memberships but never touched any of the actual data (such as `UnreadMentions`).

The overall CRT feature continued to work, because `App.SendNotifications` directly updates the relevant thread memberships mention counts via `ThreadStore.MaintainMembership`.

* deadcode: updateThreads in ChannelStore.IncrementMentionCount

* fix & rename ThreadStore.UpdateUnreadsByChannel

Rename `ThreadStore.UpdateUnreadsByChannel` to `ThreadStore.UpdateLastViewedByThreadIds`, making it unconditionally set the `LastViewed` for the given threads (as well as `LastUpdated`).

All previous invocations of this method that passed `updateViewedTimestamp` have been previously removed.

* unrelated gofmt -w -s changes to satisfy linter

* always set LastUpdated to model.GetMillis()

* deadcode: ThreadStore.SaveMembership

* fix TestMarkUnreadWithThreads

* GetMasterX
2022-02-28 16:24:34 -04:00
Ben Cooke
cc900149c6 [MM-42068] Add check to stop custom groups linking to teams and channels (#19633)
* tools updates

* Revert "tools updates"

This reverts commit 6293297b55803c5a263e200ebd80192899666ae9.

* stop custom groups linking to teams and channels

* updating test and changing logic

Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home>
2022-02-28 15:06:26 -05:00
Ben Schumacher
f7504037fe Fix min server version for Custom Status Plugin API methods (#19605) 2022-02-28 21:00:57 +01:00
Josh Soref
5d85417a8b spelling: strings (#19542)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-02-28 15:01:00 +05:30
Ibrahim Serdar Acikgoz
a22bc8fd96 Update dependecies (#19635) 2022-02-28 09:37:32 +03:00
Nathaniel Allred
32fd4d7f16 fix string constants (#19642) 2022-02-25 13:56:40 -06:00
Allan Guwatudde
81f82729d2 Fixed MM-42027 (#19619)
* [MM-42027] - Invitation Email is resent as a Reminder after invalidating pending email invites

* generate app layers mocks

* add tests

* improve err handling

* fix translations

* change status code
2022-02-25 20:02:08 +03:00
Ben Schumacher
3c48be040f Skip TestDeleteChannel (#19638) 2022-02-25 11:27:04 +01:00
Agniva De Sarker
95f784a475 MM-36668: Trim large slash commands before logging (#19621)
Automatic Merge
2022-02-25 08:34:18 +01:00
Kitae Kim
a640ba7d05 Fix the broken MariaDB JSON path queries (#19548)
Automatic Merge
2022-02-24 21:04:18 +01:00
Michael Kochell
b87dc5afd1 [MM-41756] Remove AcceptedServiceTermsId column (#19591)
* remove AcceptedServiceTermsId column

* PR feedback

* make migrations-bindata
2022-02-24 12:51:31 -05:00
Nathaniel Allred
02818bfe7c revert to status found for login cws (#19625) 2022-02-24 09:14:50 -06:00
kaakaa
7b3a7fe346 Translated using Weblate (Japanese)
Currently translated at 98.8% (2315 of 2343 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2022-02-24 17:12:01 +02:00
Matthew Williams
e34028a7fe Translated using Weblate (English (Australia))
Currently translated at 99.7% (2326 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-02-24 17:12:01 +02:00
master7
e47a718f0f Translated using Weblate (Polish)
Currently translated at 100.0% (2343 of 2343 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% (2332 of 2332 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% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-02-24 17:12:01 +02:00
Kaya Zeren
d1b379fbb0 Translated using Weblate (Turkish)
Currently translated at 100.0% (2343 of 2343 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/

Translated using Weblate (Turkish)

Currently translated at 100.0% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-02-24 17:12:01 +02:00
Tóth Csaba // Online ERP Hungary Kft
2c55d4b8ce Translated using Weblate (Hungarian)
Currently translated at 100.0% (2343 of 2343 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.7% (2336 of 2343 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% (2341 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 100.0% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-02-24 17:12:01 +02:00
jprusch
9df6ed4d08 Translated using Weblate (German)
Currently translated at 100.0% (2343 of 2343 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% (2332 of 2332 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% (2341 of 2341 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% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-02-24 17:12:01 +02:00
Hosted Weblate
2e1ab2e653 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-02-24 17:12:01 +02:00
Persian Translator
c26ea45351 Translated using Weblate (Persian)
Currently translated at 98.7% (2304 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fa/
2022-02-24 16:12:08 +02:00
Weblate
992a4c179a Added translation using Weblate (Persian) 2022-02-24 16:12:08 +02:00
Matthew Williams
46080e5118 Translated using Weblate (English (Australia))
Currently translated at 99.7% (2326 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2022-02-24 16:12:08 +02:00
Tom De Moor
3be97ecc5d Translated using Weblate (Dutch)
Currently translated at 99.8% (2337 of 2341 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2022-02-24 16:12:08 +02:00
master7
82a74b6b65 Translated using Weblate (Polish)
Currently translated at 100.0% (2332 of 2332 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% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2022-02-24 16:12:08 +02:00
Kaya Zeren
36db625956 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/

Translated using Weblate (Turkish)

Currently translated at 100.0% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2022-02-24 16:12:08 +02:00
Tóth Csaba // Online ERP Hungary Kft
e0cc10a41c Translated using Weblate (Hungarian)
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/hu/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2022-02-24 16:12:08 +02:00
jprusch
90a481d6ed Translated using Weblate (German)
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/de/

Translated using Weblate (German)

Currently translated at 100.0% (2332 of 2332 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2022-02-24 16:12:08 +02:00
Hosted Weblate
aec051f03a 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-02-24 16:12:08 +02:00
Agniva De Sarker
939551ed10 MM-38634: Simplify image proxy (#19603)
We copy over the necessary code to simplify
the local image proxy feature.

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

```release-note
NONE
```
2022-02-24 09:02:57 +05:30
Julien Tant
53919bd332 [MM-41671] Support Email Position+Validation (#19590) 2022-02-23 08:04:29 -07:00
Claudio Costa
d04b69c9cb Fix racy TestReliableWebSocketSend (#19620) 2022-02-23 16:01:23 +01:00
Agniva De Sarker
2a59047d07 Moved morph dependency to new repo (#19618)
```release-note
NONE
```

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2022-02-23 20:11:12 +05:30
Agniva De Sarker
9534efe534 Use error log level for websocket timeouts (#19609)
For timeouts, the administrator would want to know about this.
Therefore, we detect that error specifically and use the error level.

This happened in our staging environment.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-02-23 13:20:31 +05:30
Agniva De Sarker
a0ce09d227 MM-41972: Skip flaky test TestAllowGroupMentions (#19604)
https://mattermost.atlassian.net/browse/MM-41972

```release-note
NONE
```
2022-02-23 00:44:30 +05:30
Allan Guwatudde
8d6d1c51c2 [MM-40917] - Inactive Server Email Notification (#19374)
* [MM-40917] - Inactive Server Email Notification

* add email template

* make store layers

* add some store tests

* fix translations

* fix logic

* improve

* fix lint

* feedback-impl

* fix wrong text

* optimize queries

* move feature flag check

* feedback impl-1

* add line

* feedback impl

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-02-22 20:41:58 +03:00
Amy Blais
1b1ba687bb Update en.json (#19564)
Automatic Merge
2022-02-22 17:34:18 +01:00
Claudio Costa
09eb6fb4d7 Allow sending intra cluster WS events reliably (#19594) 2022-02-22 13:43:38 +01:00
Kyriakos Z
501d454af5 MM-39351: fixes LastRootPostAt being null (#19574)
* MM-39351: fixes LastRootPostAt being null

After upgrading to v6.1 there is a chance for LastRootPostAt to be NULL.
This might be due to a faulty migration when upgrading to v5.35.

v5.35 had `create_msg_root_count` where LastRootPostAt was used as a
temporary column which at the end was deleted.
Then on v6.1 we are adding that column again, this time to keep.

If the migration to v5.35 had failed and it didn't drop the column
the `upgrade_cte` (v6.1) migration would leave some channels with `LastRootPostAt`
being NULL.

This resulted in crashing the app.

This commit fixes that by running again a migration to again set
LastRootPostAt only when it's NULL this time and then set it to 0
for channels that might still have LastRootPostAt being NULL
(channels with no posts).

PS: the whole issue arose when upon creating the `upgrade_cte` migration
the create_msg_root_count migration was manually edited to change
the column name from LastRootPostAt to LastRootAt.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-02-22 12:13:04 +02:00