Haardik Dharma
a01927331a
[MM-30909]: Change receiver name for (me *KickProvider) and (me *RemoveProvider)in app/slashcommands/command_remove.go to be more idiomatic. ( #16385 )
...
Automatic Merge
2020-12-01 06:15:17 +01:00
Haardik Dharma
e5df69df27
[MM-30908]: Change receiver name for (me *DndProvider) in app/slashcommands/command_dnd.go to be more idiomatic. ( #16384 )
...
Automatic Merge
2020-12-01 05:45:17 +01:00
Haardik Dharma
cbc66c9a37
[MM-30916]: Change receiver name for (me *LogoutProvider) in app/slashcommands/command_logout.go to be more idiomatic. ( #16392 )
...
Automatic Merge
2020-11-30 05:15:17 +01:00
Elisabeth Kulzer
522c86bc94
Fix empty strings. Add updates of Weblate. ( #16421 )
...
* Translated using Weblate (Korean)
Currently translated at 90.6% (1897 of 2092 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
Translated using Weblate (Korean)
Currently translated at 91.7% (1897 of 2067 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ko/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.3% (2053 of 2088 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.0% (2054 of 2094 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.3% (2054 of 2067 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
* Translated using Weblate (Russian)
Currently translated at 94.5% (1955 of 2067 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2094 of 2094 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
Translated using Weblate (Turkish)
Currently translated at 100.0% (2092 of 2092 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server_master
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_master
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_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 96.0% (2006 of 2088 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
* Translated using Weblate (Romanian)
Currently translated at 95.1% (1986 of 2088 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ro/
Translated using Weblate (Romanian)
Currently translated at 93.2% (1948 of 2088 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ro/
* Translated using Weblate (Dutch)
Currently translated at 97.5% (2037 of 2088 strings)
Translation: mattermost-languages-shipped/mattermost-server_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server_master
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_master
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
* Fix empty translation strings
Co-authored-by: Ji-Hyeon Gim <potatogim@potatogim.net >
Co-authored-by: rodrigocorsi <rodrigocorsi@gmail.com >
Co-authored-by: Alexey Napalkov <flynbit@gmail.com >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: Hosted Weblate <hosted@weblate.org >
Co-authored-by: aeomin <lin@aeomin.net >
Co-authored-by: Viorel-Cosmin Miron <cosmin@uhlhost.net >
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-27 18:38:45 +01:00
Agniva De Sarker
6a56af2a14
MM-30863: Fix race in LRU ( #16382 )
...
* MM-30863: Fix race in LRU
After shortening the critical section, we missed out the fact
that the byte slice is still accessible after the element is returned.
So the lock needs to be active until the byte slice is fully read and
unmarshaled
https://mattermost.atlassian.net/browse/MM-30863
```release-note
NONE
```
* incorporate suggestions
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-26 20:24:23 +05:30
Eli Yukelzon
1e15ad0686
MM-30917 Fix invalid reply count calculation during thread migration ( #16395 )
2020-11-26 10:41:29 +02:00
Nick Misasi
9b6ee63a1e
[MM-29845] Add CWS Webhook endpoint and payment failed email ( #16351 )
...
* Add a new handler to allow authentication via CWS API Key
* Make error better
* Add tests and cases for new handler functions
* Move some code around
* Add test for GetCloudSession function
* unset the env after test completion
* Remove white space
* Add CWS Webhook endpoint and email code
* handle returned errors from email sending function
* Change FailureCode to FailureMessage
* Remove unnecessary translations
* Fix translations
* Forgot to add template
* Update api4/cloud.go
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
* Update api4/cloud.go
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
* Update api4/cloud.go
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
* PR changes
* Update app/email.go
Co-authored-by: Mario de Frutos Dieguez <mario@defrutos.org >
* Close body in proper spot
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
Co-authored-by: Mario de Frutos Dieguez <mario@defrutos.org >
2020-11-25 15:45:15 -05:00
Christopher Speller
a87e8d1c20
MM-30740 Add support for boolean feature flags. ( #16311 )
...
* Add support for boolean feature flags.
* Tests
* Use strconv.ParseBool to accept additional values as true.
* Update config/feature_flags.go
Co-authored-by: Christopher Poile <cpoile@gmail.com >
Co-authored-by: Christopher Poile <cpoile@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-25 07:27:06 -08:00
Agniva De Sarker
faaac9cb74
MM-30861: Fix racy test TestSaml2Login ( #16376 )
...
* MM-30861: Fix racy test TestSaml2Login
https://mattermost.atlassian.net/browse/MM-30861
```release-note
NONE
```
* incorporate suggestions
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-25 19:01:32 +05:30
Scott Bishel
e014de0a65
MM-30802: Enable GoSAML2 library support ( #16361 )
...
* update saml to always use new library
* remove unused variable
* Update tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-25 08:14:56 -05:00
John Tzikas
3323b886f1
Make mlogger atomic ( #16398 )
...
* Make mlogger atomic
* Apply PR suggestions
* Fix logger initialization on testing
* Apply PR suggestions
2020-11-25 12:30:42 +02:00
John Tzikas
b375037a42
Syncronize access when updating config on search layer ( #16393 )
...
* Syncronize access when updating config on search layer
* Simplify validity of race condition on tests
* Add License header on new file
* Use atomic.Value for config access on search layer
* Apply PR suggestions
2020-11-25 12:23:43 +02:00
Eli Yukelzon
bcb861717e
MM-30918 Fix product notice check when user setting is missing ( #16396 )
2020-11-25 09:30:44 +02:00
Haardik Dharma
5642d3106e
[MM-30907]: Change receiver name for (me *AwayProvider) in app/slashcommands/command_away.go to be more idiomatic. ( #16383 )
...
Automatic Merge
2020-11-25 07:15:17 +01:00
Agniva De Sarker
912d059658
MM-30706: Skip racy test TestWebSocket ( #16357 )
...
* MM-30706: Skip racy test TestWebSocket
We just skip the test for now
https://mattermost.atlassian.net/browse/MM-30706
```release-note
NONE
```
* Add empty line
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-24 21:56:10 +05:30
Agniva De Sarker
64e98d535d
MM-30862: Fix racy test RunComplianceReports ( #16377 )
...
We pass a copy of the compliance object to the goroutine
https://mattermost.atlassian.net/browse/MM-30862
```release-note
NONE
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-24 21:36:34 +05:30
Deep Baldha
118b3be57c
MM-30821: Change to idiomatic receiver names for slashcommands.msgProvider ( #16346 )
...
Automatic Merge
2020-11-24 16:45:17 +01:00
Deep Baldha
6e450ac82d
MM-30816: Change to idiomatic receiver names for slashcommands.LoadTestProvider ( #16341 )
...
Automatic Merge
2020-11-24 15:45:17 +01:00
Maria A Nunez
8a92888190
MM-30900 - Dropped condition of RestrictAdmin for filtering cloud_restrictable ( #16365 )
2020-11-24 09:03:34 -05:00
Deep Baldha
0049cc08d2
MM-30824: Change to idiomatic receiver names for model.SecurityBulletin ( #16349 )
...
JIRA Ticket - https://mattermost.atlassian.net/browse/MM-30824
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-24 10:53:10 +05:30
Deep Baldha
3b00271bac
MM-30823: Change to idiomatic receiver names for model.PushResponse ( #16348 )
...
JIRA Ticket - https://mattermost.atlassian.net/browse/MM-30823
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-24 10:52:59 +05:30
Deep Baldha
71d975e4bd
MM-30820: Change to idiomatic receiver names for slashcommands.LeaveProvider ( #16345 )
...
Automatic Merge
2020-11-24 06:15:17 +01:00
Deep Baldha
819b4b8e7b
MM-30825: Change to idiomatic receiver names for app.TestHelper ( #16350 )
...
Automatic Merge
2020-11-24 05:15:18 +01:00
Elisabeth Kulzer
39222e3f63
Add build and publish stages ( #16362 )
2020-11-23 20:40:13 +01:00
Nick Misasi
3099128bbd
[MM-29845] Add a new handler to allow authentication via CWS API Key ( #16319 )
...
* Add a new handler to allow authentication via CWS API Key
* Make error better
* Add tests and cases for new handler functions
* Move some code around
* Add test for GetCloudSession function
* unset the env after test completion
* Remove white space
* Change Info to Warn
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-23 14:34:10 -05:00
Deep Baldha
27462bbfc9
MM-30819: Change to idiomatic receiver names for slashcommands.PurposeProvider ( #16344 )
...
Automatic Merge
2020-11-23 19:45:17 +01:00
Deep Baldha
c4891bdb51
MM-30817: Change to idiomatic receiver names for slashcommands.OfflineProvider ( #16342 )
...
Automatic Merge
2020-11-23 15:45:17 +01:00
Agniva De Sarker
d9e8402dc2
MM-30319: Fix race in ensureAsymmetricSigningKey ( #16354 )
...
A cluster changed listener always runs in a separate goroutine.
This causes a race condition when a new member gets added in the cluster.
We fix it by accessing the value atomically.
I tried to write a test for this, but it wasn't triggering at all.
The best way is to just start the server with cluster enabled in race mode,
and verify that the race doesn't happen.
https://mattermost.atlassian.net/browse/MM-30319
```release-notes
NONE
```
2020-11-23 19:18:24 +05:30
OgmaJ
d28e7ec870
[MM-30136] Issuing /dnd consecutively should not toggle the user status between dnd and online ( #16258 )
...
Summary
/dnd will only do a do not disturb
Ticket Link
Fixes #16253
JIRA https://mattermost.atlassian.net/browse/MM-30136
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-23 15:06:43 +05:30
Jesús Espino
9ec09c2bcd
Remove unneeded Err field in the store result struct ( #16322 )
...
* Remove unneeded Err field in the store result struct
* Fixing references to old errors in the tests
2020-11-23 09:26:01 +01:00
Harrison Healey
c54ab6da21
Revert "[MM-29224] Fix bug where markdown image link doesn't show preview ( #15862 )" ( #16326 )
...
This reverts commit 07948ae7bc .
2020-11-20 11:23:21 -05:00
Agniva De Sarker
4cdf239139
MM-29107: Fix race in LDAP login ( #16239 )
...
* MM-29107: Fix race in LDAP login
We remove the goroutine to make things synchronous.
This removes the race and makes things more reliable.
It is already tested by TestLogin in ldap_test.go in -race mode.
https://mattermost.atlassian.net/browse/MM-29107
```release-note
NONE
```
* Address review comments
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-20 18:07:31 +05:30
Akshay Chhajed
26676953a4
MM-30140 LRU critical section optimization ( #16184 )
...
* MM-30140 LRU critical section optimization
* Remove empty line
* Renamed lru function
2020-11-20 11:29:27 +01:00
Jesús Espino
d274cf8afa
Removing unnecesary SqlStore interface ( #16057 )
2020-11-20 10:51:58 +01:00
Jesús Espino
5b1a716e2c
Removing AppError check from the retry layer ( #16307 )
2020-11-20 10:32:30 +01:00
Eli Yukelzon
cf4df5fcd2
MM-30048 added thread related socket messages ( #16234 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-20 11:00:52 +02:00
Deep Baldha
7b515d27f2
MM-30705: remove receiver names for empty struct- InvitePeopleProvider ( #16300 )
...
Automatic Merge
2020-11-20 00:15:17 -05:00
Jesse Hallam
2ac83ffac7
MM-30800: prepackage incident management 1.1 ( #16323 )
...
* prepackage incident management v1.1 (#16195 )
Fixes: https://mattermost.atlassian.net/browse/MM-30800
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
* update telemetry whitelist
* newer version!
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-19 16:13:53 -04:00
drraghavendra
537b5a5b67
Linkedin,Facebook links updated inReadme file of mattermost-server ( #16186 )
...
Automatic Merge
2020-11-18 22:45:17 -05:00
Maria A Nunez
2ea2293276
Remove cloud_restrictable for cloud billing settings ( #16309 )
2020-11-18 16:24:34 -05:00
Christopher Speller
ceb1422a5c
MM-29709 Client side feature flags ( #16212 )
...
* Client side feature flags.
* Fix test.
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-18 11:11:15 -08:00
Ibrahim Serdar Acikgoz
213345fa2c
add manage_remote_clusters permission ( #16252 )
2020-11-18 18:40:12 +03:00
Agniva De Sarker
09c7f7c445
MM-30704: Change to idiomatic receiver names for model.Session ( #16298 )
...
```release-note
NONE
```
https://mattermost.atlassian.net/browse/MM-30704
2020-11-18 20:41:05 +05:30
Ibrahim Serdar Acikgoz
b30acfdee6
[MM-29296] model/user: add lock to source ( #16054 )
...
* model/user: add lock to source
* guard rand creation with locking
* use locked random
* remove assignment
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-18 13:26:18 +03:00
Ibrahim Serdar Acikgoz
50e29cb47a
app/user: fix update user error when an e-mail address already in use ( #16269 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-18 12:31:57 +03:00
Martin Kraft
1b7f47fdc6
MM-29420: Adds missing access to the global relay config settings. ( #16273 )
...
Automatic Merge
2020-11-17 21:15:17 -05:00
John Tzikas
5797d6ace3
Add logic to skip duplicate table errors when initializing db ( #16270 )
...
* Add logic to skip duplicate table errors when initializing db
* Update store/sqlstore/supplier.go
Co-authored-by: Gabe Jackson <gabe@coffeepowered.co >
* Handle mysql and pg table already exist errors
* Apply PR suggestions
* Fix typo on IsDuplicate
* Update mysql error link to point to the official one
Co-authored-by: Gabe Jackson <gabe@coffeepowered.co >
2020-11-17 17:01:20 -05:00
Nick Misasi
887ef0b5e1
[MM-29515] Don't allow slack imports in cloud installations ( #16271 )
...
* Don't allow slack imports in cloud installations
* Update api4/team.go
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
* Add a test case for when the import is restricted in cloud
* Update api4/team_test.go
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
* Check for cloud license instead of restrictsystemadmin
* fix tests
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-17 12:56:17 -05:00
Elisabeth Kulzer
a5e2275b16
DOPS-243: Fix images ( #16296 )
...
DOPS-243: Fix images (#16296 )
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-17 18:48:26 +01:00
Agniva De Sarker
221f70a6cb
MM-29487: Fix racy TestMuteCommandSpecificChannel ( #16290 )
...
The code was doing `go fakeApp.UpdateProductNotices()`
due to which the Store object was accessed in a racy manner
when it was reset if the localcachelayer flag was set.
We fix this by using the StoreOverride functionality
to pre-define what store to use while initializing the server
itself so that there isn't a need to reset the store _after_
the server is set.
We also apply the same fix in the app and api4 layers too
to prevent similar things from happening there.
https://mattermost.atlassian.net/browse/MM-29487
```release-note
NONE
```
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-11-17 21:13:35 +05:30