Max Erenberg
3ea75332e7
Mm 30807 granular data retention scaffold ( #16891 )
...
create the necessary tables, models and APIs for the granular data retention policy feature
2021-04-16 11:32:09 -04:00
Claudio Costa
03473f98ac
Fix 5.35 migration ( #17416 )
...
* Only run performance heavy migration queries once
* Fix ordering and test
2021-04-16 10:37:21 +02:00
Jesús Espino
09a52aab3e
Fix problem with nulls in file infos content field ( #17404 )
2021-04-16 09:38:48 +02:00
Eli Yukelzon
f90209c8a3
MM-34609 Mark-as-unread on a post in a thread should cause auto-follow ( #17343 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-16 10:26:08 +03:00
Doug Lauder
518e0ed371
fix racy ping test ( #17400 )
...
- ensure no logging is attempted after unit test is completed by explicitly shutting down the mock server, and ensuring no reference to testing.T is held.
2021-04-15 10:49:33 -04:00
Eli Yukelzon
9a27d135a1
MM-34774 Root post with mention should be auto-followed but hidden from thread results ( #17390 )
2021-04-15 17:32:01 +03:00
Allan Guwatudde
ab8b8e8bf2
[MM-34240] - Cloud: "Congratulations" welcome email missing images ( #17350 )
...
* [MM-34240]-Cloud: Congratulations welcome email missing images
* Use img instead of svg
* Add fallback font Arial
* Feedback impl
* EOF
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-15 13:23:03 +03:00
Doug Lauder
9799fe9be6
MM-34549 shared channels; add users to channel that were already sync'd ( #17361 )
...
Fixes a bug and adds a feature for shared channels:
- The Bug: when creating new shared channels, users that had already been sync'd via another channel were not added to the new channel's member list, since the users were not sync'd again. This PR sync's users per channel.
- The Feature: support custom statuses
2021-04-14 14:59:26 -04:00
Maria A Nunez
81c40174e6
Feature: Support Cloud 14-day Trial ( #17397 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Nick Misasi <nick.misasi@mattermost.com >
Co-authored-by: Allan Guwatudde <guwats10@gmail.com >
2021-04-14 11:36:36 -04:00
Scott Bishel
e8b710f7fe
Update group sync to work with AD - SAML ids ( #17108 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-13 15:30:19 -06:00
Agniva De Sarker
fa16ecf98a
MM-34787: Add colored output for non JSON console logs ( #17388 )
...
* MM-34787: Add colored output for non JSON console logs
https://mattermost.atlassian.net/browse/MM-34787
```release-note
A new field EnableColor is added to LogSettings and NotificationLogSettings.
Non-JSON console logs will now be colored if that field is set to true.
```
* Trigger CI
2021-04-13 23:45:56 +05:30
Agniva De Sarker
6f87eb991f
MM-34786: Fix racy test TestStartServerTLSSuccess ( #17387 )
...
* MM-34786: Fix racy test TestStartServerTLSSuccess
There were a bunch of more tests which concurrently
updated config along with starting the server.
We apply the same fix as before in https://github.com/mattermost/mattermost-server/pull/17215
https://mattermost.atlassian.net/browse/MM-34786
```release-note
NONE
```
* Refactor newServer
* checking for error too
2021-04-13 21:12:48 +05:30
Agniva De Sarker
8e75e22383
MM-34785: Skip TestPing ( #17386 )
...
https://mattermost.atlassian.net/browse/MM-34785
2021-04-13 21:11:50 +05:30
Doug Lauder
f69cb38249
MM-32133 shared channel username collisions ( #17347 )
...
Support for handling username collisions between remote clusters. Users belonging to remote clusters have their username changed to include the remote name e.g. wiggin becomes wiggin:mattermost.
@mentions are also modified so the munged username is replaced with the original username when the post is sync'd with the remote the user belongs to.
When adding remote users:
- append the remote name to the username with colon separator
- append the remote name to the email address with colon separator
- store the original username and email address in user props
- when resolving @mentions replace with the stored original username
2021-04-13 10:40:12 -04:00
Max Erenberg
869da7a78b
[MM-32044] Reset SAML auth data ( #17161 )
...
Automatic Merge
2021-04-13 00:46:30 +02:00
Jesse Hallam
2de65cfb11
MM-33180: Extend Group APIs for plugins. ( #17232 )
...
Add `GetGroupMemberUsers` (mapping to `GetGroupMemberUsersPage`) and `GetGroupsBySource`.
Fixes: https://mattermost.atlassian.net/browse/MM-33180
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-12 14:01:28 -03:00
Weblate (bot)
f145ac202d
Translations update from Weblate ( #17381 )
...
* Translated using Weblate (Dutch)
Currently translated at 99.2% (2284 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
Translated using Weblate (Dutch)
Currently translated at 99.3% (2285 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Update translation files
Updated by "Remove blank strings" hook in Weblate.
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.3% (2287 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 96.0% (2211 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
* Translated using Weblate (Swedish)
Currently translated at 100.0% (2303 of 2303 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% (2301 of 2303 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 98.0% (2255 of 2301 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 96.7% (2226 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
* Translated using Weblate (Romanian)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ro/
Translated using Weblate (Romanian)
Currently translated at 94.7% (2181 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ro/
* Translated using Weblate (Spanish)
Currently translated at 88.8% (2045 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/es/
* Translated using Weblate (Dutch)
Currently translated at 100.0% (2303 of 2303 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
Translated using Weblate (Dutch)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
Translated using Weblate (Dutch)
Currently translated at 99.3% (2287 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Translated using Weblate (Russian)
Currently translated at 100.0% (2303 of 2303 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
* Translated using Weblate (Turkish)
Currently translated at 95.6% (2201 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (2303 of 2303 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
Translated using Weblate (Japanese)
Currently translated at 100.0% (2301 of 2301 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
* Translated using Weblate (French)
Currently translated at 82.1% (1892 of 2303 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fr/
* Translated using Weblate (Turkish)
Currently translated at 97.9% (2255 of 2303 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Bulgarian)
Currently translated at 94.9% (2186 of 2303 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/bg/
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be >
Co-authored-by: rodrigocorsi <rodrigocorsi@gmail.com >
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se >
Co-authored-by: Viorel-Cosmin Miron <cosmin@uhlhost.net >
Co-authored-by: Elias Nahum <elias@mattermost.com >
Co-authored-by: Edward Smirnov <ed@microolap.com >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: kaakaa <stooner.hoe@gmail.com >
Co-authored-by: William Farelly <wfarelly@orange.fr >
Co-authored-by: Nikolai Zahariev <nikolaiz@yahoo.com >
2021-04-12 17:27:35 +02:00
Eli Young
17a7d5ce29
[MM-31899] Use a custom user-agent when previewing links ( #17186 )
...
* Use a custom user-agent when previewing links
Many websites block requests made with Go's default user-agent. We had
previous special-cased Twitter links to use a nonstandard user-agent.
This makes that behavior apply everywhere and also customizes the
user-agent to belong specifically to Mattermost.
* Correctly use custom transport for link previews
This allows us to use the custom user-agent defined in
services/httpservice/client.go.
* Stop leaking server version in custom user-agent
Since the custom user-agent is now used when previewing links, exposing
the server version could provide a vector for a malicious actor to
gather information about private deployments. To avoid this, we switch
to a generic string.
* Remove extraneous Transport creation
MakeClient already creates a transport for us, so this is unnecessary.
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-12 09:30:48 -04:00
Jesús Espino
35d00b4644
Enable the errorAssertions govet check for mattermost-server code ( #17346 )
...
* Enable the errorAssertions govet check for mattermost-server code
* Removing unnecesary change
* Fixing some tests
* Fixing tests
* Fixing more after merge
* Fixing new offending entries
* Fixing small vet checks
* Fixing new cases detected by govet
* Fixing remote_cluster_test errors
* Fixing assertion
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-12 12:51:31 +02:00
catalintomai
e37e902ddf
MM-29584: Make apps plugin hook invocation/registration conditional ( #16769 )
2021-04-11 19:54:46 -07:00
Max Erenberg
3a3ec001bf
[MM-33826] add more detailed S3 error messages ( #17182 )
...
Automatic Merge
2021-04-09 18:16:30 +02:00
Mattermost Build
565f65a0c3
Bump version ( #17368 )
...
Co-authored-by: Mmbot <mmbot@mattermost>
2021-04-09 13:32:27 +02:00
jingkai
0eafaa502d
Refactor SQL queries in store/sqlstore/preference_store.go to use the squirrel builder ( #17086 )
...
* refactor: refactored deleteUnusedFeatures
* refactor: refactored Get to remove hardcoded sql queries
* refactor: remove debug log
* refactor: refactored getcategory
* refactor: refactored GetAll to replace with sq
* refactor: refactor delete with sq
* refactor: refactored delete category with sq
* refactor: refactored cleanup flagsbatch
* refactor: refactor save to usq sq
* fix: fixed missing wildcard in LIKE operator
* refactor: fixed previous double call to database with a cleaner approach
* refactor: removed debug logs
* refactor: removed debug logs
* fix: added a new error checking as Limit accepts uint and the function parameter accepts int
* fix: golangcilint error
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-09 11:13:31 +02:00
ctlaltdieliet
dfa476a688
Update en.json ( #17362 )
2021-04-08 11:48:00 +03:00
Max Erenberg
3ad80a2d0f
log invalid username ( #17345 )
...
Automatic Merge
2021-04-07 20:46:30 +02:00
Agniva De Sarker
5ff151c327
Bump no_output_timeout to 2 hours ( #17358 )
2021-04-07 21:45:51 +05:30
Ben Cooke
1c3712b344
adding new feature flag ( #17308 )
...
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-07 12:12:53 -04:00
Amy Blais
f5d599b728
Update en.json ( #17356 )
...
Automatic Merge
2021-04-07 16:16:30 +02:00
Jesús Espino
819e4c0c64
Improve document extraction and including a document extraction command ( #17183 )
...
* Add extract documents content command
* Adding the extraction command and making the pure go pdf library as secondary option
* Improving the memory usage and docextractor interface
* Enable content extraction by default in all the instances
* Tiny improvement on archive indexing
* Adding App interface generation and the opentracing layer
* Fixing linter errors
* Addressing PR review comments
* Addressing PR review comments
2021-04-07 13:27:20 +02:00
Ben Schumacher
75824257d5
Add missing wrapped errors ( #17339 )
2021-04-07 10:44:50 +02:00
Hossein
fef3158bab
fix broken test ( #17348 )
2021-04-06 16:55:20 -04:00
Hossein
daec0b3201
All Sections to SubSections ( #16917 )
...
* initial
* Revert "initial"
This reverts commit 3d631aeecd .
* [MM-32352] Add Experimental Subsections BACKEND (#16887 )
Automatic Merge
* update appiface
* Fix app layers
* Ancillary Permissions on backend (#17061 )
Automatic Merge
* [MM-32799] Add About Section (#17015 )
* Add About Section
* add mock key
* Update role.go
* Update role.go
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
* [MM-33437] Fix config access tags for experimental settings (#17111 )
Automatic Merge
* [MM-32794] Reporting Sub Section (#17035 )
* test
* revert
* add permissions
* add new permission stuff
* add store mock
* fix bad merge
* gofmt fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
* [MM-32343] Environment SubSection (#17054 )
* pre-checkout commit
* fix permission for testSiteURL
* pre-merge commit
* increase size of Permissions column in Roles table
* add entry for ENVIRONMENT to testlib/store.go
* use TEXT for Permissions column in Roles table
* use environment subsection permissions for API endpoints
* use subsections permissions for /config/environment
* add suggestions from hahmadia
* update tests to use subsection permissions
* add permissions column back in
* comment out code in upgradeDatabaseToVersion534
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
* MM-32351: Add Compliance Subsections (#17023 )
* add subsections for compliance sectin
* add to mock functions
* updates for read job
* fixes
* fix test
* update tests
* update tests
* another test fix
* some cleanup
* update mlog
* fix linting
* Fix bad merges
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Hossein <hahmadia@users.noreply.github.com >
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com >
* MM-32347 Site Subsections (#17095 )
* Init
* Added migration key in testlib store
* Fix syntax error
* fix bad merge
* fix lint
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
* MM-32350 Integrations (#17097 )
* implement server subsections
* fix tests
* update test
* go fmt
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com >
* patch forgotten endpoints
* Adding subsection permissions for Authentication (#17087 )
* adding new permissions, migrations to do
* permission migrations and ancilary permissions
* running make app-layers
* fixing tests and lint
* adding permissions to saml
* ldap write permissions
* running make app-layers
* fixing conflict
* making app layers
* clean up and fix tests
* change job type
* fix js error, if site url not returned
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
* Update permissions_migrations.go
* gofmt
* upgrade to 535
* gofmt
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Max Erenberg <max.erenberg@mattermost.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com >
Co-authored-by: Ben Cooke <benkcooke@gmail.com >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
2021-04-06 10:39:48 -04:00
Scott Bishel
2cb82965b0
MM-33905 -always add FeatureFlags to config ( #17163 )
...
* always add FeatureFlags to config
* update const to TitleCase
* gofmt
* update method to use 'access:all'
* update method to use 'access:all'
* fix lint
* gofmt
* added comments
* update name of access tag for any
* fix bad save
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-06 10:39:36 -04:00
Allan Guwatudde
ec5f099313
[MM-34240]-Cloud: Congratulations welcome email missing images ( #17338 )
2021-04-06 10:13:14 -04:00
Weblate (bot)
d2e269edd2
Translations update from Weblate ( #17334 )
...
* Translated using Weblate (Russian)
Currently translated at 100.0% (2299 of 2299 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
Translated using Weblate (Russian)
Currently translated at 97.8% (2249 of 2299 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (2194 of 2194 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
Translated using Weblate (Russian)
Currently translated at 100.0% (2192 of 2192 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (2194 of 2194 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 99.7% (2188 of 2194 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/zh_Hans/
* Translated using Weblate (French)
Currently translated at 85.1% (1869 of 2194 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/fr/
* Translated using Weblate (Russian)
Currently translated at 100.0% (2194 of 2194 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
* Translated using Weblate (Dutch)
Currently translated at 95.6% (2198 of 2299 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
Translated using Weblate (Dutch)
Currently translated at 100.0% (2194 of 2194 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
* Translated using Weblate (Russian)
Currently translated at 100.0% (2299 of 2299 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
Co-authored-by: Edward Smirnov <ed@microolap.com >
Co-authored-by: Kaya Zeren <kayazeren@gmail.com >
Co-authored-by: aeomin <lin@aeomin.net >
Co-authored-by: Pierre JENICOT <pierre.jenicot@ac-lille.fr >
Co-authored-by: jesus.espino <jesus@mattermost.com >
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be >
Co-authored-by: Elisabeth Kulzer <elisabeth.kulzer@mattermost.com >
2021-04-06 11:28:55 +02:00
Eli Yukelzon
7573efe039
merge fix ( #17337 )
2021-04-06 11:27:09 +03:00
Haardik Dharma
343c51830f
Fix initialism errors (PR-2) ( #17032 )
...
* Fix initialism errors
* Fix check-mocks test
* Revert mlog and filestore packages
* Update plugin_hooks_test.go
* Update opentracinglayer.go
* Regenerate mocks and check store layers
* Revert plugin's context changes
* Update context.go
* Update plugin_requests.go
* Update plugin_hooks_test.go
* Regenerate mocks
* Regenerate mocks and store layers
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-03 12:43:22 +05:30
Agniva De Sarker
db01f2a91b
MM-34002: Improve AddUserToChannel ( #17174 )
...
* MM-34002: Improve AddUserToChannel
When we would add a user to a channel, we would
check whether the user is removed from that team or not.
During LDAP sync, this check is not required because the
team member would have just been created. Hence, we
pass a boolean flag to bypass the check.
And with that done, we can freely query the replica.
https://mattermost.atlassian.net/browse/MM-34002
```release-note
NONE
```
* Refactor code
* Rename a struct field
* fix double negative
2021-04-02 14:33:23 +05:30
Agniva De Sarker
4f0cfbe329
MM-33913: Fix read-after-write issues with team member ( #17173 )
...
During LDAP sync, we would call AddTeamMember which had a read-after-write issue
where we would create a team member but then immediately after that
query the team member.
The same pattern was found in:
AddTeamMember
AddTeamMembers
AddTeamMemberByToken
To fix this, we just return the inserted team member from AddUserToTeam and use that
instead of query GetTeamMember again.
```release-note
NONE
```
https://mattermost.atlassian.net/browse/MM-33913
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-02 13:20:58 +05:30
Doug Lauder
02196e04fa
MM-27493 Shared channels (MVP) ( #17301 )
...
Remote Cluster Service
- provides ability for multiple Mattermost cluster instances to create a trusted connection with each other and exchange messages
- trusted connections are managed via slash commands (for now)
- facilitates features requiring inter-cluster communication, such as Shared Channels
Shared Channels Service
- provides ability to shared channels between one or more Mattermost cluster instances (using trusted connection)
- sharing/unsharing of channels is managed via slash commands (for now)
2021-04-01 13:44:56 -04:00
Ibrahim Serdar Acikgoz
ff980266ac
app/server: make sure if metrics server goroutine executed ( #17323 )
2021-04-01 20:05:24 +03:00
Ibrahim Serdar Acikgoz
9897d4651a
[MM-34557] commands/server_test: add skip ( #17321 )
...
* commands/server_test: disable plugins for test (was causing a data race)
* add skip app init
* skip tests
* add skip linter
2021-04-01 18:17:33 +03:00
Eli Yukelzon
480796a1df
MM-33708 - Add MentionCountRoot column to ChannelMembers ( #17099 )
...
* added new column for root-only mentions
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-01 14:43:09 +03:00
Eli Yukelzon
3c21eef110
MM-33746 hotfix ( #17320 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-01 13:56:39 +03:00
Agniva De Sarker
5215be51be
MM-34487: Add dead queue ( #17307 )
...
* MM-34487: Add dead queue
Just a circular buffer to store dead messages for now.
Not controlling this via config flag because this does
not have any effect except taking some more memory
per connection
```release-note
NONE
```
https://mattermost.atlassian.net/browse/MM-34487
* Wrap with config
* fix test
2021-04-01 15:31:19 +05:30
Ibrahim Serdar Acikgoz
e13d85d8c7
[MM-34179] app: move cluster registeration to server creation ( #17306 )
...
* app: move cluster registeration to server creation
* initserver via fakeapp
* reflect review comments
2021-04-01 11:29:56 +03:00
Agniva De Sarker
756f5fbff3
MM-34086: Fix flaky test StartServerTLSOverwriteCipher ( #17303 )
...
* MM-34086: Fix flaky test StartServerTLSOverwriteCipher
This suffered from the same race condition as
https://github.com/mattermost/mattermost-server/pull/17215 .
We apply the same approach of using a memstore instead
of a file based config store.
It is likely that the test was also failing because of
the same race. Although I don't obviously see how, because
the race happens with mlog.Info. The test will fail only
if the config wasn't able to set properly. So although
not strictly related, it's somehow related.
If it fails again, we can look into it again. But this
atleast fixes the race.
While here, we also apply some cleanup of the code.
https://mattermost.atlassian.net/browse/MM-34086
```release-note
NONE
```
* Remove race test
2021-04-01 00:33:49 +05:30
Allan Guwatudde
489eaa4605
[MM-32639] - Resend user invite emails ( #17113 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-03-31 13:20:53 -04:00
Eli Yukelzon
ab5925c4de
MM-33746 Add TotalMsgCountRoot and MsgCountRoot columns ( #17150 )
2021-03-31 16:51:02 +03:00
Claudio Costa
ee3f986da0
[MM-32622] Remove app.WaitForChannelMembership() ( #17048 )
...
* Remove app.WaitForChannelMembership
* Fix tests
* Fix test
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-03-31 09:40:35 +02:00