Commit Graph

18822 Commits

Author SHA1 Message Date
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
Caleb Roseland
90534b13cf
MM-56774: Delete file along with bookmark (#27495) 2024-07-03 08:31:39 -05:00
Akis Maziotis
762ff9b96c
[chore] migration of plugin-store (#27506)
Plugin store is gradually migrated from:
- https://plugins-store.test.mattermost.com
to
- https://plugins.releases.mattermost.com

We reflect that change here

Note: Currently both CDN's are working as expected, to facilitate the mgiration. Upon succesfull migration, https://plugins-store.test.mattermost.com will be decomissioned
2024-07-03 08:23:43 +03:00
Ben Cooke
1f9c9486b8
fix panic in migrations (#27494) 2024-07-02 09:08:23 -04:00
unified-ci-app[bot]
8dcd839766
Update latest minor version to 9.11.0 (#27496)
Automatic Merge
2024-07-02 15:57:50 +03:00
Ben Schumacher
213ebc57fb
Print panic message when mmctl panics (#27390) 2024-07-02 13:58:37 +02:00
Takuya N
a3c1272cb6
chore(api redoc): remove api/redoc-static.html (#27500)
The orphaned file unexpectedly introduced in the old PR in 2020
can now be removed as it originally is orphaned and not referenced
at all.

- mattermost/mattermost-api-reference PR 503

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2024-07-02 13:49:30 +02:00
Scott Bishel
b78175c390
require Permission to user to mark channels as read (#27468) 2024-07-02 13:35:43 +02:00
Julien Tant
d0c4e820a4
[MM-58840] Add routing restrictions (#27482) 2024-07-01 11:05:38 -07:00
Takuya N
6bfd309573
chore: update package metadata for API reference (#27462) 2024-07-01 14:46:49 +02:00
Arya Khochare
8b52ac3b8b
[MM-58509] Migrate tooltips of "components/admin_console/user_grid/user_grid_role_dropdown.tsx" to WithTooltip (#27242) 2024-07-01 08:48:42 +00:00
MeHow25
f36eb59f21
[MM-58405] Migrate tooltips of 'components/announcement_bar/default_announcement_bar/announcement_bar' to WithTooltip (#27244)
* Migrate tooltips of 'components/announcement_bar/default_announcement_bar/announcement_bar' to WithTooltip

* Review fixes

* Review fix

* Fix imports

* Update snapshots

* Test fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-07-01 09:33:52 +02:00
Caleb Roseland
f12eb75d25
MM-54416: Channel Bookmarks Web UI (#25889)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2024-06-28 15:58:14 -05:00
Asaad Mahmood
a5d263f26c
MM-58496 - Updating channel font size (#27445)
* MM-58496 - Updating channel font size

* Updating lineheight
2024-06-28 21:57:43 +05:00