Commit Graph

17340 Commits

Author SHA1 Message Date
Daniel Espino García
1f525550a5
Migrate access history modal to functional component (#24210)
* Migrate access history modal to functional component

* Fix tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-14 14:20:07 +02:00
Saturnino Abril
a93a01fa8f
MM-54004 migrate HeaderFooterNotLoggedIn as functional component (#24244)
* chore: MM-54004 migrate HeaderFooterNotLoggedIn as functional component

* fix about and HA links
2023-08-14 06:48:19 -04:00
Daniel Espino García
e9b3afecc2
Mark category as read (#24003)
* Mark category as read

* Fix lint and test

* Fix tests

* Fix test and remove wrong aria

* Address server issues and add mark as read for unreads

* Missing changes

* Fix tests

* fix tests

* Add confirmation popup to mark as read category

* Always use viewMultipleChannels and other fixes

* Remove unneeded code

* Fix test

* Address feedback

* Address feedback

* Fix tests

* Fix test

* Fix tests

* Update aria-haspopup depending on the number of channels to mark as viewed

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-14 10:01:02 +02:00
Daniel Espino García
c1c07ba1bb
Migrate components/post_view/post_flag_icon/post_flag_icon.tsx from class to function component (#24187)
* Class to functional example 3

* Address feedback

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-11 16:57:25 +02:00
Jesse Hallam
544ceeba3e
setup-node for master build from server (#24247) 2023-08-11 10:53:50 -03:00
Amy Blais
6c18ac49f3
Update NOTICE.txt (#24119)
Automatic Merge
2023-08-11 01:57:32 +03:00
Jian Lim
28848963e4
Update NOTICE.txt (#24234) 2023-08-10 17:17:33 -04:00
Harrison Healey
1f95a8f52b
MM-50953 Post textbox cleanup (#23971)
* Remove unused code around scrollbarWidth

* MM-50953 Remove unused code for popover at mentions

* Add tests for messageHtmlToComponent wrapper
2023-08-10 15:22:48 -04:00
Jesse Hallam
c4949a664d
.npmrc: engine-strict (#24217)
Enforce the existing `engine` directives requiring node at `16.x` and npm at `7.x`, failing with a clear error message if a mismatch exists:

```
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: undefined
npm ERR! notsup Not compatible with your version of node/npm: undefined
npm ERR! notsup Required: {"node":"^16.10.0","npm":"^7.24.0"}
npm ERR! notsup Actual:   {"npm":"8.5.0","node":"v16.14.2"}

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jesse/.npm/_logs/2023-08-08T15_09_40_758Z-debug-0.log
```

This change makes the version mismatch exceedingly and immediately clear instead of the developer having to infer from an obscure error much later on in the installation process.
2023-08-10 15:23:54 -03:00
Julien Tant
4a4bf77f74
Update README.md: Try cloud instead of use (#24242) 2023-08-10 11:22:01 -07:00
Saturnino Abril
ecf7cdbdea
fix(accessibility): tab support at login, reset and signup pages, buttons at ATE and app bar (#24214) 2023-08-10 08:53:13 -04:00
Agniva De Sarker
45a14e23a9
MM-53228: Adding schema version to cluster info (#24209)
With the schema version available, a job can query for
the cluster info to confirm whether or not all nodes
in a cluster are upgraded to the same version or not.

This will help it in determining whether to start
the job or not.

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

```release-note
NONE
```
2023-08-10 09:40:49 +05:30
Jian Lim
ace88288f0
Update to github.com/golang-jwt/jwt/v5 (#24208)
* Update to github.com/golang-jwt/jwt/v5

* Update server/channels/app/platform/license.go

Co-authored-by: Juho Nurminen <juhonurm@gmail.com>

---------

Co-authored-by: Juho Nurminen <juhonurm@gmail.com>
2023-08-10 00:39:01 +05:30
Jesse Hallam
7818d5a348
plugins: further logging tweaks, fixes (#24229)
Fix a logging issue for prepackaged plugins error handling trying to reference a `nil` pointer.

Relates-to: https://mattermost.atlassian.net/browse/MM-53355
2023-08-09 11:54:41 -03:00
Ben Schumacher
122dbaf373
[MM-40531] Remove deprecated ManifestExecutables struct (#24212) 2023-08-09 10:36:12 +02:00
Ben Schumacher
7ecf6c0b5c
[MM-53943] Remove deprecated UserAuth.Password field (#24213) 2023-08-09 10:35:53 +02:00
Jesse Hallam
8372267739
MM-53355: tidy up plugins (#24194)
* remove feature flag managed plugins

* remove unneeded plugin blocklist

* remove unnecessary wrappers

* documentation and logging improvements

* avoid use of global logger
* leverage wrapped loggers (e.g. consistently log `plugin_id`)
* promote some logs from `Debug` to `Info` for better visibility.
* extract installPluginToFilestore
* rename some variables for consistency / clarity

* make generated
2023-08-08 18:29:57 -03:00
Harrison Healey
0e30d0abb8
Disable certain actions from running on forks (#23747)
* Disable certain actions from running on forks

* Address some feedback

* Check for forks in build-docker job
2023-08-08 16:45:24 -04:00
Jesús Espino
e1c6ae7d85
Adding PostAction plugin hook (#24102)
* Adding PostAction plugin hook

* Adding missing doc string

* WIP

* Simplifying it

* Adding support for selected text

* fixing linter errors

* Adding support for the plugin editor action in the thread view

* Fixing ci check-types

* Addressing PR review comments

* Fix linter error in CI

* Fixing tests
2023-08-08 11:36:37 -07:00
Mario Vitale
60fb112a27
Fix: adapt e2e scripts to support MacOS as well (#24147)
* Adapt e2e scripts to support MacOS as well
2023-08-08 14:36:20 +02:00
Antonis Stamatiou
0e92139bea
feat: Introduce workflow to tag server public module (#24190) 2023-08-08 10:16:54 +03:00
Jesse Hallam
e39b485c4b
Fail vs. fatal on store startup (#24170)
If the store fails to initialize (e.g. run a migration), it would `log.Fatal` and then `os.Exit`. Unfortunately, this trips up `TestMain`, which happily keeps running tests, now guaranteed to fail.

Avoid this by instead returning an error from the store initialization, handling appropriately at the layer above.
2023-08-04 23:05:01 -03:00
Jesse Hallam
c030bb44f5
MM-53905: Skip racy test testGetUptoNSizeFileTime (#24173) 2023-08-04 13:27:08 -03:00
Christopher Poile
7bca8b11d2
calls -> v0.18.0 (#24186) 2023-08-04 08:35:59 -06:00
Jesse Hallam
d9edb84523
Revert s3 path prefix normalization for plugins (#24184)
This reverts 0af0a4eff4. During the [implementation](https://github.com/mattermost/mattermost/pull/15910) we [discussed](https://github.com/mattermost/mattermost/pull/15910#issuecomment-705925227) fixing the underlying issue. When we did [fix](https://github.com/mattermost/mattermost/pull/15949) the underlying issue, we didn't revert these changes.

Revert it now to simplify the code.
2023-08-04 11:24:53 -03:00
Jesse Hallam
885802eae7
Updated API Code Samples (#24141)
* api: remove PHP code samples

* api: remove Curl code samples

* api: remove Go code samples

* link out to marketplace exclusively for community-built drivers

* absolute path to V4_SRC

* programmatically extract x-codeSamples

* initial batch of examples

* Update api/server/main.go

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>

* Update api/server/main.go

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>

* Update api/server/main.go

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>

* updated examples

---------

Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
2023-08-03 12:45:10 -03:00
Alejandro García Montoro
72b648cf81
Remove unused functions getPing and resetPing (#24065)
* Remove unused functions getPing and resetPing

* Remove PING_RESET

* Remove unused import lines

* One more to go

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-02 21:19:02 +02:00
Julien Tant
d1691833ad
[MM-53881] Make sure export filestore won't use bifrost (#24169) 2023-08-02 09:44:20 -07:00
Jesse Hallam
f436b3d9a8
remove legacy "Build API specification" workflow (#24142)
Now that the API source is part of the monorepo, this is already handled by the new api workflow, and can simply be removed.
2023-08-02 12:54:16 -03:00
Agniva De Sarker
ce92ab7e1c
Update vacuuming parameters for some tables (#23997)
After some analysis of vacuuming statistics of our large
Postgres customers, it was observed that the default vacuuming
thresholds for some tables are not optimal enough for our workload.

We need more frequent vacuuming for some tables. The analysis
showed that the top 4 tables that needed rectification
were posts, preferences, threadmemberships and fileinfo.

So we reduce the threshold by half for those tables, triggering
autovacuum and autoanalyze doubly often.

```release-note
NONE
```
2023-08-02 21:18:18 +05:30
Jesse Hallam
933b0eb89c
MM-53877: fix export config settings (#24167)
* wip test

* test and use Export* config correctly
2023-08-02 10:24:52 -03:00
Nick Misasi
0b3457c672
Add '(Only visible to admins) to license overature banners (#24166)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-08-02 08:53:43 -04:00
Jesse Hallam
62d49350e5
API Updates (#24105)
* fix missing /api/v4 prefix for commands autocomplete suggestion

* document /api/v4/ldap/users/{user_id}/group_sync_memberships

* document /api/v4/groups/{group_id}/restore

* fix /files/{file_id}/public actually at root

* document /api/v4/users/invalid_emails
2023-08-01 21:47:37 -03:00
Jesse Hallam
f4bd39d2de
Use | and \ vs. > (#24111)
GitHub actions' YAML supports the `>` directive to a multi-line command to be merged into a single line, but requires that all segments have no leading whitespace otherwise they get silently ignored.

Since this is not nearly as obvious as one might expect, fallback to just the `|` syntax using `\` to extend the lines and keep the overall formatting, fixing the reporting of retried tests via curl webhook.
2023-08-01 11:25:51 -03:00
Pablo Andrés Vélez Vidal
ef3aec40ac
MM-53609 - remove channels from archived teams during search (#24053)
* MM-53609 - remove channels from archived teams during search

* filter channels after the channels from server are fetched

* filter only channels, not DM or GM

* add unit tests; prevent blinking when searching for terms
2023-07-31 23:23:47 +02:00
Elias Nahum
aa88f8bf59
Add read_channel_content permission (#24118)
* Add read_channel_content permission

* fix tests

* update system console default permissions per role

* add read_channel_content to e2e defaultRolesPermissions

* Migration to include custom roles

* change deprecated isNotExactRole for isNotRole

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-31 09:12:53 -04:00
Devin Binnie
047583947f
[MM-53636] Add channel/team name back for the Saved Posts view (#24117)
* [MM-53636] Add channel/team name back for the Saved Posts view

* E2E test
2023-07-28 15:35:18 -04:00
Saturnino Abril
93a2c3281a
MM-53813: Fix(accessibility): on channels page (#24122)
* fix(accessibility): on channels page

* fix lint and update dynamic-virtualized-list

* fix snapshot and update per feedback

* fix e2e tests

* fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-28 11:17:11 -04:00
Claudio Costa
a47af39d80
Include connection ID in webconn related logs (#24143) 2023-07-27 08:24:39 -06:00
mattermod
d7697f3b39 Update latest version to 8.0.1 2023-07-27 11:56:22 +00:00
Pablo Andrés Vélez Vidal
525c21a9d3
MM52237 - prevent fetching fileCount from unnecessary places (#23981)
* MM52237 - prevent call file count from unnecesary places

* rename the variable to make more clear function signature
2023-07-27 11:48:36 +02:00
Qrypt
93b7957de3
Mm 52178 Fix "registerMessageWillBeUpdatedHook" not running (#23763)
Automatic Merge
2023-07-26 21:57:32 +03:00
Agniva De Sarker
b47754e268
MM-53747: Do not start if job is in-progress as well. (#24115)
We missed this out last time. It's possible in an HA
scenario for a second pod to start later while the other
job is in-progress. In that case, it would schedule
two jobs.

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

```release-note
NONE
```
2023-07-26 20:32:50 +05:30
Harrison Healey
f10487c511
MM-50460 : Remove max-width from AdvancedTextEditor (#23970) 2023-07-26 15:01:37 +05:30
Maria A Nunez
12c829032f
Fix user is typing font size (#24096)
* Fix user is typing font size

* PR feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-25 21:59:10 -04:00
Jesse Hallam
9b05bfa8dc
Pre-package Playbooks v1.38.0 (#24106) 2023-07-25 22:22:47 -03:00
3kami3
5b3833839e
Fixed missing zoneinfo (#23759) (#23760)
* added tzdata
* set noninteractive installation

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-25 17:32:49 +02:00
Ibrahim Serdar Acikgoz
2a4de2eecc
Revert "Add read_channel_content permission (#24018)" (#24114)
This reverts commit a19ce047ba.
2023-07-25 13:17:58 +03:00
Harshil Sharma
26617fcbdc
Remove insights (#23952)
* removed server side

* Updated store layer

* unused import

* Updated autogenerated code template

* Updated tests

* lint fix

* unused translations

* webapp side

* Updated i18n

* lint fix:

* type fix

* Updated snapshots

* Removed insights from API specs

* updated e2e

* Updated e2e tests

* Updated e2e tests

* Removed insights tests

* Removed Insights as possible channel to load in sidebar from test

* Removed more insights tests

* More e2e fixed

* More cleanup

* Lint

* More cleanup in client4 and boards api

* More cleanup

* Fixes

* lint fix

---------

Co-authored-by: maria.nunez <maria.nunez@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-07-25 12:34:38 +05:30
M-ZubairAhmed
e37459cd00
MM-53230 : Remove custom polyfilled 'getClosestParent' with browser 'closest' (#24086) 2023-07-25 08:39:46 +05:30