Commit Graph

18835 Commits

Author SHA1 Message Date
Christopher Speller
fa8269e4ab
Update Copilot plugin prepackaged version to 0.8.3 (#27645) 2024-07-15 04:23:49 -07:00
Daniel Espino García
a272fb29a5
Unify advanced create post and advanced create comment (#26419)
* Unify advanced create post and advanced create comment

* Re-add focus on mount prop and fix minor selector issue with get draft

* Address feedback

* Some merge fixes and some comments addressed

* Remove tests

* Fix tests

* Address feedback

* Fix formatting bar spacer and minor refactoring

* Fix remove upload from clean draft issue

* Fix types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-15 10:14:14 +00:00
Ben Schumacher
ff3ed78124
[MM-59292] Add metadata to Support Packet (#27573) 2024-07-14 20:26:43 +02:00
Ben Schumacher
a4bdb65037
[MM-55215] Remove deprecated LdapSettings.Trace (#27376) 2024-07-13 10:31:33 +02:00
Ben Schumacher
bbc8baac0a
[MM-59350] Include LDAP vendor errors in Support Packet (#27571) 2024-07-13 10:17:07 +02:00
Ashish Dhama
9bb22a369a
MM-54856: Place emoji at cursor position while editing message (#27418)
* MM-54856: fix issue with emoji position in edit post editor

* use useRef instead of useState

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-12 15:59:22 -04:00
Jesús Espino
a4f2ec744c
Adding Do not disturb and remote user hour warnings (#27138)
* Adding Do not disturb and remote user hour warnings

* Do not show the hour warning on your own DMs

* style tweaks

* Some fixes

* Linter fixes

* Updating snapshots

* Improving the robustness of this solution

* Some improvements on keeping up the hour in the interface

* i18n-extract and fix linter errors

* Removing colon where is not needed

* Removing the time from 6-7 to be shown

* Addressing PR Review Comments

* Changing the remote user hour icon

* Changing back to fill and not outline icon

* Addressing PR review comments

* Fixing the RHS showing this

* Removing unneeded check

* Fixing linter error

* Update webapp/channels/src/components/advanced_text_editor/do_not_disturb_warning.tsx

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>

* Addressing PR review comment

* adding consistency to show the DND and Late hours message

---------

Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
2024-07-12 20:11:43 +02:00
Christopher Poile
a3edc70019
[MM-58750] Update prepackage calls to v0.29.0 for MM v9.11 (#27642) 2024-07-12 11:46:24 -04:00
Ben Schumacher
7434b524af
[MM-56655] Remove deprecated Config.ProductSettings (#27375) 2024-07-12 16:33:19 +02:00
Harshil Sharma
40abf8ef66
Updated required role for user report page GET API (#27529)
* Updated required role for user report page GET API

* Updated permission in error message

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-12 11:13:09 +05:30
Akis Maziotis
22604d4592
[fix] ci container image scanning (#27631)
Fixup on https://github.com/mattermost/mattermost/pull/27624
Exposing the tag variable to be used in the scanning step.

Ticket: https://mattermost.atlassian.net/browse/CLD-8041

Signed-off-by: Akis Maziotis <akis.maziotis@mattermost.com>
2024-07-12 08:34:56 +03:00
Harshil Sharma
87d983cc7f
Sysadmin manage user settings (#27583)
* Opened modal from system console

* WIP

* WIP

* WIP

* Handled saving user

* Successfully updated user based settings

* WIP

* WIP

* All settings are updating well

* Fixed modal style

* Added admin mode indicators in modal

* Added confirmation dialog

* Lint fixes

* Added license check

* Added permission check

* Fixed i18n file order

* type fix

* Updated snapshots

* Handled performance debugging setting

* Some styling tweaks

* Fixed text alighnment

* Updated license required from professional to enterprise

* Handled long user names

* review fixes

* Added manage setting option in user list page context menu

* Added loader

* Minor reordering

* Removed confirm modal

* Updated snapshots for removed modal

* Added some tests

* Lint fix

* Used new selector in user detail page

* Used new selector in user list page

* Updated tests

* Fixed an incorrect default test
2024-07-12 10:22:04 +05:30
Akis Maziotis
0df1a62f61
[feat] adding container image scanning (#27624)
Expanding on our ongoing efforts to enhance security, we are integrating container image scanning into the CI pipeline using Wiz.io
https://docs.wiz.io/wiz-docs/docs/github-pipeline

The policy defined, will be providing internal reports in wiz.io for our teams to review. Will not enforcing CI failure at this point.
2024-07-12 00:50:22 +03:00
Ben Cooke
d249d4d1b0
[MM-58778] Fixing white screen for GM conversion (#27385)
* fixing white screen for GM conversion
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-11 16:52:44 -04:00
Harrison Healey
7d80b5d04b
MM-59378 Skip flaky PerformanceReporter test (#27626) 2024-07-11 13:06:02 -04:00
Paweł Pohl
43b70e287a
MM-58351 Fix showing LHS scrollbar when moving mouse over on chrome and safari (#27160)
* fixing scrollbar not showing when moving mouse over sidebar

* making scrollbar hidden by default and keep shown when hover over channel list

* updating sidebar_list snapshot
2024-07-11 11:13:01 -04:00
Daniel Espino García
e8b4892877
Fix several re-renders on init (#26361)
* Fix several re-renders on init

* Fix tests

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-11 12:58:56 +02:00
Doug Lauder
19d59d1126
MM-58245 Don't allow patching real email or username for remote users (#27613)
* don't allow patching real email or username for remote users

* add comment
2024-07-11 10:17:09 +02:00
Agniva De Sarker
177389d224
MM-53962: Adding ES8 dependency (#24399)
* Adding ES8 dependency

```release-note
NONE
```


Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-11 13:13:31 +05:30
Ibrahim Serdar Acikgoz
a695a755f6
Update .server/gitignore to ignore all JSON files under the directory (#27593) 2024-07-11 09:12:57 +02:00
Mario Vitale
731f056f54
Support release testing (#27587)
* Support release testing
* Merge resolve-ref and generate-test-variables jobs
2024-07-10 16:47:26 +02:00
Scott Bishel
5d7027a172
MM-58776 - Change Ancillary Permissions API to POST (#27504)
* make /ancillary a post

* remove get from client, fix tests

* Update permissions.yaml
2024-07-10 08:12:56 -06:00
Harmeet singh
7c2a461de8
[MM-56921] Rendered Latex in Codeblock when rendering disabled (#27060)
* Rendered Latex in Codeblock when rendering disabled

* Fixed Lint error

* Removed render function in Latex Component

* Fix errors preventing LatexBlock unit tests from running

* Updated latex disabled test for Codeblock testing

* Fixed latex_block test lint errors

* Removed Latex disabled test Snapshot

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-09 16:47:33 -04:00
Harrison Healey
e3b2b13292
MM-58535 Add more information to LCP and INP metrics (#27484)
* Improve mocking of imported resources in unit tests

We have Webpack configured so that, when code imports an image or other resource, the code gets the URL of that image. Jest now matches that behaviour which is needed because React Testing Library would previously throw an error.

* Polyfill ResizeObserver in all unit tests

* Ensure haveIChannelPermission always returns a boolean value

The previous code could sometimes return undefined. While that should behave the same in practice, it can cause React to print prop type warnings

* MM-58535 Add region label to LCP metrics

* MM-58535 Upgrade web-vitals and add INP attribution

* Change new labels to use snake_case

* Remove replaceGlobalStore option from renderWithContext

I was going to add this in case any tests failed with this option set to false, but after running those tests, that's not the case. I'm going to remove this as an option since it seems more likely than not that anyone using RTL would prefer to have this on.
2024-07-09 15:06:08 -04:00
Scott Bishel
99881b819a
MM-58548 Remove manage_team permissions from System Console Ancillary permissions (#27395)
* remove manage team permissions from sysconsole_write_user_management_chanels and sysconsole_write_user_management_groups

* update migrations, add unit tests

* run migrations-extract

* make updating ancillary permissions a post

* update file names

* add new api to doc, update body to just be []string

* revert moving ancillary permissions to post

* fix queries after final testing

* Update channel.go

* Update channel.go

* Update 000124_remove_manage_team_permission.up.sql

* Update 000124_remove_manage_team_permission.up.sql

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-09 08:21:29 -06:00
Matthew Birtch
485dc64c5f
add hover state to accordions and tweaks styles (#27577) 2024-07-09 16:20:34 +02:00
Takuya N
6010ff5521
Remove dup stylelint depdendencies in webapp/channels (#27499) 2024-07-09 13:14:53 +00:00
Ben Schumacher
6fc5ff572f
Don't modify global variables in TestNoticeValidation (#27591) 2024-07-09 12:36:08 +02:00
Raghav Aggarwal
00dc08824c
Bump prepackage Github plugin version to 2.3.0 (#27572) 2024-07-08 20:44:44 -04:00
Christopher Poile
9b2f20210b
[MM-56339] Audit logs: on login add UserId and SessionId to audit's Actor field (#27446)
* on login add UserId and SessionId to audit's Actor field to match logout

* lint

* simplify to add only userId and sessionId

* AddToEventActor -> AddUser/SessionToEventActor

* fill in missing session data when logging the audit record

* why did it bump that? reverting.

* make modules-tidy

* trigger build

* add more context to the comment
2024-07-08 18:56:54 -04:00
Ben Schumacher
9f312f48b5
[MM-58004] Update logged fields of users (#26860) 2024-07-08 20:05:14 +00:00
Ben Schumacher
0e6bfbdd26
[MM-57963] Log Name and DisplayName of groups (#26836) 2024-07-08 21:25:21 +02:00
Ben Schumacher
3513d310af
[MM-58003] Allow setting AdvancedLoggingJSON via mmctl (#27388) 2024-07-08 21:20:25 +02:00
Ningthoujam Swamikumar Singh
d939c1bd46
[MM-58856] Migrate tooltips of "components/copy_button.tsx" to WithTooltip (#27433) 2024-07-08 16:50:55 +00:00
Weblate (bot)
e0688e237b
Translations update from Mattermost Weblate (#27586)
Automatic Merge
2024-07-08 17:57:50 +03:00
Miguel de la Cruz
bc49f348bf
Correctly merge plugin configuration on mmctl config patch (#26647)
* Adds a step to the config patch command to merge plugin configurations

* Fix linter

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-08 11:54:40 +02:00
Felipe Martin
4e32da62fa
chore: improvements to keycloak local development (#26518)
* update keycloak docker image

* update realm file with a compatible realm

* import realm on start-docker command

Since bitnami's image does not support importing directly, the import of the test realm is done in the make file start-docker action

* Use official image from quay

* updated realm keycloak config

* final note about nickname attrib for saml

* add admin user

* update realm

* Updated from master

* Updated docs

* local typo

* use jq for ldap and saml

* updated readme
2024-07-08 08:16:09 +02:00
Agniva De Sarker
db45c0132e
MM-57824: Export/import custom status (#27361)
https://mattermost.atlassian.net/browse/MM-57824
```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-08 09:41:25 +05:30
Miguel de la Cruz
b596430920
Orders results of the GetAll remote clusters store method (#27548) 2024-07-05 13:53:47 +02:00
Daniel Espino García
e5a3dd7fea
Add platform information for push notification metrics (#27460)
* Add platform information for push notification metrics

* Address feedback

* Add the client platform returned by the devices to the normalize function

* Add "no platform" platform label to distinguish from unknown
2024-07-05 09:34:01 +02:00
Ben Schumacher
6bbf7bbb9f
Update Packet metadata generation based on feedback (#27490) 2024-07-04 21:56:38 +02:00
suraj-anthwal
9f396c9294
[MM-58443] Migrate tooltips of 'components/global_header/right_controls/saved_posts_button/saved_posts_button.tsx' to WithTooltip (#27185)
* add withtooltip handling

* add withtooltip handling

* placed icon inside tooltip

* Update saved_posts_button.tsx

* Update saved_posts_button.tsx

* Update saved_posts_button.test.tsx.snap

* Update saved_posts_button.tsx

---------

Co-authored-by: surajanthwal <surajanthwal2010@gmail.com>
Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-04 23:38:08 +05:30
Ben Schumacher
6d427cf005
Revert "Added GetPluginID method and tests (#27281)" (#27540)
This reverts commit 4acc4796ed.
2024-07-04 13:13:15 -04:00
Miguel de la Cruz
3e4d91590f
Skips flaky test on the remote cluster API (#27547)
* Skips flaky test on the remote cluster API

* Adds ticket link to the `t.Skip`
2024-07-04 14:58:16 +00:00
Miguel de la Cruz
809ad4f76d
Adds Remote Cluster related API endpoints (#27432)
* Adds Remote Cluster related API endpoints

New endpoints for the following routes are added:

- Get Remote Clusters at `GET /api/v4/remotecluster`
- Create Remote Cluster at `POST /api/v4/remotecluster`
- Accept Remote Cluster invite at `POST
/api/v4/remotecluster/accept_invite`
- Generate Remote Cluster invite at `POST
/api/v4/remotecluster/{remote_id}/generate_invite`
- Get Remote Cluster at `GET /api/v4/remotecluster/{remote_id}`
- Patch Remote Cluster at `PATCH /api/v4/remotecluster/{remote_id}`
- Delete Remote Cluster at `DELETE /api/v4/remotecluster/{remote_id}`

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

* Update server/channels/api4/remote_cluster_test.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

* Fix AppError names

---------

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-04 10:35:26 +02:00
Christopher Poile
cc5e87ae24
[MM-57942] Fix a panic on password is too long (#27449)
* return error from bcrypt, handle gracefully; remove dead code

* linting

* linting

* i18n

* fix test

* fill out translations
2024-07-03 17:58:26 -04:00
Amy Blais
5d2bf1ea1c
Update ISSUE_TEMPLATE.md (#27538)
Automatic Merge
2024-07-03 23:57:50 +03:00
Scott Bishel
0dbef88cfc
MM-58771 - Make manage_server permission, non updatable (#27481)
* make manage_server, non updatable

* remove blank line
2024-07-03 12:41:20 -06:00
Weblate (bot)
35dda81e32
Translations update from Mattermost Weblate (#27507)
* Translated using Weblate (German)

Currently translated at 100.0% (2510 of 2510 strings)

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

* Translated using Weblate (German)

Currently translated at 100.0% (5775 of 5775 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (2510 of 2510 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (5775 of 5775 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.9% (5771 of 5775 strings)

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

* Translated using Weblate (Serbian)

Currently translated at 10.5% (611 of 5775 strings)

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

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 6.3% (369 of 5775 strings)

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

* Translated using Weblate (German)

Currently translated at 100.0% (5801 of 5801 strings)

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

---------

Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: homerCOD <anicin.goran@gmail.com>
Co-authored-by: Frank Paul Silye <frankps@uio.no>
2024-07-03 15:26:35 -03:00
Ivy Gesare
0e6ed3d490
[MM-58686] Adjust text alignment on custom status tooltip (#27353)
* Change: Adjust text alignment on custom status tooltip
Change: Update 'Today' expiry time calculation on custom_status_modal

* Change: Use display inline-block instead of flex for custom-status class

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-03 11:54:14 -04:00