Max Erenberg
9cd50a4e22
[MM-33853] remove CSV row limit in compliance monitoring ( #17185 )
2021-04-23 09:19:13 -04:00
Doug Lauder
ff657bfdef
sync profile images ( #17375 )
...
support for synchronizing user's profile image for shared channels.
2021-04-22 17:48:09 -04:00
Jesús Espino
7c7c4716e6
Improving doc extraction command ( #17482 )
...
Automatic Merge
2021-04-22 16:36:04 +02:00
Eli Yukelzon
8c453bbcca
MM-34895 CRT: Replying to a root post with an at-mention triggers an unread mention ( #17474 )
...
* don't count your own replies as unread
* corrected totalUnreadThreads query
2021-04-22 16:30:43 +03:00
Allan Guwatudde
0b2c0832f1
[MM-33662] - Mock out CWS in enterprise code ( #17305 )
...
* [MM-33662] - Mock out CWS in enterprise code
* Feedback impl
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-22 15:25:56 +03:00
Ibrahim Serdar Acikgoz
5f9870ac06
[MM-34216] app/import: do not break import process if a dm channel is invalid ( #17391 )
...
* app/import: do not break import process if a dm channel is invalid
* update test headers
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-22 12:42:22 +03:00
darkLord19
f6505e1ee6
MM-31339: Send only one direct message reply within one calendar day. ( #17181 )
...
* don't send auto response if already responded today
* update query to get posts from channel for given user and Updatetime requires value in milli seconds
* regenerate mocks and layers
* update function to return true/false on existence of auto responded post in channel and add tests
* add store tests
* bubble up error and propagate upstream
* fix error handling logic
* use require instead of assert
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com >
* rename variable for better redability and logging fixes
* update comment explaining function
* use new function to generate test ids
* add comments to clarify NewTestId copies
* add translations for error id
* fix translation
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com >
2021-04-22 12:33:45 +08:00
Ben Schumacher
f14b0097dd
[MM-34798] Respect MM_SERVER_PATH when looking for templates ( #17410 )
2021-04-21 20:35:57 +02:00
Hossein
a1a8f00957
[MM-34838] Remove Ancillary Permissions That Are Purposefully Being Removed ( #17466 )
...
* remove ancillary permissions
* Start writing tests
* Move Ancillary Permissions to FrontEnd
* remove function
* remove test
* clean up
* fix comment
* Update api4/permission.go
Co-authored-by: Martin Kraft <martinkraft@gmail.com >
* Update api4/permission.go
* Update api4/permission.go
* license info
* Add Tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Martin Kraft <martinkraft@gmail.com >
2021-04-21 11:35:47 -04:00
Ibrahim Serdar Acikgoz
28ff4dc8d0
[MM-32281] SqlRoleStore/GetByName: add context to allow read from master ( #17176 )
...
* role_store/GetByName: add context
* propagate context in the app layer
* propagate context in the app layer
* add missing import
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-21 18:01:02 +03:00
Chetanya Kandhari
9eceeaa8db
Custom status fixes ( #17122 )
...
* Changed the request type to POST for the remove recent custom status API
Fixed the custom status clear slash command
* Added Delete method in the remove recent custom status endpoint
* Added one new endpoint to remove recent custom status with POST method
* Added comments for the recent custom status API
Co-authored-by: Manoj <manoj@brightscout.com >
Co-authored-by: Chetanya Kandhari <availchet@gmail.com >
Co-authored-by: Manoj <77336594+manojosh@users.noreply.github.com >
2021-04-21 11:37:17 +03:00
Jesús Espino
bf542ec12f
Fix performance problem on document extraction ( #17470 )
2021-04-21 10:29:52 +02:00
Eli Yukelzon
dd9a1918e1
MM-34872 CRT: thread last_viewed_at updated when channel is viewed ( #17448 )
2021-04-21 09:48:59 +03:00
Eli Yukelzon
56198a99c6
MM-34871 CRT: Participants of thread include non-replying followers (and past followers) ( #17447 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-21 09:48:30 +03:00
Agniva De Sarker
321645696d
MM-31717: Remove HTTP clustering ( #17409 )
...
* MM-31717: Remove HTTP clustering
https://mattermost.atlassian.net/browse/MM-31717
```release-note
Gossip clustering mode is now GA and is no longer
available as a choice now. All cluster traffic will always
use the gossip protocol.
The config setting UseExperimentalGossip has no effect
and has only been kept for compatibility purposes.
The setting to use gossip has been removed from admin console.
Upgrade note:
If an existing system is not using gossip, then one cannot
upgrade one node in a cluster and keep the other one to the older
version, if an HA upgrade is intended. All nodes
in the cluster must use a single protocol.
Either the customer must use gossip if they want to do an HA
upgrade. Or, shut down all nodes and bring up all of them
after doing an upgrade.
```
* Trigger CI
* update translations
2021-04-21 10:33:31 +05:30
Max Erenberg
f36f5c74b1
Mm 30807 granular data retention scaffold ( #17464 )
2021-04-20 13:16:40 -04:00
Jesús Espino
368b642105
Fixing problem with read-replica on indexing files ( #17460 )
2021-04-20 12:30:43 +02:00
Agniva De Sarker
4295a1f556
MM-34125: Remove WebSocketDelay feature flag ( #17441 )
...
It has been soaked for enough time in community-daily
and also in community. Enabling it for all.
```release-note
TCP_NO_DELAY is disabled for websocket connections
to allow for higher throughput
```
https://mattermost.atlassian.net/browse/MM-34125
2021-04-20 10:10:22 +05:30
Harshil Sharma
a16fdb5001
#MM-34893 Completely disabled Admin Advisor ( #17422 )
...
* #MM-34893 Completely disabled Admin Advisor
* #MM-34893 added lint fixes
2021-04-20 05:43:01 +05:30
Claudio Costa
3984381011
[MM-13799] Avoid queries timing out during upgrade ( #17444 )
...
* Avoid timing out during upgrade
* Update gorp dep
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-19 20:34:21 +02:00
Hossein
93c8c6e9d8
Remove the Remove System Permissions ( #17401 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-19 12:44:14 -04:00
Jesús Espino
d2ed053b6b
Add doc extraction dependencies ( #17403 )
...
Automatic Merge
2021-04-19 18:06:05 +02:00
Agniva De Sarker
0e0f3f8c2e
MM-34983: Remove check for number of data sources ( #17431 )
...
In case of Aurora databases, a single endpoint
might load balance between multiple replicas.
In that case, this check is incorrect. Therefore,
we remove it
https://mattermost.atlassian.net/browse/MM-34983
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-04-19 20:30:17 +05:30
John Tzikas
9f203bbc96
Hotfix add multistatements param on mysql url ( #17428 )
...
Automatic Merge
2021-04-19 14:36:04 +02:00
Ben Schumacher
730dc6b985
[MM-34919] Use Mattermost-Plugin-ID header to pass ID in inter-plugin requests ( #17418 )
2021-04-19 14:02:00 +02:00
Claudio Costa
4bd6f4942f
Fix 5.32 migration ( #17415 )
2021-04-19 11:40:03 +02:00
Weblate (bot)
b55cddba37
Translations update from Weblate ( #17439 )
...
* 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/
* Translated using Weblate (Swedish)
Currently translated at 100.0% (2309 of 2309 strings)
Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
* 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/
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se >
2021-04-19 11:33:07 +02:00
Eli Yukelzon
b0d8ea5853
MM-34792 test shouldn't depend on upgrade sequence ( #17425 )
2021-04-19 09:10:31 +03:00
Agniva De Sarker
e0efdd708b
Revert "Mm 30807 granular data retention scaffold ( #16891 )" ( #17437 )
...
This reverts commit 3ea75332e7 .
2021-04-18 22:41:50 +05:30
Ibrahim Serdar Acikgoz
3a13987ee1
[MM-34725] app/user: check if username or email is in use before patching a user ( #17392 )
...
* app/user: check if username or email is in use before patching a user
* reflect review comments
* fix tests
2021-04-16 23:41:32 +08:00
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