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

389 Коммитов

Автор SHA1 Сообщение Дата
Miguel de la Cruz
30cb527cf6 Forbid users from creating DMs and GMs with remote users (#28855)
* Forbid users from creating DMs and GMs with remote users

This change prevents the application from creating new DMs and GMs
when remote users are involved, and prevents as well new posts from
being created into preexisting DMs and GMs with remote users created
in previous versions.

* Adds i18n

* Skip preexisting DM tests and create a new one for the new behavior
2024-10-18 11:16:29 -06:00
Miguel de la Cruz
b4d8b6239c Excludes remote channels from channel search (#28708)
* Excludes remote channels from channel search

This is done through a new body parameter in the SearchAllChannels
endpoint that allows to search for local only channels, which are
either channels that are shared but marked as homed locally, or
channels that are not shared at all.

* fix lint

* Fix tests

---------

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-10-18 07:41:24 -06:00
Caleb Roseland
fcded9559c MM-61032: Add default_team_id to accept invite flow (#28841)
* add default_team_id to accept invite api

* add team selector to accept invite flow UI

* e2e

* lint/i18n
2024-10-18 12:26:38 +02:00
Miguel de la Cruz
5a923e0b94 Updates the create remote cluster endpoint to require a default team id (#28709)
Support for RemoteClusters without a default team id is in place for
old servers that created those connections before v10.1. This change
forbids the creation of new RemoteClusters without providing this
field, and will be removed when manual invites are implemented.

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-10-18 12:22:27 +02:00
Arya Khochare
73fc99b577 errcheck issues fixed (#28646)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-17 15:22:01 +02:00
Elias Nahum
f8f998bfcb set update_at on bookmarks return when changing sort order (#28807)
* set update_at on bookmarks return when changing sort order

* update bookmarks sort order test
2024-10-17 07:42:19 +02:00
Rohan Sharma
df925a3e6b fix: Scheme test errcheck issues (#28553)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-16 16:30:09 -05:00
Pratham Mahajan
f1250eaadb Fix errcheck issues in server/channels/api4/export_test.go (#28815)
* Fix errcheck issues in server/channels/api4/export_test.go

* fixed lint errors

* fix
2024-10-16 17:33:56 +02:00
TheInvincible
9726eedbe2 Update license.go (handled error) (#28410)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-16 09:45:41 +02:00
Arya Khochare
b0cdc51aa4 errcheck issues fixed (#28572)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-15 12:46:06 +02:00
Matthew Straughn
bc934007dc Update message when password does not match requirement (#28178)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-10-15 10:31:01 +02:00
Pradeep Murugesan
3f6bc5084b check errors in channels/api4/channel.go (#28376)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-15 10:30:12 +02:00
Rohan Sharma
e27867cec7 fix: status errcheck issues (#28540)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-15 08:52:03 +02:00
TheInvincible
dfa29c2b59 fix errcheck issue (#28618)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-14 13:33:50 +02:00
Arya Khochare
b7ccd745c8 Fixed errcheck issues in server/channels/api4/oauth_test.go (#28645)
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2024-10-14 12:29:37 +02:00
Rohan Sharma
abf60421b4 fix: role test errcheck issues (#28545)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-14 09:55:34 +02:00
Arya Khochare
d6343832d9 errcheck issues fixed (#28643) 2024-10-11 18:26:40 +02:00
k srisri reddy
bafe37d4b2 MM-60926: updated system_test.go to pass linter (#28691) 2024-10-11 16:18:19 +02:00
Arya Khochare
dd6546bd5e errcheck issues fixed (#28693) 2024-10-11 16:16:46 +02:00
Pablo Vélez
6cafd45fc9 MM 57516 - deactivate actions to ldap users (#28199)
* MM-57516 - restrict activation/deactivation over ldap users

* Add unit tests

* refactor test to unify repeated actions

* add disable actions in user details too

* migrate test to use react-testing-library

* add new ldap user test and fix other existing tests

* restrict ldap users status management via api

* use correct server status and update tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-09 18:59:53 +02:00
Arya Khochare
ac38f5f751 Errcheck issues fixed in server/channels/api4/brand.go (#28362)
* errcheck proper error handling

* write response err check log

* resolving conflicts and io.Copy error handling
2024-10-09 18:43:34 +02:00
Rohan Sharma
e41ab1a3b8 fix: plugin errcheck issues (#28517)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 14:56:22 +02:00
Caleb Roseland
0f200adbe0 MM-58349: Shared Channels in System Console (#28116)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2024-10-09 07:53:19 -05:00
Rohan Sharma
02e6851603 fix: status test errcheck issues (#28541)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-09 14:51:19 +02:00
Arya Khochare
90ceb4a5e3 Fixed errcheck issues in server/channels/api4/usage_test.go (#28644)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 13:28:36 +02:00
TheInvincible
b49d86c24d fix errcheck issue (#28548)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 13:27:39 +02:00
Rohan Sharma
65bb1a3427 fix: plugin test errcheck issues (#28531)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-09 12:26:23 +02:00
Rohan Sharma
68404f2f33 fix: scheme errcheck issues (#28543) 2024-10-09 11:58:16 +02:00
Arya Khochare
d1962e123e [MM-60932] Fix errcheck issues in server/channels/api4/usage.go (#28641) 2024-10-09 11:53:25 +02:00
Johnson
33af22b2d3 Integration action test (#28561)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 15:41:01 +00:00
Miguel de la Cruz
3466e6f5d8 Avoid using token from sanitized remote cluster (#28335)
After creating a remote cluster, we were using its token field to
generate the remote invite. As we're going to return that remote
cluster in the response, we sanitize the entity, emptying the token
field before generating the invite, and causing it not to contain the
token itself.

This changes store the token in an independent variable to avoid
mutating it as part of the sanitization.

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-08 16:49:33 +02:00
Ben Cooke
b3c7ef0b97 [MM-56073] MMCTL delete post command (#27539)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 16:45:31 +02:00
TheInvincible
a671f80d2c Fix errcheck issue for saml.go file (#28546)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 14:13:59 +00:00
Rohan Sharma
2b723099a6 fix: shared channel test errcheck issues (#28551)
* fix: shared channel test errcheck issues
2024-10-08 09:45:43 -04:00
Arya Khochare
f0918e1c01 errcheck issues fixed (#28609) 2024-10-08 12:23:08 +02:00
Diamond Rivero
71d98443c3 Fix Errcheck issues in server/channels/api4/export.go (#28407)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 10:47:17 +02:00
Arya Khochare
ba02101bcf Fixed errcheck issues in server/channels/api4/group_local.go (#28417)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 10:47:01 +02:00
Rohan Sharma
9d6adbfea2 fix: role errcheck issues (#28544)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-08 10:46:22 +02:00
TheInvincible
1d431e72ac Update emoji_test.go (fix errcheck issue) (#28440)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-08 09:31:26 +02:00
Rohan Sharma
845159d501 fix: reaction errcheck issues (#28513) 2024-10-08 09:25:34 +02:00
Rohan Sharma
1f3eab8adb fix: team errcheck issues (#28550) 2024-10-08 09:23:53 +02:00
Arya Khochare
1669a0869f errcheck issues fixed (#28555) 2024-10-07 21:20:18 +02:00
Arya Khochare
6837b31fb1 errcheck issues fixed (#28556) 2024-10-07 21:18:20 +02:00
Arya Khochare
82929d86ab Errcheck issues fixed (#28409)
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2024-10-07 21:17:21 +02:00
CarlssonFilip
b8b3f9b012 [GH-28396] Fixed errcheck issues in server/channels/api4/ip_filtering.go (#28441)
* Fixed errcheck issues in server/channels/api4/ip_filtering.go

* Added separate go routine to SendIPFiltersChangedEmail and removed redundant return

* Added import for mlog

* Changed from returning error to logging it

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-07 21:03:12 +02:00
Rohan Sharma
7af408679e Fix: emoji errcheck issues (#28437)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-07 21:02:16 +02:00
Rohan Sharma
9e0d629ab1 fix: team local errcheck issues (#28538)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-07 21:01:13 +02:00
Arya Khochare
9b6d2be129 Errcheck issues fixed (#28345) 2024-10-07 16:49:27 +02:00
Rohan Sharma
a2acee5280 fix: system errcheck issues (#28537)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-07 13:37:46 +00:00
Rohan Sharma
2b7b4100d2 fix: system local errcheck issues (#28539)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-07 11:39:06 +00:00