Commit Graph

18356 Commits

Author SHA1 Message Date
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
Harrison Healey
584c2e766c
Improve typing of bindClientFunc/Improve Redux types part 2 (#25915)
* Improve typing of bindClientFunc

* Slight logic changes

* Remove unused import
2024-01-17 13:06:46 -05:00
Daniel Espino García
ce8cf7e8db
Change active to activated in user list (#25923) 2024-01-17 12:17:36 +01:00
Saturnino Abril
9a066b0390
make pushNotificationServer configurable in E2E (#25929) 2024-01-17 16:54:05 +08:00
Agniva De Sarker
f4fbc90e23
Move all PR tests to free tier (#25930)
After moving only contributor PRs to free tier it was
observed that the tests actually finish faster in free tier
than with larger runners. We have let the change soak for about
a month now without any issues.

Therefore we move to free tier runners for all PRs.
```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-17 09:10:38 +05:30
Nick Misasi
7039176d31
[CLD-6536] Adjustments to cloud annual renewal announcement bar (#25927)
* Adjustments to cloud annual renewal announcement bar

* Add exclusion for trials

* Add more exceptions for when on trial during renewal period

* Add support for simulated_current_time_ms

* A few more changes to allow us to test this post-merge

* Fix tests, pipeline

* Final fix around emails

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-16 17:48:59 -05:00
Claudio Costa
d1e37783cc
Include session id in request payload of WebSocketMessageHasBeenPosted plugin hook (#25928) 2024-01-16 14:17:31 -06:00
Agniva De Sarker
ff741a76e6
Skip flaky test SendNotifications_MentionsFollowers (#25931)
https://mattermost.atlassian.net/browse/MM-56565
```release-note
NONE
```
2024-01-16 14:46:36 -05:00
Doug Lauder
a07097ed57
Plugin API hook for Shared Channel file attachment sync (#25874)
* option for auto inviting plugin to all shared channels.

* auto-invite remotes to shared channels when flag set

* fix unit test

* immediately ping new remotes; fix unique siteurl bug

* make i18n-extract

* fix translations

* plugin hooks for file attachments

* hook for profile image sync

* fix profile image sync

* fix unit test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-16 15:48:51 +01:00
unified-ci-app[bot]
d90d3e4036
chore: Update NOTICE.txt file with updated dependencies (#25920)
Automatic Merge
2024-01-16 16:24:57 +02:00
lindalumitchell
1e184df414
Update channel_settings_spec.js (#25580)
Error text updated to `A channel with that name already exists on the same team.`

MM-T882 Channel URL validation works properly

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-16 11:58:05 +01:00
Daniel Espino García
8818141dae
Remove t function from admin_definition.tsx (and more) (#25406)
* Remove t function from schema_admin_settings

* i18n

* Fix import

* Use always string or descriptor and more improvements

* i18n-extract

* Remove t function for roles

* Remove more t functions

* Address feedback

* i18n-extract fix

* Fix tests

* Fix tests

* Remove translation of team edition notice

* Remove unexpected file in the commit

* Address feedback

* Fix search in admin console

* Fix test
2024-01-16 10:10:24 +01:00
Julien Tant
6f1bbcd8ec
[MM-54770] Add ability to export profile pictures and fix importing them (#25042)
* add ability to export pp and fix import

* remove unused nopSeeker

* remove debug log

* fix shadow vars

* generate a warning instead of an error when unable to export profile picture

* fix merge conflicts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-01-15 14:29:45 -07:00