Commit Graph

17379 Commits

Author SHA1 Message Date
Scott Bishel
f35291169c
Add config setting to set default User Setting for filter join/leave message (#24047)
* initial submit, join/leave message

* i18n-extract

* additional changes for client config

* add unit tests

* fix unit tests

* change tests to use string not bool

* more unit test fixes

* add and fix unit tests

* revert package-lock

* update unit tests

* Update default_config.ts

* fix unit test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-29 12:30:16 -06:00
Amy Blais
fe4a77498a
Update supported Chromium version (#24413)
Automatic Merge
2023-08-29 20:57:35 +03:00
Caleb Roseland
457dc7e7b9
MM-53683: Remove people product flag (#24387) 2023-08-29 11:26:58 -05:00
Miguel de la Cruz
fa9d0de478
Fixes config path for config-ldap and config-reset make targets (#24383) 2023-08-28 15:10:38 -06:00
Harrison Healey
8235b5bb44
MM-53989 Upgrade to Node 18 and NPM 9 (#24283)
* MM-53989 Update to Node 18 and NPM 9

* MM-53989 Remove skip_integrity_check.js

* Force e2e-test/cypress to use its version of TS for types package

* Update .nvmrc

* Update .nvmrc lineending

* Update server.override.yml

---------

Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 14:37:05 -04:00
Scott Bishel
053041cd2c
update help text (#24375)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 08:04:07 -06:00
Zubair Imtiaz
61dae292f7
[MM-53333] Modified the delete category modal to contain a cancel button #24290 (#24317)
* Added cancel button in the delete category modal

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 09:49:33 -04:00
Mario Vitale
895150050f
CLD-6206 - Mirror node 18 images (#24385)
* Mirror node 18 images
* Pin node 18 image version
2023-08-28 15:26:44 +02:00
Tasawar Hussain
77b19a0d3a
MM-53926 fix commented on display name (#24322)
* Sync giphy package versions in package-lock.json file

The versions were added automatically after starting the server, so seems like lock file is not synced

* Use main user_profile component in commented_on to fix displayName

* Refactor commented_on component from class to dumb/function component

* Resolved comments and make eslint happy

* Remove display name prop being passed to UserProfile component

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-28 15:25:12 +02:00
Ben Schumacher
4790a60369
Fix gotestsum configuration for mmctl tests (#24354) 2023-08-28 14:01:14 +02:00
Doug Lauder
84b52333c1
MM-53165 Add X-Forwarded-For header to audit for rest api calls (#24390)
* Add X-Forwarded-For header to audit for rest api calls

* fix unit test
2023-08-28 07:24:55 -04:00
Scott Bishel
0a499770e6
Add additional unit test for bot/user access (#24206)
* add unit test

* add unit test

* add unit test

* update additional test
2023-08-28 11:59:42 +02:00
mattermod
ab542c4dff Update latest version to 8.1.0 2023-08-28 07:22:30 +00:00
Julien Tant
9d569df9b4
[MM-22133] Allow exporting and importing archived channels (#23724) 2023-08-25 17:55:47 -07:00
Elias Nahum
f787fd6336
Sanitize user in update user response (#24362) 2023-08-25 19:31:48 -04:00
Caleb Roseland
818225dffe
MM-52981, MM-53559: Streamlined in-product marketplace (#24311) 2023-08-25 14:39:25 -05:00
Caleb Roseland
d57581d01e
Upgrade & verify prepackaged plugins in prep for remote marketplace decommissioning. (#24336) 2023-08-25 13:26:37 -05:00
Konstantin
563feafa46 Translated using Weblate (Russian)
Currently translated at 100.0% (5655 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ru/
2023-08-25 14:48:12 +02:00
Hosted Weblate
02f5a61a63 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/
2023-08-25 14:48:12 +02:00
kaakaa
2b53038ef0 Translated using Weblate (Japanese)
Currently translated at 100.0% (5648 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ja/

Translated using Weblate (Japanese)

Currently translated at 97.2% (5495 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ja/
2023-08-25 14:48:12 +02:00
Hosted Weblate
7d98f0c9d2 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/
2023-08-25 14:48:12 +02:00
Tom De Moor
84e17bc134 Translated using Weblate (Dutch)
Currently translated at 99.9% (2464 of 2465 strings)

Translation: mattermost-languages-shipped/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/nl/

Translated using Weblate (Dutch)

Currently translated at 100.0% (5648 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/nl/
2023-08-25 14:48:12 +02:00
jprusch
78d49a52cd Translated using Weblate (German)
Currently translated at 100.0% (5655 of 5655 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/

Translated using Weblate (German)

Currently translated at 100.0% (5648 of 5648 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/
2023-08-25 14:48:12 +02:00
Mattermod
5edba9c019
Update minor version to 9.0.0 (#24364)
Automatic Merge
2023-08-24 21:57:35 +03:00
Christopher Poile
69c11cfe14
MM-53924 - Implement push notifications plugin hook and plugin api method (#24350)
* Revert "MM-52804 - Implement SendPushNotification plugin api method (#24273)"

This reverts commit 8418eefb75.

* Revert "MM-53924 - Implement NotificationWillBePushed plugin hook (#24263)"

This reverts commit f13a531bca.

* implement NotificationWillBePushed plugin hook

* implement SendPushNotification plugin api method

* move where we're setting post and channel type

* fix comment

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-24 12:33:53 -04:00
Harrison Healey
dad579daee
MM-54211 Fix Unreads category being visible with no unread channels (#24334) 2023-08-24 10:33:47 -04:00
Jesse Hallam
12f84cdf63
Pre-package Playbooks v1.38.1 (#24300)
Automatic Merge
2023-08-24 15:27:35 +03:00
Ibrahim Serdar Acikgoz
639d73b3e7
api4/user: Deduplicate userids for getUsersByIds endpoint (#24344) 2023-08-24 15:14:01 +03:00
Jesús Espino
4145fd2f4e
Add support for actions in the unreads bar from plugins (#24265)
* Add support for actions in the unreads bar from plugins

* Adding channelId as parameter

* Fixing linter errors

* Changing the extensibility to the new messages separator

* Making everything work with the plugin

* Fixing linter and types errors

* Fixing unit test

* Tiny improvement in the styles

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-24 12:20:29 +02:00
Scott Bishel
f46694037d
update prepackaged boards to v7.11.3 (#24330)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-24 10:05:03 +02:00
Agniva De Sarker
555009aa82
Bumping up migration number to 111 (#24341)
PR https://github.com/mattermost/mattermost/pull/24039 was reverted
which left an erroneous migration 110. So to workaround this,
we create a new migration with number 111.

```release-note
NONE
```
2023-08-23 21:15:53 +05:30
Agniva De Sarker
5fc794eb17
Bumping up our Grafana/Prom dev docker image (#24337)
We were using 8.x version of Grafana which was quite old.
Pinning Prom image to latest stable as well following our
other images.
```release-note
NONE
```
2023-08-23 14:10:24 +05:30
Harrison Healey
e2a5293e2e
MM-53999 Fix keyboard support for Menu components (#24282)
* Cherry-pick test changes from #24243

* Add required change from Saturn's PR to make reminder menu accessible

* MM-53999 Flip provider order so that MUI props are passed

* MM-53999 Pass MUI props through custom MenuItem components

* Address feedback

* Update snapshots
2023-08-22 12:53:02 -04:00
Tasawar Hussain
e48efdc5da
Sync giphy package versions in package-lock.json file (#24314)
The versions were added automatically after starting the server, so seems like lock file is not synced
2023-08-22 10:38:56 -04:00
Ben Schumacher
2108517fae
[MM-54014] Run tests in public/... (#24320) 2023-08-22 12:48:53 +02:00
Ibrahim Serdar Acikgoz
d9af86f3ac
migration: preserve index names and a couple of fixes (#24296) 2023-08-22 12:57:40 +03:00
Ben Schumacher
ef89e9601c
[MM-54183] Remove deprecated Manifest.RequiredConfig field (#24319) 2023-08-22 10:39:27 +02:00
Matthew Straughn
2e449413e8
fixed initialism errors in accordance with golang conventions in 7 files. (#24287) 2023-08-22 10:15:51 +03:00
Ben Schumacher
4ed3dc81bc
Run make modules-tidy (#24321) 2023-08-22 09:15:05 +02:00
Agniva De Sarker
5c33f51b03
Add missing return (#24288)
```release-note
NONE
```
2023-08-21 16:53:36 -04:00
Miguel de la Cruz
be68398c7f
Updates post text processing to fetch nonexisting custom groups (#24292)
* Updates getProfilesAndStatusesForPosts to fetch nonexisting custom groups

* Fix linter

* Rename method

* Adds an action test

* Using a set on loadedProfiles instead of an array
2023-08-21 09:20:49 -06:00
Agniva De Sarker
dd73c2af0f
MM-53879: Fix recursive loading of license (#24200)
There were multiple problems with loading of a license.

1. It was called from inside app/server.go and app/platform/service.go. The first one wasn't really needed anymore, so we remove it.

2. To make loading of a license work across a cluster, the license load action was attached along with the `InvalidateAllCachesSkipSend` method. But the problem with that was that it would even get called in the caller node as well, putting it in a recursive loop.

```
LoadLicense -> SaveLicense -> InvalidateAllCaches -> InvalidateAllCachesSkipSend -> LoadLicense
```

To fix this, we create a dedicated loadLicense cluster event and move it away from the `InvalidateAllCachesSkipSend` method. And then from the caller side, we just trigger this action.

3. We also remove the first call to check license expiration which would load the license again. This is unnecessary because if the license is expired, server wouldn't start at all.

While here, we also make some other improvements like removing unnecessary goroutine spawning while publishing websocket events. They are already handled asynchronously, so there is no need
to create a goroutine for that.

We also remove

```
ps.ReloadConfig()
ps.InvalidateAllCaches()
```

from requestTrialLicense as they are already called from inside `*PlatformService.SaveLicense`.

And lastly, we remove the `*model.AppError` return from `*PlatformService.InvalidateAllCaches` because there was nothing to return at all.

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

```release-note
Fix several issues with loading of a license
```
2023-08-21 20:17:16 +05:30
Ben Schumacher
95b76e42ad
Use generics in utils.Merge (#24264) 2023-08-21 11:29:30 +02:00
Ben Schumacher
f231124f2d
Update to github.com/blang/semver/v4 (#24203) 2023-08-21 11:29:12 +02:00
Ben Schumacher
3ee5432664
[MM-53968] Includes mattermost-plugin-api into the mono repo (#24235)
Include https://github.com/mattermost/mattermost-plugin-api into the mono repo

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Michael Kochell <mjkochell@gmail.com>
Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Alex Dovenmuehle <alex.dovenmuehle@mattermost.com>
Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: Christopher Poile <cpoile@gmail.com>
Co-authored-by: İlker Göktuğ Öztürk <ilkergoktugozturk@gmail.com>
Co-authored-by: Shota Gvinepadze <wineson@gmail.com>
Co-authored-by: Ali Farooq <ali.farooq0@pm.me>
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Christopher Speller <crspeller@gmail.com>
Co-authored-by: Alex Dovenmuehle <adovenmuehle@gmail.com>
Co-authored-by: Szymon Gibała <szymongib@gmail.com>
Co-authored-by: Lev <1187448+levb@users.noreply.github.com>
Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Co-authored-by: Artur M. Wolff <artur.m.wolff@gmail.com>
Co-authored-by: Madhav Hugar <16546715+madhavhugar@users.noreply.github.com>
Co-authored-by: Joe <security.joe@pm.me>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: José Peso <trilopin@users.noreply.github.com>
2023-08-21 09:50:30 +02:00
M-ZubairAhmed
bc11b29807
Replace Gfycat with GIPHY in emoji/gif picker (#24236)
* Added the package

* design

* add styled-component alias

* add contrast ratio

* added the tab icon

* review comments

* rev comments

* key added

* key added

* trans

* Added giphy sdk test key for playwright tests config

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: maria.nunez <maria.nunez@mattermost.com>
2023-08-18 16:02:46 -04:00
Christopher Poile
8418eefb75
MM-52804 - Implement SendPushNotification plugin api method (#24273)
* add SendPushNotification plugin api method

* lint; add testing.Short bc of the sleep

* add interface and generated layers

* add fields to PluginPushNotification; generate mocks

* SendPushNotification -> SendPluginPushNotification; improved comments

* more comments; fix test

* send api.ctx
2023-08-18 13:05:26 -04:00
Christopher Poile
f13a531bca
MM-53924 - Implement NotificationWillBePushed plugin hook (#24263)
* add NotificationWillBePushed hook

* mocks

* use a struct for hook parameters; simplify number of parameters sent across RPC

* missing wg.Wait

* change to a bool return value
2023-08-18 12:01:50 -04:00
Andrey K
56a0becbca
[MM-32576] Text copied from Microsoft OneNote pastes as an image (v2) (#23530)
* [MM-32576] Text copied from Microsoft OneNote pastes as an image

* [MM-32576] Text copied from Microsoft OneNote pastes as an image (linter and tests fix)

* [MM-32576] Text copied from Microsoft OneNote pastes as an image (E2E tests fix: mock clipboardData.getData())

---------

Co-authored-by: Andrey Karavashkin <akaravashkin@stsoft.ru>
2023-08-18 07:37:58 -04:00
Christopher Poile
7b0b0d8609
MM-53764 - Fix: Improve limits on Opengraph Data Cache (#24177)
* enforce strict opengraph cache entry size limit

* move json marshalling and error checking into parsOpenGraphMetadata fn

* fix linting

* fix potential nil deref

* Revert "fix potential nil deref"

This reverts commit 095bcd496e.

* Revert "fix linting"

This reverts commit f3e1f7b276.

* Revert "move json marshalling and error checking into parsOpenGraphMetadata fn"

This reverts commit ba9a1e13b0.

* Revert "enforce strict opengraph cache entry size limit"

This reverts commit d1de4a8fa4.

* remove /opengraph api endpoint

* i18n

* removing unneeded action and reducer
2023-08-17 18:23:39 -04:00