Commit Graph

19308 Commits

Author SHA1 Message Date
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
Arya Khochare
d7a63b2a71
Code command whitespace fix (#28048) 2024-09-09 08:21:06 +02:00
Claudio Costa
70dc4888fd
Simplify thumbnail resizing logic to ensure target constraints are respected (#28012)
Automatic Merge
2024-09-06 21:44:32 +02:00
Harrison Healey
8c5f00da86
MM-60285 Add fresh label to channel and team switch metrics (#28100)
* Changed measureAndReport to take an object as parameters

* MM-60285 Add fresh label to channel and team switch metrics
2024-09-05 16:30:24 -04:00
Nick Misasi
8694b78cc8
[CLD-8304] Return 501 if not a cloud license accessing IP Filtering (#28093)
* Return 501 if not a cloud license accessing IP Filtering

* Changes for PR feedback
2024-09-05 14:28:51 -04:00
Miguel de la Cruz
98ef6b9ad8
Skip racy test TestPostReminder (#28089) 2024-09-05 18:09:07 +02:00
Agniva De Sarker
7086a8792a
MM-60387: Bump Go version to 1.22 (#28118)
https://mattermost.atlassian.net/browse/MM-60387
```release-note
updated Go version to 1.22
```
---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-05 19:29:29 +05:30
Daniel Espino García
92793928bc
Fix autofocus on load (#28090)
* Fix autofocus on load

* Address feedback

* Fix styles lint

* Revert unintended change

* fix tests

* Update text
2024-09-05 14:27:29 +02:00
M-ZubairAhmed
7232feecf7
[MM-59299] Investigate further breaking down chunks of components/node_modules for initial load (#27845) 2024-09-04 05:55:47 +00:00
Weblate (bot)
e104575505
Translations update from Mattermost Weblate (#28109)
Automatic Merge
2024-09-03 17:14:33 +02:00
unified-ci-app[bot]
fe7106cf36
Update latest minor version to 10.1.0 (#28114)
Automatic Merge
2024-09-03 15:14:33 +02:00
Ben Cooke
57450489e6
convert MessageExport query to squirrel (#28023)
Co-authored-by: Benjamin Cooke <ben@Benjamins-MacBook-Pro-2.local>
2024-09-03 11:36:14 +01:00
Doug Lauder
0e1b336c7e
Prepackage plugins mscalender and msteams meetings (#28105)
Automatic Merge
2024-09-02 15:14:32 +02:00
Angel Mendez
84f10a8773
Refactor/migrate/autocomplete database speabase specs to ts (#27837)
* refactor: migrate database/users_spec.js to ts

- migrate file autocomplete/database/users_spec.js to typescripts
- udpate system.d.ts data type adding type
for shouldHaveElasticsearchDisabled

* refactor: migrate users_in_channel_switcher_spec.js

- migrate file users_in_channel_switcher_spec to typescript
- fix issue with data type on file autocomplete/helpers.ts
function verifySuggestionAtChannelSwitcher
- fix issue with data type on file autocomplete/common_test.ts
function doTestQuickChannelSwitcher

* refactor: migrate users_in_message_input_box_spec to ts

- migrate file database/users_in_message_input_box_spec.js to typescript
- migrate file support/ui/suggestion_list.js to typescript and update
docs and type definitions
- update references to doTestPostextbox function
- update references to verifySuggestionAtPostTextbox function

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-02 18:48:40 +08:00
Rishikesh Solapure
073d4ff959
[MM-60079] Converted ./reducers/views/modals.test.tsx class component to functional component (#28033)
* fix: converted class component to functional component

* fix: resolved the eslint error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-02 10:50:48 +02:00
Matthew Birtch
eb5c746a24
MM-46697 Fix out of office alignment on user menu and update confirmation modal button text (#28040) 2024-08-31 09:18:53 +08:00
Devin Binnie
a2a54af338
[MM-59912] Update unread threads in team when threads are received (#28059) 2024-08-30 10:07:59 -04:00
Tihomir Nikolov
9801007b90
[MM-60073] Migrate /components/admin_console/custom_enable_disable_guest_accounts_setting.tsx from class to function component (#27963)
* chore: update to functional component

* chore: add test and fix text

* chore: remove redundant fn

* fix: comments from review

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-30 11:26:29 +02:00
Elias Nahum
d2a5b2e56c
Fix Channel Bookmarks flaky tests (#28016) 2024-08-30 07:33:24 +08:00
Daniel Espino García
422df51d77
Fix unfocussed react to last message (#28091)
Automatic Merge
2024-08-29 17:14:32 +02:00
Harrison Healey
e99d92dc66
MM-60241 Ensure RHS post list always fills available space (#28087)
Automatic Merge
2024-08-29 16:44:32 +02:00
M-ZubairAhmed
9f8bc4b171
[MM-60215] Webapp resize with announcement banner enabled will cause screen to blank out (#28065) 2024-08-29 13:39:00 +00:00
Ibrahim Serdar Acikgoz
6235f6cb77
[MM-60280] api4/license.go: add err check to JSON unmarshal (#28063) 2024-08-29 15:24:55 +02:00
Ibrahim Serdar Acikgoz
d5cc2eb2f6
[MM-59367] export: enable exporting thread followers for CRT (#27623) 2024-08-29 14:06:41 +02:00
Miguel de la Cruz
3dc0e63c03
Adds Shared Channel related API endpoints (#27436)
* Adds Shared Channel management API endpoints

New endpoints for the following routes are added:

- Get Shared Channel Remotes by Remote Cluster at `GET
/api/v4/remotecluster/{remote_id}/sharedchannelremotes`
- Invite Remote Cluster to Channel at `POST
/api/v4/remotecluster/{remote_id}/channels/invite`
- Uninvite Remote Cluster to Channel at `POST
/api/v4/remotecluster/{remote_id}/channels/uninvite`

These endpoints are planned to be used from the system console, and
gated through the `manage_secure_connections` permission.

* Adds i18n messages for API errors

* Fix pagination flaky test

* Fix linter

* Adds the posibility of filtering shared channel remotes by home

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-29 12:46:37 +02:00
Tasnim Tantawi
60ffd00d30
[MM-57719] Convert form_error.tsx to function component (#27914)
* solve conflicts

* update snapshots

* Fix types

* update snapshots
2024-08-28 11:03:41 +02:00
Daniel Espino García
5030e2cdb2
Fix Ctrl-up when changing the value on different inputs (#28062) 2024-08-28 10:58:51 +02:00
Ben Schumacher
5ff680d20d
[MM-60262] Respect config store option when creating platform service (#28038)
* Respect config store option when creating platform service

* Remove ConfigStore from ServiceConfig
2024-08-28 07:02:09 +02:00