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

19135 Коммитов

Автор SHA1 Сообщение Дата
Ibrahim Serdar Acikgoz
02dfc2d205 [MM-60510] .github/workflows: add a sync workflow for migration-assist (#28166) 2024-09-18 14:40:26 +02:00
Elias Nahum
bbc281d807 Add MobileExternalBrowser to client config (#28180)
* Add MobileExternalBrowser to client config

* set config MobileExternalBrowser as a pointer

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-18 19:50:07 +08:00
Miguel de la Cruz
7a0019b63a Allow shared channel remotes endpoint to be filtered by confirmation status (#28213)
* Allow shared channel remotes endpoint to be filtered by confirmation status

* Adds tests
2024-09-18 13:36:43 +02:00
goooov
70cb1934e9 [MM-55296] Added warning in Workspace dashboard if Mattermost is running as root (#27999)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-09-18 11:51:50 +02:00
Scott Bishel
c12e6d9e9c MM-60240 Sanitize Channels based on user permissions (#28086)
* initial commit

* add unit tests

* update tests, self review

* update tests to verify something returned.

* update app-layer

* update unit tests

* fix tests

* add check for PermissionSysconsoleReadComplianceDataRetentionPolicy

* revert package-lock

* review suggestions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-17 15:19:03 -06:00
Caleb Roseland
d99961f106 Channel Bookmarks: adds enable, reordering, and other fixes (MM-56286, MM-59807, MM-59808, MM-60031, MM-59872) (#28098)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-17 11:50:34 -05:00
Ibrahim Serdar Acikgoz
075681a412 [MM-59359] imports/import_validators.go: add openid to auth_service validation (#28082) 2024-09-17 07:13:54 +02:00
Agniva De Sarker
f18323980f MM-60413: Fix issues due to incorrect cache provider (#28181)
We were using a mock cache provider which mixed up LRU caches
with each other. This led to incorrect unmarshalling method calls.

We fix this by using the real cache provider.

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

```release-note
NONE
```
2024-09-17 09:37:54 +05:30
Julien Tant
1909206e16 [MM-59069] Make sure OTP are actual One Time Password (#28074)
Automatic Merge
2024-09-17 00:44:32 +02:00
Alejandro García Montoro
d1ecea4c84 Update /api/v4/cluster/status docs (#28189)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-16 17:51:51 +02:00
Scott Bishel
d1960daa20 update icon color to system color (#28190) 2024-09-16 17:38:39 +02:00
Ibrahim Serdar Acikgoz
ba2bdba6bc server/Makefile: add metrics-plugin to the prepackaged plugins (#28134) 2024-09-16 16:44:12 +02:00
Weblate (bot)
35079452c8 Translations update from Mattermost Weblate (#28198)
Automatic Merge
2024-09-16 16:14:33 +02:00
Ibrahim Serdar Acikgoz
c7ae41b635 [MM-60278] app/config.go: add a nil check for a required field (#28064)
* app/config.go: add a nil check for a required field

* Apply suggestions from code review

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-16 15:24:01 +02:00
armmanvaillancourt
73b14b417e Improve E2E tests README for readability (#27884) 2024-09-16 15:02:46 +02:00
Vishal
3acceeefb2 quote names when using recent mention search (#28119) 2024-09-16 13:58:51 +05:30
Miguel de la Cruz
d2c69fbf95 Changes the event to send when a channel is shared or unshared (#28183)
* Changes the event to send when a channel is shared or unshared

Before we were sending the CHANNEL_CONVERTED websockets event, which
is intended to notify of a public channel being converted into a
private one, so the interface was showing the channel as private until
the client was refreshed.

Now a full channel update event is sent when the channel is shared or
unshared, so the interface gets the new information correctly.

* Fix message type on command tests
2024-09-13 21:40:02 +00:00
Miguel de la Cruz
cae456de2d Adds includeDeleted flag to get remote cluster app and store methods (#28182) 2024-09-13 23:08:53 +02:00
Scott Bishel
46ca7747f8 set object to accept function, prevent javascript error (#28192) 2024-09-13 14:21:56 -06:00
TheInvincible
190d4c48b4 MM-56994 Used false as default for useMilitaryTime (#28128)
* used false as default for useMilitaryTime

* added test for user time-format preference
2024-09-13 13:43:54 -04:00
Nick Misasi
6cece9faa6 Update download app link in Cloud welcome email (#28123) 2024-09-13 10:53:29 -04:00
Harshil Sharma
a0a6c48773 FIxed scrolling issue on drafts (#28187) 2024-09-13 19:22:04 +05:30
Miguel de la Cruz
f41d54b336 Allows invites to be sent to offline remotes (#28176)
* Allows invites to be sent to offline remotes

Invites sent to remotes marked as offline will be stored as pending,
and when the remote comes back online, it will process the invites as
part of the synchronization process.

* Update condition name for excluding confirmed invites
2024-09-13 10:54:51 +02:00
Miguel de la Cruz
d879927876 Skip racy subtest from TestUpdateChannelBookmarkSortOrder (#28155) 2024-09-13 14:51:19 +08:00
Miguel de la Cruz
d1ae710d45 Adds a ConnectedWorkspaces.MaxPostsPerSync configuration property (#28154)
* Adds a ConnectedWorkspaces.MaxPostsPerSync configuration property

* Fix linter
2024-09-12 20:40:44 +02:00
Scott Bishel
d1557271f1 Remove lock from shared channels indicator (#28132)
* remove lock from shared channels indicator

* remove import

* remove channelType

* remove channel type after merging

* update snapshot

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-12 11:26:27 -06:00
Ben Schumacher
70fe2abea6 [MM-57194] Allow plugins to mark setting fields as secret (#27986)
Co-authored-by: Claudio Costa <cstcld91@gmail.com>
2024-09-12 19:23:57 +02:00
Caleb Roseland
84a0c09d56 Content-Type fixes in client4.ts and remote_cluster.go (#27887)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2024-09-12 10:21:06 -05:00
enzowritescode
b94a11e591 Use Reusable SBOM Workflow (#28161)
* Use reusable SBOM workflow

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-12 08:12:11 -06:00
Miguel de la Cruz
f8202309ce Adds logical deletes to shared channel remotes and remote clusters (#28159)
* Adds logical deletes to shared channel remotes and remote clusters

Instead of physically deleting the shared channel remote and remote
clusters records when a channel is unshared, a remote uninvited or a
remote cluster is deleted, now those have a logical `DeleteAt` field
that is set.

This allows us to safely restore shared channels between two remote
clusters (as of now resetting the cursor without backfilling their
contents) and to know which connections were established in the past
and now are severed.

* Delete the index in remoteclusters before adding the new column

* Fix bad error check
2024-09-12 13:55:11 +02:00
Ivy Gesare
19733eef1e [MM-59811] Fix Incorrect "set custom status" Color (#27777)
* Change: Update color css property to a=0.75 in custom_status__container class

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-12 16:28:35 +05:30
Guillermo Vayá
41bca03270 MM-55208 allow search prefixes (#28146)
* Ignore at and tilde for username and channel searches.

* allow using tilde in search suggestions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-12 12:19:51 +02:00
Scott Bishel
5d8bf5f97b MM-58452-Update system console with shared indicator (#28131)
* update system console with shared indicator

* lint fixes, test fixes, i18 fixes

* minor tweeks

* Update webapp/channels/src/components/channel_members_rhs/member.tsx

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>

---------

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-09-11 15:11:15 -06:00
Scott Bishel
1d6eb20a71 MM-58451 Add/Update Shared Channel indicator locations (#28130)
* update shared channel sidebar

* implement for direct channels

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-11 15:10:46 -06:00
Daniel Espino García
af503d9d45 Ignore ack and notification counts if notifications are blocked by the device (#27570)
* Ignore performance counts if notifications are blocked by the device

* Change the endpoint to allow more information

* Add tests and API description

* Remove wrong test

* Address feedback

* Only update the cache when there is no error

* Follow same casing as other props

* use one single endpoint

* Fix tests

* Fix i18n

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-11 18:01:21 +02:00
Agniva De Sarker
b9debc75a0 MM-60478: Do not invalidate session cache on user added to channel (#28142)
PR: https://github.com/mattermost/mattermost/pull/27204 fixed the issue
where `invalidateWebConnSessionCacheForUser` was not broadcasted across
the cluster. However, we became too conservative and started to invalidate
the session cache as well.

But the session cache only contains the session details for the user
and the team membership. There is no channel membership related info.

Therefore, we avoid that and improve performance as well.

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

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-11 20:42:49 +05:30
Ben Schumacher
d9e47522a0 Remove unnecessary copies of loop variables (#28138) 2024-09-11 16:51:30 +02:00
Daniel Espino García
b6bd92f90e Fix mark as unread websocket (#28145)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-11 10:57:46 +02:00
Miguel de la Cruz
b898d13e55 Adds status sync to shared channels (#28020)
* Adds status sync to shared channels

To allow for status to be synced, this changes add a new type of
shared channel internal task. This task has its contents pre-fetched
and stored in the `existingMsg` property, and it is keyed with a user
ID besides a channel ID, so it doesn't conflict with channel-driven
synchronization tasks.

All status synchronizations are triggered from the app layer, so there
is no need of watching for new WebSocket events. Although right now
we're only syncing one user status per message, the changes account
for a list of statuses in case we want to batch them in the future.

The feature is gated by a configuration property and can be disabled
independently of the rest of Shared Channels if it's necessary. It is
backwards compatible as well, and should cause no problems with
servers running older Mattermost versions.

* Adds status sync error management and retry

* Adds DisableSharedChannelsStatusSync to the telemetry report

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-10 21:39:07 +00:00
Harrison Healey
c74f830b76 MM-60283 Add standard response and API docs to /client_perf API (#28124)
* MM-60283 Add standard response to /client_perf API

* Add API docs for /client_perf endpoint

* Fix invalid response schema
2024-09-10 21:11:05 +00:00
Miguel de la Cruz
d5e9aa9fb3 Adds ConnectedWorkspacesSettings configuration block (#27820)
* Adds ServerFederationSettings configuration block

The Server Federation related configuration properties were located in
the `ExperimentalSettings` config block. Now that the feature is going
to get out of beta, and foreseeing more configuration properties being
added to it, we're moving them to a block of its own.

If the properties were set in the old location, their values should be
carried over to the new ones. The old properties are left in place and
marked as deprecated not to cause issues with the model.

* Update System Console to include Server Federation section

* Remove system console section

* Move the configuration properties to ConnectedWorkspaces

* Add ConnectedWorkspacesSettings to the telemetry

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-10 22:33:00 +02:00
Scott Bishel
0c585bdac6 MM-59529 Set Channel/Team Admin permissions if All members get set (#28104)
* initial fix

* cleanup code

* move struct back

* fix unit test

* add unit tests

* add comments

* add manage_bookmark permissions

* revert package-lock.json

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-10 11:26:55 -06:00
Rajat Dabade
4d2342ab8c Update version for boards prepackaged plugin (#28050)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-10 15:25:10 +05:30
Rajat Dabade
27ad7e08b9 MM-60481 Skip test TestCreateChannelBookmark (#28144) 2024-09-10 14:42:41 +05:30
Saturnino Abril
eb560fff1e Upgrade Playwright's dependencies (#28125)
* upgrade playwright's dependencies

* fix test

* fix types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-10 14:54:10 +08:00
M-ZubairAhmed
c2df4e413e [MM-60284] Desktop app doesnt stop the initial loading indicator (#28056) 2024-09-09 20:15:14 -04:00
Weblate (bot)
d5e7a6cf1f Translations update from Mattermost Weblate (#28135)
Automatic Merge
2024-09-09 14:44:33 +02:00
Kunal Acharya
0c3c298253 MM-56819: Introduce --local mode in MMCTL to handle user preferences. (#26972) 2024-09-09 14:12:22 +02:00
daveseo901
388dfdfbca [MM-56792] Clarify large plugin upload error (#26271)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-09-09 14:00:25 +02:00
Ben Schumacher
f8c0035c82 [MM-58044] Enable errcheck linter for enterprise/ldap package (#27717) 2024-09-09 10:51:09 +02:00