Commit Graph

16819 Commits

Author SHA1 Message Date
LeonardJouve
a85c0b87b8
[MM-52547] Include current user profile in every redux action (#23219)
* update user status on reconnect

* small type improvement

* profiles reducer: merge old profiles with new ones

- remove current user exclusion from profiles received
- merge old profiles with new ones

* profiles reducer unit test

profiles reducer should merge existing users with new ones

* stop removing current user in profiles redux actions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-19 16:01:33 -04:00
Amy Blais
aef0f3c1bf
Revert "[MM-51274] Remove deprecated PermissionUseSlashCommands (#22819)" (#23405)
Automatic Merge
2023-05-19 21:04:30 +03:00
mattermod
60e6794554 Update latest version to 7.10.2 2023-05-19 07:49:39 +00:00
M-ZubairAhmed
1d7e338336
[MM-52787] webapp/playbooks : Remove 'babel-plugin-typescript-to-proptypes' from production (#23395)
* init

* modules auto
2023-05-18 17:28:49 -04:00
Vishal
9399ce8637
[MM-47751][MM-48102] MPA: Send Persistent Notifications (#21619)
* MM-46410: adds urgency on mention counts

We have introduced priority for posts in
https://github.com/mattermost/mattermost-webapp/pull/10951.
We do need to color the mention badges in the webapp with a prominent
color when a mention is posted in an urgent message.
A thread has urgent mentions if the root post is marked as urgent, and
the replies contain mentions to the user viewing the thread.

This PR adds two columns, urgentmentioncount, and isurgent, in
channelmembers, and threads tables respectively.
Furthermore when asking for team/thread mention counts, we also return
urgent mention counts for the user.

* Adds PostAcknowledgements table and apis

* job init and fetch mentions

* add-migrations

* delete-expired

* send-notifications

* Fetches post priority in batches

* stop-notifications

* stop-notification-on-reply

* MM-47750: Adds PostAcknowledgements table and apis

- Adds post acknowledgement api/app/store methods to be able to save and
delete post acknowledgements by users.
- Adds wesbsocket events for acknowledgement created/deleted
- Returns post acknowledgements in the post's metadata

* add-license-check

* add-pagination

* delete on channel and team

* validate guests

* add configs

* move create priority post check from app to api

* Add desktop notifications

* check status

* use config in job

* add IsUrgent check

* Add last-sent-at

* validate max recipients

* Update lastSentAt

* Validate min. recipient

* send email notification only once

* remove email notifications

* use latest time from config to run job

* Add notifications counter

* publish events to mentioned users only

* pickup license updates in scheduler

* don't allow post owner to stop notifications

* follow normal notifications behaviour

* Validates persistent notifications interval

* move logic of handling valid and expired posts into sql

* Adds persistent notifications in the webapp

---------

Co-authored-by: koox00 <3829551+koox00@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-18 23:44:12 +05:30
Akis Maziotis
ce165302cf [fix] download mmctl release script
Going from `release-7.9` to `release-7.10,` has introduced a bug, in the download_mmctl_release.sh script, in which it is unable to o match version numbers with multiple digits
Specifically, `release-7.10` returned `release-7.1` downloading wrong mmctl binary.

We are refactoring the regular expression used, to match version numbers with multiple digits.

Ticket: https://mattermost.atlassian.net/browse/CLD-5682
2023-05-18 18:08:23 +03:00
M-ZubairAhmed
5808b848c3
MM-52213 webapp/platform/components : Add unit test framework (#23366) 2023-05-18 17:40:12 +05:30
M-ZubairAhmed
c894cd3f30
[MM-52786] webapp/platform/client : Remove dev dependencies in favour of monorepo (#23393)
* init

* Update setupTests.ts
2023-05-17 16:51:11 -04:00
Harrison Healey
3b5e556e1c
MM-52438 Clean up web app CI and only run when web app code is changed (#23232)
* MM-52438 Only run web app CI for PRs with web app changes

* MM-52438 Don't wait to run web app tests in CI

* MM-52438 Remove commented out caching

* MM-52438 Reuse steps to set up webapp environment

* MM-52438 Add test-ci script to root package.json

* Simplify path filter
2023-05-17 13:59:34 -04:00
mattermod
f48f979e1b Update latest version to 7.10.1 2023-05-17 17:44:15 +00:00
Alexander Griesser
4bc40e3a0c
Small grammar change (#23383)
Spotted it while upgrading my server and checking the logs
2023-05-17 11:10:25 +02:00
Harshil Sharma
da3dcf737c
Fixed hashtag search for DB search (#23313)
* Fixed hashtag search for DB search

* Fixed typo

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-17 12:01:31 +05:30
Sai Deepesh
02be384baf
add full stop (copy change) (#23339)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-16 17:43:45 -04:00
Guilherme Gomes
37ebeeb9f3
MM-50305 : Implemented url auto generation on channel creating (#22598) 2023-05-16 15:38:20 +05:30
Hamza
e74e8a60c8
MM-48578 - Code formatting for pascal and pas (#23089)
Co-authored-by: Hamza Chorfi <hchorfi@PC-0043.local>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-15 16:31:46 -04:00
M-ZubairAhmed
9aeaaa64de
in (#23388) 2023-05-15 16:31:16 -04:00
LeonardJouve
6d3354266a
[MM-52546] webapp/channels : Update current user and status on WebSocket reconnect (#23071)
* update user status on reconnect

* small type improvement

* profiles reducer: merge old profiles with new ones

- remove current user exclusion from profiles received
- merge old profiles with new ones

* profiles reducer unit test

profiles reducer should merge existing users with new ones

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-15 16:29:45 -04:00
Harrison Healey
4cbf6e93d2
Remove Webpack dev servers for Boards/Playbooks (#23378)
* Add option to run web app build without dev servers

* Completely remove product dev servers

* Update unit test

* Fix another test
2023-05-15 16:18:10 -04:00
José Peso
e1a2443f1a
GitHub v2.1.6 and Jira v3.2.5 prepackaged (#23334) 2023-05-15 21:07:23 +02:00
Scott Bishel
355bc6502c
MM-52477 - remove recovery tokens when creating a new one (#23171)
* remove recovery tokens when creating a new one

* add app layers, unit test, i18 extract

* lint fixes

* fix unit test
2023-05-15 11:28:54 -06:00
Doug Lauder
e4075dae18
MM-43077 Allow inline JSON in config.json for advanced logging config (#23324)
* add AdvancedLoggingJSON to LogSettings and deprecate AdvancedLoggingConfig
* allow embedded JSON in config for advanced logging.
2023-05-15 10:37:48 -04:00
M-ZubairAhmed
156d1429de
[MM-52708] webapp/channels : Remove "FormattedAdminHeader" component (#23344) 2023-05-15 19:14:33 +05:30
M-ZubairAhmed
041ecd56fe
[MM-52681] webapp/channels : Remove 't' functions for defineMessages in channels and update mmjstool version (#23318) 2023-05-15 17:59:48 +05:30
Agniva De Sarker
0818bf448c
MM-52743: Skip racy test Test_SendNotifyAdminPosts (#23360)
https://mattermost.atlassian.net/browse/MM-52743
```release-note
NONE
```
2023-05-15 10:41:17 +02:00
Julien Tant
956c836921
Disable onboarding role screen when work template is off (#23369)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-14 14:35:56 -07:00
Christopher Poile
831d51569e
prepackage calls v0.16.0 (#23374)
Automatic Merge
2023-05-11 18:34:29 +03:00
Agniva De Sarker
e13bd3af67
MM-52212: Skip all sidebarCategory tests (#23375)
We see more tests from the same file fail
with the same error

https://mattermost.atlassian.net/browse/MM-52212
```release-note
NONE
```
2023-05-11 20:24:27 +05:30
Juho Nurminen
fc46a296ce
MM-52720: use an io.LimitedReader in gif frame counting (#23372)
* MM-52720: use an io.LimitedReader in gif frame counting

* Address review feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-11 12:47:07 +03:00
Eric Sethna
6d18b69abb
MM-52613: Add icons to "Add channels" LHS menu (#23239) 2023-05-11 14:30:57 +05:30
Harrison Healey
c35d738e04
MM-52536 Webpack unification part 1 (#23322)
* MM-52536 Update Webpack and use the same version for all products

* Switch Channels to use asset modules

* Remove unused module configuration from Boards/Playbooks

* Remove file-loader and html-loader

* Unify versions of CSS-related loaders

* Remove unused webpack-node-externals dependency

* Add missing MiniCssExtractPlugin to Boards/Playbooks production builds
2023-05-10 15:20:16 -04:00
Julien Tant
8956f9399a
turn off work template ff (#23367)
Automatic Merge
2023-05-10 21:34:28 +03:00
Jesse Hallam
bb02b35048
Expose public/ API as submodule (#23345)
* model -> public/model

* plugin -> public/plugin

* public/model/utils -> public/utils

* platform/shared/mlog -> public/shared/mlog

* platform/shared/i18n -> public/shared/i18n

* platform/shared/markdown -> public/shared/markdown

* platform/services/timezones -> public/shared/timezones

* channels/einterfaces -> einterfaces

* expose public/ submodule

* go mod tidy

* .github: cache-dependency-path, setup-go-work

* modules-tidy for public/ too

* remove old gomodtidy
2023-05-10 13:07:02 -03:00
Safouen Turki
070ee26081
MM-40566 Remove collapse from websocket sync (#22607)
* Web App -> Monorepo

* Fix Lint issues

* Fix Type issue

* Update webapp/playbooks/src/components/backstage/playbook_editor/playbook_editor.tsx

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2023-05-10 10:00:34 -04:00
Agniva De Sarker
a3e4ea2e7a
MM-52679: Bump up minimum postgres version to 11 (#23315)
https://mattermost.atlassian.net/browse/MM-52679
```release-note
NONE
```

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-10 08:26:59 +05:30
Agniva De Sarker
77a24f96d6
MM-52712: Prevent CI cancellation in master (round 2) (#23293)
We discovered that cancel-in-progress only controls
in-progress jobs. Which means that pending jobs will _always_
be cancelled regardless. There is an open discussion:
https://github.com/orgs/community/discussions/5435
which was closed saying this is how the feature is designed.

We try to work around this by refactoring into separate reusable
workflows and having concurrency only for PR workflows.

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-09 23:49:06 +05:30
Harrison Healey
11b08edf94
Let Boards/Product dev servers run on default ports (#23257) 2023-05-09 12:56:17 -04:00
Jesse Hallam
f28a2bcca7
server/public/ -- pre-requisite changes (#23278)
* invert depdendency: filestore -> model

* markdown: nolint:misspell

* inline jsonutils within model

* push model.GetInfoForBytes -> channels/app

* push channel/utils.CompileGo* -> plugin/utils

* push plugin/scheduler -> channels/jobs/plugins

* push utils.Copy(File|Dir) -> model

* oauthproiders/gitlab -> channels/app/oauthproviders/gitlab

* decouple plugin from einterfaces.MetricsInterface

* fix TestGetInfoForFile

* Revert "Run golangci in server CI (#23240)"

This reverts commit 349e5d4573.

* add model/utils

---------

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
2023-05-09 13:30:02 -03:00
M-ZubairAhmed
5c28071fb3
[MM-MM-52695] webapp/channels : Change plain import of PropsFromRedux to "import type" for certain files (#23337)
A while ago, we introduced the PropsFromRedux pattern, which was mostly used in class-based components or functional components if hooks were not used for selectors and dispatch. However, we discussed that it is recommended to import the type PropsFromRedux back to the component file from its index file with the type to avoid any cyclic import bugs.
`import type {PropsFromRedux} from './index'; `
2023-05-09 16:28:44 +05:30
Caleb Roseland
f815c20fca
MM-51798: Fix Boards+Playbooks channel header RHS button styling (#23276)
* fix playbook icon

* fix boards icon

* lint

* fix test
2023-05-09 10:39:34 +02:00
Agniva De Sarker
6905df9f97
MM-52694: Skip TestRunPostStatusUpdate (#23330)
Racy test failed in master branch.

https://mattermost.atlassian.net/browse/MM-52694
```release-note
NONE
```
2023-05-09 07:48:25 +05:30
Saturnino Abril
aa39e5758e
chore: upgrade cypress to 12.11.0 and other dependencies (#23294)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-09 06:11:40 +08:00
Julien Tant
d40689466d
[MM-51854] Onboarding Role selection screen (#23121)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-08 13:57:41 -07:00
Caleb Roseland
657c0024f9
MM-52261: Remove boards language selector, use Language in Display Settings (#23095)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-08 13:37:33 -05:00
na
a1470c77ac
[MM-51453] - Bring back old log list if format is plain text (#23312)
* [MM-51453] - Bring back old log list if format is plain text

* i18n error

* linter

* remove redundant file

* linter again

* PR  comments

* i18n again

* Update tests

---------

Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro.local>
2023-05-08 22:53:09 +07:00
KyeongSoo Kim
8e6a5f6ffc
[WebApp][MM-48061]: Allow CTRL/CMD + K to insert link formatting when text is selected (#22671)
* add isTextSelectedInPostOrReply util

* apply util

* add test

* format selected text as a markdown hyperlink if the clipboard contains a URL

* fix lint and dependency

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-08 19:50:18 +05:30
Ashish Dhama
3dcc32bbdc
fix import issue in forward post actions (#23329) 2023-05-08 19:47:45 +05:30
Hosted Weblate
2c682150db 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-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/
2023-05-08 10:36:23 +02:00
Konstantin
96ffaa0ff7 Translated using Weblate (Russian)
Currently translated at 100.0% (5747 of 5747 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ru/
2023-05-08 10:36:23 +02:00
jprusch
32fe6a61f5 Translated using Weblate (German)
Currently translated at 100.0% (5747 of 5747 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/
2023-05-08 10:36:23 +02:00
Hosted Weblate
224b047106 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-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-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/
2023-05-08 10:36:23 +02:00