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

1522 Коммитов

Автор SHA1 Сообщение Дата
Harshit Vashisht
fd70b0a0cd Fixes errcheck in helper_test.go (#28909) 2024-10-29 16:16:58 +01:00
fume4mattermost
a44b604752 [MM-56032] Add tests for data_retention endpoints (#28283)
Co-authored-by: Fume <contact@fumedev.com>
2024-10-29 16:04:56 +01:00
Arya Khochare
e0e5dbd36e Prevent HEAD requests to a sub-path from infinite redirects (#28285)
* adding test

```release-note
NONE
```

---------

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-29 19:57:20 +05:30
Ben Schumacher
2424358b7d [MM-61302] Use model.NewPointer throughout the code base (#28957) 2024-10-29 13:29:53 +01:00
Domendra Singh Komra
7803c10785 Fix errcheck issues in server/channels/jobs/batch_report_worker.go (#28864)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-29 10:50:54 +01:00
Matthew Straughn
71bf7777f5 fixed most init errors in channels/store/storetest dir | 24 files edited (#26522)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
2024-10-29 10:50:38 +01:00
Ranjana761
5dba6e082d Fix errcheck issues in server/channels/web/web.go (#28911) 2024-10-29 08:45:40 +01:00
Samarth Mishra
c7e182013f Fix errcheck issues in server/channels/app/imaging/utils_test.go (#28960) 2024-10-29 08:37:32 +01:00
Claudio Costa
b4f337f191 [MM-60886] Fix TypeAssertionError in api4.addChannelMember (#28976)
* Fix TypeAssertionError in api4.addChannelMember

* Fix
2024-10-28 12:52:23 -06:00
Carrie Warner (Mattermost)
4f88eabfba String update for clarity (#28968) 2024-10-28 14:35:00 -04:00
Weblate (bot)
f9bd093649 Translations update from Mattermost Weblate (#28989)
Automatic Merge
2024-10-28 15:47:11 +01:00
Guillermo Vayá
a532b70317 [MM-59361] custom groups & read only channels (#28892)
* added group mention, read only view and post event tracking

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-28 13:41:29 +01:00
Amy Blais
c64215f6c2 Updated minimum supported Edge and Chrome versions (#28975)
Automatic Merge
2024-10-28 13:17:12 +01:00
Agniva De Sarker
21c6b246f0 MM-61225: Remove incorrect test (#28954)
This test actually tested that there is no race
_if_ session pooling is there. But there is no session pooling
any more so this test is irrelevant.

https://mattermost.atlassian.net/browse/MM-61225

```release-note
NONE
```
2024-10-25 21:53:03 +05:30
Dishika Vaishkiyar
4f5a389185 Fix: bot_test errcheck issue (#28822)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-25 13:31:03 +02:00
Ibrahim Serdar Acikgoz
64b30abbce [MM-51487] allow uppercase team/channel names for import (#28906) 2024-10-25 09:44:13 +00:00
Miguel de la Cruz
98d341fbae Return an error if an invite for a confirmed remote cluster is received (#28943)
Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-10-25 11:30:29 +02:00
RuhiJain
49be26ebc4 Fix errcheck issues in server/channels/web/response_writer_wrapper_te… (#28902) 2024-10-25 11:26:08 +02:00
shraddha761
ca84f9a0b9 Fix errcheck issues in server/channels/utils/fileutils/fileutils_test.go (#28919) 2024-10-25 09:38:51 +02:00
Arya Khochare
323e330932 Fixed errcheck issues in server/channels/app/group_test.go (#28938) 2024-10-25 09:36:58 +02:00
Arya Khochare
fbdf3cbd14 Fixed errcheck issues in server/channels/api4/license_local.go (#28558)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-24 19:53:48 +02:00
Miguel de la Cruz
cb03009992 Adds a feature flag to control availability of DMs in shared channels (#28920)
* Adds a feature flag to control availability of DMs in shared channels

* Reverse feature flag wording
2024-10-24 19:38:00 +02:00
Agniva De Sarker
6075b1cd4e MM-61225: Revert session pooling (#28901)
This originated from https://github.com/mattermost/mattermost/issues/15249.

However, the original idea was discarded https://github.com/mattermost/mattermost/issues/15249#issuecomment-709713065
as being too complicated to implement. Then I had another
idea to implement it just for session objects.

My thinking was that since every single request allocates a new
session struct, it would be good to use a sync.Pool for that.

However, 4 years later, now we know that the primary bottleneck
in app performance comes from websocket event marshalling.
Therefore, while it would be good to do this, it is difficult
to do it correctly (as shown by the numerous racy tests).

Hence, reverting this.

```release-note
NONE
```
2024-10-24 22:50:44 +05:30
Ibrahim Serdar Acikgoz
a8cf496e31 [MM-61213] Limit file size for slack import file uploads (#28904) 2024-10-24 19:06:14 +02:00
Scott Bishel
108efac918 Revert "MM-54502 - Update regex to force first character to be alpha … (#28860)
* Revert "MM-54502 - Update regex to force first character to be alpha (#24675)"

This reverts commit 08ed72f060.

* update tests for reverted PR

* Revert "update tests for reverted PR"

This reverts commit c1cf5495fa129008e44a8fcdc0ee34762b33dd34.

* Revert "Revert "MM-54502 - Update regex to force first character to be alpha (#24675)""

This reverts commit 6920b979c8dba86a837bafff7c057dc609c6aa58.

* only revert important parts, not tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-24 07:56:58 -06:00
Ben Schumacher
707144d358 [MM-61132] Fix example for mmctl permissions role show command (#28816) 2024-10-24 14:03:21 +02:00
Rohan Sharma
ebb0178c13 [MM-61103] Fix errcheck issues in server/channels/app/channel_category_test.go (#28790)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-10-24 13:58:01 +02:00
Domendra Singh Komra
834d94ab39 Fix errcheck issues in server/channels/jobs/batch_migration_worker.go (#28832) 2024-10-24 12:14:23 +02:00
fume4mattermost
48c42fc588 [MM-56035] Added missing unit tests for user endpoints (#28237)
Automatic Merge
2024-10-24 00:47:11 +02:00
Johnson
131064596d fix errcheck issues (#28560)
* fix errcheck issues

* fix errcheck

* fix errcheck issues

* fix errcheck

* fix errcheck
2024-10-23 04:30:56 -07:00
Devin Binnie
0c90b0363b [MM-60609][MM-60612] Include Desktop App metrics in PerformanceReporter, add metrics in Prometheus for CPU/Memory usage (#28825)
* [MM-60609][MM-60612] Include Desktop App metrics in PerformanceReporter, add metrics in Prometheus for CPU/Memory usage

* Fix mocks

* PR feedback
2024-10-22 12:16:20 -04:00
Daniel Espino García
2d96053012 Use flags for create post (#28857)
* Use flags for create post

* Remove unintended file

* Fix unintended change and types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-22 16:00:26 +02:00
Vishal
cc5b3a2f69 [MM-37585] (#28634)
* add tests

* pass userID to the function instead of the user object.

* remove concurrent login simulation

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-22 12:21:36 +05:30
Weblate (bot)
9d23695b7c Translations update from Mattermost Weblate (#28880)
Automatic Merge
2024-10-21 17:44:32 +02:00
Agniva De Sarker
64677dd554 MM-42810: Using websocket broadcast hook for permalink preview (#28627)
We use the newly introduced websocket broadcast hook system
to implement permalink preview efficiently. This is essentially
a re-do of https://github.com/mattermost/mattermost/pull/23812
using the new system.

https://mattermost.atlassian.net/browse/MM-42810
```release-note
NONE
```

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-21 09:35:32 +05:30
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
Mario Vitale
0a14eb3d45 E2E Tests: unify compose files, support Opensearch (#28716)
* Unify docker-compose files, support opensearch and redis
* Support cypress/playwright bools, MM_SERVICE_OVERRIDES input
* Remove unused directives from E2E tests
* [skip ci] Fix ES tests, PR messages
* [skip ci] Fix service pruning on server restart
* [skip ci] Make services overrides a CSV, better param descriptions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 16:51:24 +02: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
Mario Vitale
f06742c7e2 Fix image mirroring issues (#28849) 2024-10-18 13:32:39 +02: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
Scott Bishel
ad50357792 change Get() to use Master (#28842)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 12:19:43 +02:00
Mario Vitale
2e010837f0 Update mirrored images, build opensearch (#28835)
* Update mirrored images, build opensearch
2024-10-18 09:45:51 +02:00
TheInvincible
bfd1d49e06 Fix errcheck issue in subpath_test.go (#28791)
* Fix errcheck issue in subpath_test.go

* Fix govet error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-18 11:59:49 +05:30
Caleb Roseland
e6d6881917 MM-60980: Add RemoteClusterInvite.IsValid (#28624)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-10-17 20:37:11 -05: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
TheInvincible
0cb2475ea4 Fix errcheck issue in handlers.go (#28794) 2024-10-17 12:37:41 +02:00
Ben Schumacher
2c139a293b Add missing parenthesis in mmctl webhook list (#28778)
* Add missing parenthesis in mmctl webhook list

* Use generics in StoreResult
2024-10-17 07:45:10 +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
M-ZubairAhmed
48cde8c0bf [MM-60655] Issue in subpath hosting after changes in root.html (#28617) 2024-10-17 01:13:16 +00:00