Kitae Kim
aefd6c8e0f
Migrate buildSearchPostFilterClause to use Squirrel ( #19583 )
...
Automatic Merge
2022-03-03 10:34:18 +01:00
Agniva De Sarker
ab8de49f0a
MM-40818: Refactor product initialization to happen late ( #19658 )
...
This is more of a general refactor of the initialization
process which should allow us to pass services more
easily.
The changes are minimal to keep the scope limited.
For now, the objective is to pass the file service
to the Channels product. For that, it was required
to move some of the enterprise interfaces under Channels
from Server.
We also create a filestore field in the server to
avoid creating filestore reference every time
we make a filestore operation. This will be later
passed on to the Channels product.
Also removed an unnecessary test.
The test was working so far because we were creating
the filebackend every time for every request. But
we should go via UpdateConfig call which would fail,
were we to assign an invalid filestore name.
So we were actually testing for a different thing.
Therefore, removed the test.
```release-note
NONE
```
2022-03-03 12:22:10 +05:30
Agniva De Sarker
768fe43d3a
MM-41752: Batch update mention increment ( #19596 )
...
Previously, we were incrementing mentions one-by-one
all concurrently in an unbounded fashion.
This would cause a big spike in memory usage if there
were an `@all` mention in a large channel.
We fix this by changing the SQL query to take all userIDs
at once.
https://mattermost.atlassian.net/browse/MM-41752
```release-note
NONE
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-03-03 08:50:19 +05:30
Julien Tant
dd100a3a69
[MM-41785] Show error in invitation popin when email can't be send ( #19617 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-03-02 14:26:57 -07:00
Spiros Economakis
2bf1334ac4
Upgrade circleci ubuntu server image to latest version
...
CircleCI will deprecate the image we use and we need to upgrade to the latest one.
Ticket: https://mattermost.atlassian.net/browse/DOPS-822
2022-03-02 15:43:59 +02:00
Guillermo Vayá
bd3e36553d
[MM-42022] Don't break importing process on missing display name of a channel ( #19641 )
...
* Don't break importing process on missing display name of a channel
* remove unused strings
Co-authored-by: = <=>
2022-03-02 14:18:23 +01:00
Daniel Espino García
32e3c2f0b8
[Gekidou] Add push notification check to ping ( #19610 )
...
* Add push notification check to ping
* Add test type and missing details
* Address feedback
* Fix function name
* Address feedback
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-03-02 12:15:58 +01:00
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