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

18523 Коммитов

Автор SHA1 Сообщение Дата
M-ZubairAhmed
4135ff1317 [MM-57884] Layout issues with initial tool selection and invite screens in workspace (#26932) 2024-05-07 08:52:46 +00:00
Jesús Espino
708d046c1b Adding more visibility to the free edition in the interface (#26698)
* Initial version of make more evident the mattermost edition used

* Updating tests

* Adding i18n strings

* Fixing css property order

* tweaks to badge and use proper MM logo svg

* update snapshot

* update language, tweaks to menu trial block

* fix style lint issue

* tweak letter-spacing

* fix lint

* update language

* Removing trial related info from the main menu, and simplifying showing the license

* Applying proposed changes

* Fixing linter errors

* Fixing tests

* Updating i18n strings

* fixing some styles and a bug

* Fix linter error

* updated login css and fixed lint issue

* Moving to styled components the Free edition badge

* Fixing linter error

* Addressing PR review comments

* Removing old snapshot

* Addressing PR review comments

* Fixing linter errors

---------

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
2024-05-06 19:19:10 +02:00
Ben Schumacher
31015a971e [MM-56340] Add audit events for OAuth logins (#25859)
* Add audit events for OAuth logins

* Fix test

* Fix auth record

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-05-06 17:31:16 +02:00
Harrison Healey
0a3a55bb80 MM-58092 Add feature flag and setting for client performance metrics (#26942)
* MM-58092 Add feature flag and setting for client performance metrics

* Fix incorrect field name
2024-05-06 09:46:16 -04:00
yasserfaraazkhan
03c930daa0 Chore(cypress): Review and Fix tests failing on master (#26954) 2024-05-06 15:48:19 +05:30
Umar Abid
a1ed780a86 [MM-55327]: Convert /components/permissions_gates/team_permission_gate/team_permission_gate.tsx from Class Component to Function Component (#25395)
* fix: convert to func component

* fix: update failing test snapshots

* Handle tests better

* Standarize all gates

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2024-05-06 12:06:24 +02:00
MeHow25
204485e541 [MM-57717] Convert SubMenuModal from Class Component to Function Component (#26902)
* Convert SubMenuModal from Class Component to Function Component

* Style fixes

* Review fixes

* Review fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-05-06 12:05:06 +02:00
Daniel Espino García
539daee634 Fix types so the store can return undefined channels (#26393)
* Fix types so the store can return undefined channels

* Address feedback

* Revert gm change

* Fix lint

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-05-06 12:04:36 +02:00
Daniel Espino García
c22509eca2 Properly unset active channel in the server (#26846)
* Properly unset active channel in the server

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-05-06 11:59:49 +02:00
Ben Schumacher
69fe5c06e4 [MM-58064] Enable emptyStrCmp linter for enterprise code (#26931) 2024-05-06 10:47:48 +02:00
Ben Schumacher
732932f51f [MM-58059] Remove PostPriority feature flag (#26929) 2024-05-06 10:11:28 +02:00
Mario Vitale
c9cb3d5bb0 Fix E2E test cases and setup for GHA (#26944)
* Fix E2E test cases and setup for GHA
* Fix more test cases, apply recommendations
2024-05-06 08:37:20 +02:00
Devin Binnie
8da64a5c34 [MM-57407] Add setting to disable the wake up on reconnect handler (#26924)
* [MM-57407] Add setting to disable the wake up on reconnect handler

* Add dependency

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-05-03 09:06:06 -04:00
unified-ci-app[bot]
4b5d02990d Update latest minor version to 9.9.0 (#26949)
Automatic Merge
2024-05-03 16:04:39 +03:00
Ben Schumacher
568680b47f [MM-58043] Enable errcheck linter for enterprise/data_retention package (#26918) 2024-05-03 10:19:42 +02:00
Nick Misasi
f1019d076e [CLD-7567] Deprecate Self Serve: Second Pass (#26853)
* Deprecate Self Serve: First Pass

* Fix ci

* Fix more ci

* Remmove outdated server tests

* Fix a missed spot opening purchase modal in Self Hosted

* Fix i18n

* Clean up some more server code, fix webapp test

* Fix alignment of button

* Fix linter

* Fix i18n server side

* Deprecate in product true up

* Add back translation

* Remove client functions

* Put back client functions

* webapp deprecation

* Deprecate Self Serve: Second Pass

* Fix various pipeline issues

* Fix linter

* Fix pipelines

* Fix handlers_test.go

* Fix console.error around hostedCustomer in reducer

* PICKY LINTER PLEASE

* Fix webapp tests, various other fixes for the CI pipelines

* Fix i18n

* Updates to accomadate enterprise code removal

* Fix mocks

* More removal

* Fix

* Adjustments from PR

* Fixes for QA Feedback

* Update

* Add migrations to remove true up review history

* Fix migrations check

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: maria.nunez <maria.nunez@mattermost.com>
2024-05-02 09:15:15 -04:00
Asaad Mahmood
6028cbe4e2 MM-57841 - Updating post delete modal (#26907) 2024-05-01 23:23:23 +05:00
Devin Binnie
4db2ae5753 [MM-58070] Ensure the batched post handler also send websocket acknowledgements (#26938)
* [MM-58070] Ensure the batched post handler also send websocket acknowledgements

* Add ack for missing root post error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-05-01 10:44:09 -04:00
Harrison Healey
3bd6c44413 MM-53148 Fix an incorrect type (#26920) 2024-04-30 17:40:37 -04:00
Harrison Healey
43a5e61d85 MM-57320 Fix autocomplete occasionally erasing all text after caret (#26857)
* MM-57320 Fix autocomplete occasionally erasing all text after caret

* Change makeHandleReceivedSuggestionsAndComplete to only allow complete word to be called once

* Actually do what the last commit said
2024-04-30 17:22:54 -04:00
Ezekiel
b7e830f4a1 Print & Return errors using multierror if an error happens (#26625)
* Print & Return errors using multierror if an error happens

* Group up errors assertion in test

* Remove trailing newspace

* Remove WrappedErrors loop

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-30 22:16:05 +02:00
Anna Os
48b047aa0c [GH-16199] add IsValid to model OpenDialogRequest (#26526)
* [GH-16199] add IsValid to model OpenDialogRequest

* [GH-16199] add IsValid to model OpenDialogRequest, revert remove of translations

* [GH-16199] fix tests after revert

* [GH-16199] add IsValid to model OpenDialogRequest

* [GH-16199] revert validation of icon url

* [GH-16199] update go sum

* [GH-16199] log warning for invalid dialog

* [GH-16199] log error for invalid dialog

* [GH-16199] log warning for invalid dialog

* [GH-16199] fix golang-ci

---------

Co-authored-by: Lukas Eipert <git@leipert.io>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-30 18:27:07 +02:00
Amy Blais
b70e657271 Update en.json (#26748)
Automatic Merge
2024-04-30 18:04:39 +03:00
Ben Schumacher
af031b4d0c Fix merge error (#26933) 2024-04-30 16:02:28 +02:00
Agniva De Sarker
0cee332001 MM-57152: Get webconn count from the whole cluster (#26813)
We were setting the user status to offline without
checking for connections on other nodes in a cluster.

Now we implement a request-response mechanism for the whole
cluster and we check that before setting a user to offline.

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

```release-note
Fix a bug where the user status would incorrectly be set to offline
without checking for connections in other nodes in an HA cluster.
```

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-04-30 19:28:55 +05:30
Matthew Birtch
5c11de1373 fixed checkbox style on browse channels modal (#26927) 2024-04-30 09:11:55 -04:00
Weblate (bot)
13b54aa77d Translations update from Mattermost Weblate (#26906)
* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2596 of 2596 strings)

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.3% (5906 of 5947 strings)

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

* Translated using Weblate (German)

Currently translated at 100.0% (2596 of 2596 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 100.0% (2596 of 2596 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (2596 of 2596 strings)

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

* Translated using Weblate (German)

Currently translated at 100.0% (5947 of 5947 strings)

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

* Translated using Weblate (Korean)

Currently translated at 55.7% (3315 of 5947 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.4% (5916 of 5947 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5947 of 5947 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.5% (5918 of 5947 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5947 of 5947 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (2596 of 2596 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.9% (5945 of 5947 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5947 of 5947 strings)

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

* Translated using Weblate (Russian)

Currently translated at 98.3% (5848 of 5947 strings)

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (5947 of 5947 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5947 of 5947 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (2596 of 2596 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (5947 of 5947 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

---------

Co-authored-by: Sharuru <mave@foxmail.com>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Jihyeon Gim <potatogim@potatogim.net>
Co-authored-by: Konstantin <eleferen@gmail.com>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
2024-04-30 09:01:17 -04:00
Ezekiel
b6a8965969 Gh 19916 mmctl list deactivated users only (#26646) 2024-04-30 14:49:50 +02:00
Agniva De Sarker
10a59619c7 MM-57997: Fix bypass-upload in HA mode (#26850)
Now we throw an error if the server is in HA. This is
because there is no guarantee that the server where the
request lands has access to the file locally.

https://mattermost.atlassian.net/browse/MM-57997
```release-note
NONE
```
2024-04-30 14:14:45 +05:30
Michael Kochell
5e07ff1efb Prepackage zoom plugin 1.8.0 (#26922) 2024-04-30 00:18:40 -07:00
Michael Kochell
29f7810354 Prepackage GitLab plugin 1.9.0 (#26899) 2024-04-29 09:46:01 -07:00
Ben Schumacher
32d93fd469 [MM-57743] Enable errcheck linter (#26723) 2024-04-29 11:23:01 +02:00
Ben Schumacher
5746bb8df3 Updated permanentDelete to receive user context as the first argument (#26884)
Co-authored-by: Ezekiel <ezekielchow94@gmail.com>
2024-04-29 10:44:55 +02:00
Miguel de la Cruz
a6aa92d149 Avoids returning an error if sharing a direct channel fails after its creation (#26895)
* Avoids returning an error if sharing a direct channel fails after its creation

* Update logline to use snake-case

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-26 18:07:48 +02:00
Robert Obermeier
322a500092 Add WebP to MediaFormats #26628 (#26805)
Changes the default content disposition for WebP attachments
from *download* to *inline*.

Add WebP codec support side-effect to decode.go. To prevent future
issues caused by possible changes in emoji.go.
2024-04-26 17:06:07 +02:00
Matthew Birtch
4ba736f018 MM-56324 Channel Header UI Update (#26383) 2024-04-26 21:21:28 +08:00
M-ZubairAhmed
54d7011aba [MM-57744] Improve status received reducers (#26670)
Rationale
As seen below, we can deduce that the memory consumption of the reducers related to user status was the maximum, given that the app is idle with 50,000 users logged in and posting 35 messages per second. The memory consumption of the affected reducer (35%) is even more than that of the functions responsible for the incoming messages (27%). This implementation iterated over the received statuses multiple times across different reducers, each time processing a subset of the same data. This comes with the overhead of array function calls, creation of intermediary objects, and arrays.

Changes
Modified the getStatusesByIds action to process received statuses once, extracting and transforming all necessary data for statuses, dndEndTimes, isManualStatuses, and lastActivity reducer in a single iteration.

Improvements
By avoiding multiple iterations, we reduce the runtime complexity from O(4n) to O(n), where n is number of statuses.
Simplified reducer for user statuses, which includes statuses, dndEntTimes, isManualStatuses, lastActivity. Also created for single and multiple items of these reducers.
2024-04-26 11:17:27 +00:00
Harrison Healey
80e67ace86 Migrate tests for Login to Testing Library and convert showNotification to a thunk (#26848)
* Migrate tests for Login to Testing Library

* Convert showNotification to a thunk
2024-04-25 17:24:03 -04:00
Devin Binnie
60c15c821f More notification metrics fixes (#26889)
* Explicitly have the client tell the server when it should expect an ACK

* Don't count missing profile errors for your own posts, added comment

* Fix test

* Make postedAck a parameter in WebSocketClient

* Snapshot fixes

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-25 15:07:12 -04:00
Kunal Acharya
5f1a357845 [MM-57966]Centralize the 200 maximum page size cap for the per_page parameter and remove individual mentions from API endpoint documentation (#26859) 2024-04-25 21:18:25 +05:30
Julien Tant
173ff52e18 [MM-57121] Remove remote_id if necessary when merging user profile (#26826) 2024-04-25 08:45:50 -07:00
M-ZubairAhmed
0948ce1776 [MM-57745] Fetch threads of the current channel only when root post is missing from the store in new posted event
Statuses and user profiles on each new messages have to be fetched for the post users and its mentions (Blue bar), to solve that polling of these can be done. However after we did that we saw the polling of statuses and user profiles requests got considerably down but the requests to threads was relatively still higher (Pink bar).
So this improvement doesn't not fetch the root post along with the complete threads of the incoming new post from another channel.
This improved the calls to threads from 120 to just 8 calls per 2 mins an improvement of 93%.
2024-04-25 14:02:34 +00:00
Ben Schumacher
effb374482 [MM-57789] Update mockery version for LDAP mocks (#26760) 2024-04-25 12:46:19 +02:00
Ben Schumacher
bac05a273d [MM-51554] Make LDAP sync job more resilient against errors (#25496) 2024-04-25 12:38:19 +02:00
M-ZubairAhmed
9ecb3e20c8 Update notification_actions.jsx (#26639)
Update notification_actions.jsx

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-04-25 07:12:31 +00:00
Devin Binnie
e532807454 [MM-57962] Remove outdated Copy Link menu in favour of native Electron dropdown (#26856) 2024-04-24 16:39:47 -04:00
Antonin Delpeuch
542e84b140 [GH-26702] Clicking on "remember my preference" in landing page does not tick the associated checkbox (#26703) 2024-04-24 20:30:34 +00:00
Anna Os
d9aed02f57 [GH-26831] fix modal suggestion list position (#26832) 2024-04-24 14:48:17 -04:00
Syed Ali Abbas Zaidi
1fd09d0a0b [MM-57718] Convert ./components/post_view/message_attachments/action_button/action_button.tsx from Class Component to Function Component (#26728)
* [MM-57718] Convert `./components/post_view/message_attachments/action_button/action_button.tsx` from Class Component to Function Component

* :refactor: improve code structure
2024-04-24 14:43:25 -04:00
Daniel Espino García
0d9b6b0ec8 Fix MM 56723 (#26643) 2024-04-24 17:09:49 +02:00