Commit Graph

18268 Commits

Author SHA1 Message Date
unified-ci-app[bot]
d3be94f2b9
chore: Update NOTICE.txt file with updated dependencies (#26065)
Automatic Merge
2024-01-29 16:06:45 +02:00
Daniel Espino García
f50118239a
Add missing comments to types/plugins/user_setttings.ts (#26038)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-29 10:52:41 +01:00
Sapna Sivakumar
98a2fe8e2d
[MM-54745] Fixing inconsistent styles for menu items in profile/accou… (#25719)
* [MM-54745] Fixing inconsistent styles for menu items in profile/account menu

* [MM-54745] Updating the snapshot tests

* [MM-54745] Set a custom status text made to display with full opacity

* [MM-54745] Fixing the CI pipeline lint issues

* [MM-54745] Fixing a few more linter issues blocking the build

* [MM-54745] Fixing type check issue for color parameter

* [MM-54745] ESlint issues for import statements and alignment of closing brackets

* [MM-54745] Updating snapshots and fixing minor ESLint issues on the way in the test file

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-26 14:37:56 -05:00
Ben Schumacher
929ab6b289
Document variable names for request.CTX and mlog.Logger (#26029) 2024-01-26 14:03:35 +01:00
Ben Schumacher
223c9c7426
[MM-56631] Clarify that LDAP profile picture setting is optional (#26014) 2024-01-26 12:08:25 +01:00
Raghav Aggarwal
a88978bbc1
Bump prepackage GitLab plugin version to 1.8.0 (#25789) 2024-01-25 10:43:12 -05:00
Sudhanva-Nadiger
53298a2d60
[MM-47181] Migrate "components/suggestion/at_mention_provider" and associated tests to Typescript (#25342) 2024-01-25 05:28:09 +00:00
Raghav Aggarwal
8f0abc1316
Bump prepackage Jira plugin version to 4.1.0 (#25955) 2024-01-24 14:14:17 -05:00
Harrison Healey
6c0900f1be
Improve Redux types part 6/Remove GenericAction (#26005)
* Remove remaining usage of GenericAction in mapDispatchToProps

* Remove usage of GenericAction when testing initial state

* Remove usage of GenericAction from reducers

* Remove GenericAction
2024-01-24 11:33:59 -05:00
Harrison Healey
8e165c7685
Improve Redux types part 5/Replace DispatchFunc (#26004)
* Remove non-functional code from Login component

* Remove remaining usage of useDispatch<DispatchFunc>

* Remove usage of DispatchFunc from actions/file_actions

* actions/global_actions

* Remove usage of DispatchFunc from actions/marketplace

* Remove DispatchFunc from actions/post_actions

* Remove DispatchFunc from actions/storage

* Remove DispatchFunc from actions/user_actions

* Remove DispatchFunc from actions/views/channel

* Remove DispatchFunc from actions/views/channel_sidebar

* Remove DispatchFunc from actions/views/create_comment

* Remove DispatchFunc from actions/views/lhs.ts

* Remove DispatchFunc from actions/views/rhs.ts

* Remove DispatchFunc from actions/views/onboarding_tasks

* Remove DispatchFunc from actions/views/root

* Remove DispatchFunc from components/logged_in

* Remove DispatchFunc from components/msg_typing

* Remove DispatchFunc from components/permalink_view

* Remove DispatchFunc from components/suggestion

* Remove DispatchFunc from mattermost-redux/actions/posts

* Remove DispatchFunc from mattermost-redux/actions/roles

* Remove DispatchFunc from mattermost-redux/actions/threads

* Remove DispatchFunc from mattermost-redux/actions/timezone

* Remove DispatchFunc from plugins/products

* Make DispatchFunc into Dispatch

* Fix how dispatch is mocked in test for toggleSideBarRightMenuAction
2024-01-24 10:28:38 -05:00
Agniva De Sarker
d8e11fe292
MM-54264: Unblock TestCheckValidSocket (#26021)
The failure seemed to be due to incorect detection from gotestsum
itself rather than any failure in the test.

I note that from that time onwards, gotestsum has had a new release
and we are using that.

I also ran the test several times with gotestsum and could not
repro this. Let's hope that the new version of gotestsum has fixed
the issue. Otherwise, there isn't much we can do.

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

```release-note
NONE
```
2024-01-24 20:43:01 +05:30
Daniel Espino García
409329c3d6
Fix issue where users may not follow links to private messages they belong to (#26001)
* Fix issue where users may not follow links to private messages they belong to

* Update tests
2024-01-24 16:10:01 +01:00
Doug Lauder
a7192dba8c
fix breaking change in Docker 25 by using long form port definition (#26030) 2024-01-24 09:30:37 -05:00
Agniva De Sarker
6d41ee171e
MM-56611: Move license expiration check to be synchronous (#26010)
During server start, runLicenseExpirationCheckJob was being called
from a goroutine which would eventually call SetLicense and iterate
through the ps.licenseListeners.

But at the same time doElasticsearchFixChannelIndex would also
call AddLicenseListener and try to edit the ps.licenseListeners map,
leading to a race condition.

To fix this, we simply move the runLicenseExpirationCheckJob
to be synchronous. This fixes the race, and also improves
the correctness because after 1f431bf722
there was no license check being done synchronously during server boot.

So theoretically, the server might go on doing some stuff
until the Go runtime decides to run the license check goroutine.

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

```release-note
NONE
```
2024-01-24 11:59:42 +05:30
M-ZubairAhmed
2d7a14244f
[MM-56608] Upgrade to "@floating-ui/react" for post_priority/post_priority_picker_overlay component (#25980) 2024-01-24 04:30:34 +00:00
M-ZubairAhmed
686b22a076
[MM-56607] Upgrade to "@floating-ui/react" for acknowledgements/post_acknowledgements component (#25979) 2024-01-24 04:30:13 +00:00
M-ZubairAhmed
df79ebed79
[MM-56606] Upgrade to "@floating-ui/react" for date_picker component (#25978) 2024-01-24 04:29:52 +00:00
M-ZubairAhmed
028ad7d33f
[MM-56600] Upgrade to "@floating-ui/react" for hooks/useTooltip (#25976) 2024-01-24 04:29:32 +00:00
Kapil Dutta
eee5a71e3d
[MM-52828] Migrate "components/admin_console/team_channel_settings/group/index.js" (#25640)
* migrating team_channel_settings/group/index.js to .tsx

* fixing CI/Lint issues

* Fixed eslint issues, changed Props export and usage structure in index.ts and group_list.tsx

* Remove empty array in getData call

* Update promise to void in AbstractList and response to unknown Group | Team

* remove bindActionCreators and dispatch Type from team_channel_settings/group/index.ts

---------

Co-authored-by: Kapil Dutta <duttakapil@Kapils-MacBook-Pro.local>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-23 16:47:43 -05:00
Agniva De Sarker
f246cd26b7
MM-56457: Update LastUpdateAt in UpdateMemberNotifyProps (#25984)
PR https://github.com/mattermost/mattermost/pull/18114
mistakenly left out updating the lastUpdateAt of the field.

We fix that here.

https://mattermost.atlassian.net/browse/MM-56457
```release-note
NONE
```
2024-01-23 16:31:25 -05:00
Nathan
467ab193d3
MM-51463 Only use RhsSuggestionList for RHS advanced text editor (#24175)
* Only use RhsSuggestionList for RHS advanced text editor

- Prevents issues with suggestion list growing downwards on the post editor on small screen sizes

* Makes RhsSuggestionList grow using different breakpoints for mobile

- Allows RhsSuggestionList to flip directions at smaller breakpoints than desktop
- Adds new Constant MOBILE_SUGGESTION_LIST_SPACE_RHS

---------

Co-authored-by: Nathan Geist <ngeist@spiria.com>
Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-23 15:41:16 -05:00
Nathan
5985a0c531
[MM-51521] Prevent adjusting password stength fields when set in environment (#24151)
Co-authored-by: Nathan Geist <ngeist@spiria.com>
2024-01-23 16:52:22 +01:00
Claudio Costa
7d43712daa
[MM-54984] Update code.sajari.com/docconv to latest v2 (#25975)
* Update code.sajari.com/docconv to latest v2

* go mod tidy
2024-01-23 09:40:57 -06:00
Devin Binnie
8dbe7aed79
[MM-56362] Disable post stats for MySQL (#25981) 2024-01-23 10:34:23 -05:00
Harrison Healey
e98aa55ad7
Improve Redux types part 4 (#26003)
* Fix return type of addUsersToChannel

* Fix type of TeamInviteWithError.error

* Change Constants.Integrations.PAGE_SIZE into a number"
2024-01-23 09:33:03 -05:00
Harrison Healey
8a869b0623
Improve Redux types part 3/Remove old ActionFunc (#25983)
* Remove ActionFunc from actions/apps

* Remove ActionFunc from actions/channel_actions

* actions/cloud

* actions/hosted_customer

* actions/integration_actions

* actions/marketplace

* Replace ActionFuncVariantDoNotUse with ThunkActionFunc

* actions/apps

* actions/new_post and actions/post_actions

* actions/status_actions

* actions/team_actions

* actions/views/drafts

* actions/commands

* components/posts/actions

* actions/views/login

* components/channel_layout/channel_identifier_router/actions

* hooks/usePreference

* components/interactive_dialog/interactive_dialog

* Various tests

* components/team_controller

* components/threading/thread_viewer

* mattermost-redux/actions/admin

* mattermost-redux/actions/boards

* mattermost-redux/actions/channel_categories

* mattermost-redux/actions/channels

* mattermost-redux/actions/emojis

* mattermost-redux/actions/errors

* mattermost-redux/actions/files

* mattermost-redux/actions/general

* mattermost-redux/actions/preferences

* mattermost-redux/actions/search

* mattermost-redux/actions/teams

* mattermost-redux/actions/users

* mattermost-redux/actions/websocket

* Remove ActionFunc

* Remove TODO comments that I'm not going to address

* Remove another TODO comment

* And one last one
2024-01-23 09:05:23 -05:00
Saturnino Abril
79e961e239
Playwright/E2E: Upgraded Playwright to 1.41 and fixed tests (#26008)
* upgrade Playwright and fix tests

* fix lint
2024-01-23 20:56:23 +08:00
M-ZubairAhmed
797fe9b917
[MM-56599] Upgrade to "@floating-ui/react" for advanced_text_editor/formatting_bar component (#25970) 2024-01-23 12:18:22 +00:00
Harshil Sharma
62064e3bf7
Used limited reader in user invite (#25943)
* Used limited reader in user invite

* Added tests
2024-01-23 11:11:10 +05:30
Nick Misasi
09b701204f
[CLD-6487] Replace 'Country' with 'Country/Region' in country selectors (#25977)
* Replace 'Country' with 'Country/Region' in countr selectors

* Fix linteR

* Update snapshots
2024-01-22 14:56:01 -05:00
Asaad Mahmood
16d80e61a2
MM-56593 - Fixing app button styles (#25962)
Automatic Merge
2024-01-22 19:05:38 +02:00
Weblate (bot)
8d5671dd4a
Translations update from Mattermost Weblate (#25989)
* Translated using Weblate (Japanese)

Currently translated at 100.0% (2572 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ja/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (5815 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ja/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.9% (2571 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/zh_Hans/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.9% (5814 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/zh_Hans/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2572 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/zh_Hans/

* Translated using Weblate (Polish)

Currently translated at 99.6% (2563 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (Lithuanian)

Currently translated at 91.4% (5316 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/lt/

* Translated using Weblate (Dutch)

Currently translated at 100.0% (2572 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/

* Translated using Weblate (Dutch)

Currently translated at 99.9% (5814 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/

* Translated using Weblate (Czech)

Currently translated at 74.0% (1905 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/cs/

* Translated using Weblate (Lithuanian)

Currently translated at 7.4% (192 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/lt/

* Translated using Weblate (English (Australia))

Currently translated at 99.7% (2566 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/en_AU/

* Translated using Weblate (English (Australia))

Currently translated at 99.9% (5812 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/en_AU/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/

* Update translation files

Updated by "Remove blank strings" hook in Weblate.

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/

* Translated using Weblate (German)

Currently translated at 100.0% (2572 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2572 of 2572 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (German)

Currently translated at 100.0% (5815 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/de/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5815 of 5815 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

---------

Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: N <normanas.zem5@gmail.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: SkyDusH <giris@seznam.cz>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
2024-01-22 12:38:42 -04:00
Vishal Bisht
d2da8d3a50
[MM-56512] Impossible to set a custom reminder on the same day of following months (#25918)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-22 08:46:37 -06:00
Matthew Straughn
ae33de57ff
Mm 16623 fix all initialism errors in channels/app and channels/api4 and /store dir (#25787) 2024-01-22 14:35:16 +01:00
Daniel Espino García
2415438d88
Fix MM56373 (#25946)
* Fix MM56373

* Fix typo

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-22 13:13:09 +01:00
mattermod
b668c9b048 Update latest version to 9.4.1 2024-01-22 07:41:42 +00:00
Agniva De Sarker
1f431bf722
MM-53879: Fix duplicate loading of license (#25442)
We take a second stab at fixing the issue. Last time,
we were a bit too aggressive in trying to fix a lot of stuff.

I believe changing the cluster event handler had an edge case
somewhere which caused things to fail. Taking a very conservative
approach this time to only fix what is obviously wrong.

Also tested locally in a HA setup.

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

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-22 11:04:15 +05:30
Agniva De Sarker
8364e30a2a
MM-55524: Include deactivated users in DM export (#25695)
We were incorrectly excluding deactivated users
while getting channel members for a DM channel, whereas
we were actually exporting all users in the users array.

We fix this and also correctly honor the includeArchivedChannels
flag as well.

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

```release-note
Include deactivated members in a favorited DM channel export.
```


---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-20 08:47:47 +05:30
Devin Binnie
f7446d7443
[MM-55726] Create batch report worker, add batch report job for exporting users to CSV (#25832)
* Split out migration logic and create generic BatchWorker

* WIP

* WIP

* POC batch reporting

* Oops

* Job hookup

* Working export to file

* PR feedback

* Merge'd

* Fix error handling

* Add API to start report, translations, couple fixes

* Add DMs to send reports to users

* Merge'd

* Update types

* A bit of cleanup

* Some fixes

* Add missing API doc

* PR feedback

* Fix generated

* Fix bug with post creation

* PR feedback

* Add some tests

* PR feedback

* Fix lint

* Some test changes

* Fix tests

* Add comment to explain why we forcibly stop

* Rework of some tests

* Batch report test

* Restrict batch exports to Pro and Enterprise licenses

* Fix erroneous comment

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-19 15:22:17 -05:00
Harrison Healey
eac9a39677
Allow NPM v10 when working on the web app (#25959) 2024-01-19 09:43:51 -05:00
Christopher Poile
60252d4857
upgrade calls to 0.23.1 (#25963)
Automatic Merge
2024-01-19 16:35:38 +02:00
Daniel Espino García
f8dbb2e168
Update text for activated users in team statistics (#25921)
* Update text for activated users in team statistics

* Fix lint

* Generalize tooltip and make it show according to the designs

* Fix lint

* Fix test

* Generalize even more overlay trigger

* Update snapshot

* Update link
2024-01-19 10:49:47 +01:00
Saturnino Abril
7833dd2c1c
Cypress/E2E: Upgrade Cypress to 13.6.2 and its dependencies (#25932)
* upgrade cypress to 13.6.2 and its dependencies

* revert axios-retry to 3.8.0

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-19 12:15:27 +08:00
Devin Binnie
bbe432b3b0
[MM-56398] Fix date range query for user reporting (#25960)
* [MM-56398] Fix date range query for user reporting

* Missing debug stuff

* Fix tests
2024-01-18 14:06:30 -05:00
Weblate (bot)
81de078e1d
Translations update from Mattermost Weblate (#25815) 2024-01-18 05:55:04 -04:00
Harrison Healey
fd3a3081d4
Remove accidentally included trace logs (#25939) 2024-01-17 16:18:01 -05:00
Harrison Healey
21e82c4a8b
MM-56565 Add filter to connectFakeWebSocket to fix flakiness (#25938) 2024-01-17 16:17:14 -05:00
Harrison Healey
c4cc2db0ff
MM-54468 Fix code blocks being misaligned in search results (#25950) 2024-01-17 16:17:06 -05:00
Devin Binnie
2d71258834
[MM-56522] Fix margin on landing page remember preference checkbox (#25941) 2024-01-17 15:14:26 -05:00
Doug Lauder
8cf4f2d23b
Fix channel switcher routing for DMs with remote users (#25887) 2024-01-17 14:39:36 -05:00