Commit Graph

18948 Commits

Author SHA1 Message Date
Brandon Shen
35077ddd5d
[MM-59896] Migrate tooltips of 'components/channel_members_dropdown/channel_members_dropdown.tsx' to WithTooltip (#27806) 2024-08-07 08:26:33 +00:00
Angel Mendez
08e4215c23
[MM-59909] Migrate tooltips of 'components/user_group_popover/group_member_list/group_member_list.tsx' to WithTooltip (#27809) 2024-08-07 08:24:17 +00:00
Brandon Shen
7f35be584d
[MM-59906] Migrate tooltips of 'components/threading/global_threads/thread_item/thread_item.tsx' to WithTooltip (#27803) 2024-08-07 08:22:05 +00:00
Brandon Shen
24ae4a6d9e
[MM-59905] Migrate tooltips of 'components/threading/channel_threads/thread_footer/thread_footer.tsx' to WithTooltip (#27802) 2024-08-07 08:19:41 +00:00
Scott Bishel
5f8f1f8142
MM-58529 Fix for AdditionalValues in SystemConsole (#27614)
* Reimplement display Timelimit modal

* update permission_description, add unit tests

* Update permission_group.tsx

* update tests, remove logging

* Update permission_description.tsx

* fix issue with link opening new window

* Update permission_description.tsx

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-06 16:31:07 -06:00
Harrison Healey
2e004bb7bc
Remove unused post selectors (#27712)
* Remove makeGetPostIdsAroundPost and makeGetPostsAroundPost

* Remove formatPostInChannel and the one place it is unnecessarily used

* Remove makeGetPostsInChannel

* Update comment for getPostsInCurrentChannel
2024-08-06 20:03:47 +00:00
Harrison Healey
56c84df916
MM-59271 Add DataLoader classes and batch loading missing users and statuses (#27804)
* Change addUserIdsForStatusAndProfileFetchingPoll to only ever receive arrays of user IDs

* Remove bufferCounter in favour of measuring array length

* Split addUserIdsForStatusAndProfileFetchingPoll into two separate actions

* Slightly simplify getPendingStatusesById

* Add DataLoaderInterval and use in actions/status_profile_polling

* Add tests for IntervalDataLoader

* Start adding DelayedDataLoader

* Updated DelayedDataLoader to split requested data into batches and made addIdsToLoad not return a promise by default

* Modify getMissingProfilesForIds to use a DataLoader and attach DataLoaders to the store

* Add tests for getMissingProfilesByIds loading statuses

* Revert change that defined getMissingProfilesByIds in a closure

* Change getMissingProfilesByUsernames to also use a DelayedDataLoader and add tests

* Pass extra argument into mocked version of Thunk

* Rename DataLoader.addIdsToLoad to DataLoader.queueForLoading

* Rename things and address feedback
2024-08-06 15:39:10 -04:00
Rajat Dabade
e1f0c8ee57
[MM-59346] Add labels for channel header and purpose in RHS channel info view (#27775)
* MM-59346: show channel description header

* refactor: updated inlt using npm and styles

* channel description header persist
2024-08-06 19:47:54 +05:30
Devin Binnie
6ae03a098e
[MM-58492] Remove subsequent check for team permissions on open channels (#27827)
* [MM-58492] Remove subsequent check for team permissions on open channels

* Removed extra check for open channel for webhooks as well

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-06 08:56:25 -04:00
Rita Anene
e776aa8956
[MM-59901] Migrate tooltips of 'components/file_search_results/file_search_result_item.tsx' to WithTooltip (#27836) 2024-08-06 10:23:40 +00:00
Ivy Gesare
c3875d3fe7
[MM-59892] Migrate tooltips of 'components/app_bar/app_bar_binding.tsx' to WithTooltip (#27835) 2024-08-06 10:23:01 +00:00
Ivy Gesare
72e83560e2
[MM-59893] Migrate tooltips of 'components/app_bar/app_bar_marketplace.tsx' to WithTooltip (#27833) 2024-08-06 10:22:06 +00:00
Harshil Sharma
69a8b3df0f
Cleanup post embed for WebSocket payload (#27763)
* Cleanup post embed for WebSocket payload

* Removing post embeds in create post API

* Fixed a nil check:

* Removed a now-irrelavent test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-06 15:17:31 +05:30
Miguel de la Cruz
2be8f2f349
Allows remote users to change their username (#27839) 2024-08-06 09:48:58 +02:00
Ivy Gesare
9466b948ad
[MM-59894] Migrate tooltips of 'components/app_bar/app_bar_plugin_component.tsx' to WithTooltip (#27834) 2024-08-06 05:32:46 +00:00
Agniva De Sarker
540febd866
MM-56876: Redis: first introduction (#27752)
```release-note
NONE
```

---------

Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-06 09:28:41 +05:30
Agniva De Sarker
c3ed07e679
OSF: Used model.NewPointer everywhere (#27838)
```release-note
NONE
```
2024-08-06 09:15:00 +05:30
Claudio Costa
f290745496
Fully deprecate /api/v4/image endpoint when image proxy is disabled (#27595)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-05 12:33:09 +02:00
Ben Schumacher
1158e6358c
[MM-54593] HA aware Support Packet (#27598) 2024-08-03 16:11:13 +02:00
Harrison Healey
3f4b8e8137
MM-59276 Don't update channel stats state unnecessarily (#27805) 2024-08-02 11:16:58 -04:00
Domenico Rizzo
bb78de5b7f
[MM-50087] Refactored channel saving logic in case of duplicate (#27542)
* Refactored channel saving logic

The code for saving channels has been refactored handling different database drivers. The query string is now dynamically generated based on the driver in use. Additionally, error handling has been improved to account for cases where no rows are affected by the insert operation. Because a conflict should be detected due to the complex flow under the call of the function.

* Refactor variable name and error handling in channel store

The variable 'q' has been renamed to 'insert' for better readability. Error handling after executing the insert statement has been improved by checking for errors immediately after execution, rather than waiting until rows affected are checked. This provides a more immediate response to potential issues during the insert operation.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-02 20:35:21 +05:30
Michael
f7ef0ffbc5
[MM-27420] Add enlarged emojis to tooltips for custom statuses (#27478) 2024-08-02 06:34:35 +00:00
Harrison Healey
6956923b6a
Various improvements to preferences code (#27710)
* Add isPostFlagged selector

* Remove unused code for actions_menu preferences

* Improve types of Preference and getPreference

* MM-58111 Change makeGetCategory to take category name once

* Use shouldShowJoinLeaveMessages everywhere

* Change makeGetCategory to better memoize its result

* Fix test that needs EnableJoinLeaveMessageByDefault to be set

* Remove more references to action_menu preferences
2024-08-01 22:53:30 +00:00
Agniva De Sarker
28939d84da
MM-59283: Minor improvement in getClientConfig (#27825)
Overall, there is no bug here. But opportunities for
improvement.
- Used the maps.Clone function.
- Handled the error while writing to the network.

https://mattermost.atlassian.net/browse/MM-59283
```release-note
NONE
```
2024-08-01 21:09:58 +05:30
Ashish Dhama
50ebf8cc13
MM-57411: Change RHS scroll direction and fix advanced text editor to the bottom (#27162)
Automatic Merge
2024-08-01 16:27:53 +03:00
Claudio Costa
453eabb54a
Fully deprecate CallsEnabled feature flag (#27826)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-08-01 07:41:46 +00:00
kalil0321
499977d0f0
[MM-57521] Profile button on hover shouldn't be red (#27005)
* Remove profile__icon onHover style in status__dropdown.scss

* Remove profile__icon class in status__dropdown.tsx for AccountOutlineIcon

* Update status_dropdown snapshot test

* Remove trailing space in status_dropdown snapshot test for AccountOutlineIcon

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-31 16:48:17 -04:00
Jesse Hallam
295c8c277b
Pre-package MS Teams v2.0 (#27708)
* Pre-package MS Teams v2.0.0

* bump to v2.0.1

* add MS Teams plugin to known list for tracking telemetry

* bump to v2.0.2
2024-07-31 16:18:09 -03:00
Daniel Espino García
2b12a311d7
Fix edit last message (#27739)
Automatic Merge
2024-07-31 21:27:51 +03:00
Jesse Hallam
19bf864f04
update missed model.NewUsername() for app.TestZippedImportPostAndRepliesWithAttachments (#27829) 2024-07-31 17:52:42 +00:00
Jesse Hallam
1f26de3024
MM-59875: default apps enabled false (#27756)
* MM-59875: default apps enabled false

We stopped prepackaging the apps framework and stopped supporting it in
Mattermost Cloud a year ago. As part of v10, we're formally deprecating
it, while making allowances for customers who still need to transition
by not making this a breaking change immediately. To help prevent new
adoption, let's ensure the feature flag is disabled by default.

Fixes: https://mattermost.atlassian.net/browse/MM-59875

* fix tests
2024-07-31 17:18:30 +00:00
Jesse Hallam
3fdfce6ddb
update missed model.Username for TestAddUserToGroupSyncables (#27828) 2024-07-31 16:46:32 +00:00
Maria A Nunez
e422b1f8af
Rename System Roles to Delegated Granular Administration (#27761)
Automatic Merge
2024-07-31 18:27:51 +03:00
Maria A Nunez
988939521e
Rename CRT to Threaded Discussions (#27755)
Automatic Merge
2024-07-31 17:57:51 +03:00
Scott Bishel
08ed72f060
MM-54502 - Update regex to force first character to be alpha (#24675)
Automatic Merge
2024-07-31 17:27:52 +03:00
Nick Misasi
5bfb32c504
[CLD-8131] Convert Subscription History Reporting to a Job (#27800)
* Remove CloudFreeDeprecated feature flag

* Fixes for CI pipelines

* Remove CloudReverseTrial feature flag and accompanying code (#27676)

Co-authored-by: Mattermost Build <build@mattermost.com>

* Stashing

* Convert subscription history reporting into a daily job

* Update comments

* Fix pipeline, redundant varaible declaration removed

* Add debug logs for start/finish

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-31 08:31:55 -04:00
Matthew Birtch
b1fd445fcc
MM-59347 Fix spacing issue in data retention card headers (#27576)
* fixed spacing issue in card header for data retention screen

* fix lint

* fix lint

---------

Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
2024-07-30 18:10:05 -05:00
Maria A Nunez
d26a76a890
Promote GIF picker, custom groups and message priority out of Beta (#27758)
* Remove Beta label for GIF picker, custom groups and message priority

* Remove Give Feedback from post priority

* Removed unused text

* [MM-56904] Reduce the number of api requests made to fetch user information for GMs on page load (#27149)

* use new endpoint to fetch group members

* [MM-58440] Migrate tooltips of 'components/post_view/post_flag_icon' to WithTooltip (#27689)

* Fixed bug around channel file sidebar (#27705)

* Fixed the issue for DB layer, ES to go

* Handled channel bookmarks

* Handled Bleve

* Lint fix

* Added channel bookmark test

* Skip bleve test

* Used common function

* SKipping ES as indexing logic in unavailable in test

* [MM-58378] Prevent prepackaged playbook v2 from upgrading on servers without enterprise license (#27335)

* add check for playbooks v2

* add new license helper

---------

Co-authored-by: Mattermost Build <build@mattermost.com>

* MM-59826: Add more invalidation event types (#27719)


This came up as part of the Redis work. I noticed that a lot of new
invalidation events were missing. This is important to understand
where invalidations are coming from.

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

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>

* Minor css changes for post priority menu

---------

Co-authored-by: Ben Cooke <benkcooke@gmail.com>
Co-authored-by: Zubair Imtiaz <106450046+ZubairImtiaz3@users.noreply.github.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Julien Tant <785518+JulienTant@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
2024-07-30 12:12:15 -04:00
Weblate (bot)
1a55da8ac3
Translations update from Mattermost Weblate (#27778)
Automatic Merge
2024-07-30 18:57:50 +03:00
Maria A Nunez
c3f26f5bf9
Rename announcement banner feature to system-wide notifications (#27759)
* Rename announcement banner to system-wide notifications

* Fixed snapshot
2024-07-30 08:00:10 -04:00
Agniva De Sarker
762e3dfc08
MM-59846: Removing some deprecated ws events for v10 (#27773)
These WS events are no longer used in the code. Can be
removed as part of v10.

https://mattermost.atlassian.net/browse/MM-59846
```release-note
NONE
```
2024-07-30 13:06:13 +05:30
Brandon Shen
1a0e25e5e9
[MM-59897] Migrate tooltips of 'plugins/channel_header_plug/channel_header_plug.tsx' to WithTooltip (#27807) 2024-07-30 06:22:01 +00:00
Maria A Nunez
488c22a9d8
Rename Channel Moderation to Advanced Access Control (#27760) 2024-07-29 12:29:20 -04:00
Nick Misasi
dda726ee02
[CLD-6870] Remove CloudFreeDeprecated feature flag (#27675)
* Remove CloudFreeDeprecated feature flag

* Fixes for CI pipelines

* Remove CloudReverseTrial feature flag and accompanying code (#27676)

Co-authored-by: Mattermost Build <build@mattermost.com>

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-29 11:42:08 -04:00
Devin Binnie
aa85a13c8f
[MM-58492][MM-58523] Fixed some access control bugs around archived channels by replacing the permission check with HasPermissionToReadChannel (#27409)
* [MM-58492][MM-58523] Fixed some access control bugs around archived channels by replacing the permission check with HasPermissionToReadChannel

* Fix lint, add ChannelId to uploads

* Fix MMCTL tests and remove unnecessary check for the error message that doesn't work anyways

* Include channel map for getting flagged posts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-29 10:05:20 -04:00
M-ZubairAhmed
6ddf796384
[MM-58518] Migrate tooltips of "components/copy_text.tsx" to WithTooltip (#27413) 2024-07-29 08:49:57 +00:00
Ben Schumacher
705679e875
Fix flaky TestCreateZipFileAndAddFiles/write_one_file (#27737) 2024-07-29 10:04:56 +02:00
Shaon Debnath
2f94640b22
[MM-59333] Migrate tooltips of "components/sidebar/mobile_sidebar_header/contents/contents.tsx" to WithTooltip (#27596) 2024-07-29 07:07:38 +00:00
Ivy Gesare
d353167f9c
[MM-59343] Migrate tooltips of "components/select_team/components/select_team_item.tsx" to WithTooltip (#27584) 2024-07-29 07:06:39 +00:00
Ivy Gesare
2bf47c69f7
[MM-59334] Migrate tooltips of "components/sidebar/sidebar_header/sidebar_header.tsx" to WithTooltip (#27635) 2024-07-29 07:05:38 +00:00