Commit Graph

16898 Commits

Author SHA1 Message Date
Kyriakos Z
14fcc8a22e
MM-52513: fixes deleting a reply (#23177)
* MM-52513: fixes deleting a reply

Currently when we receive a WS event for a reply being deleted we might
accidentally push it to a wrong team's store. This might happen if the
thread is already loaded in store and we are viewing another team.
In that case we were fetching the thread from the API using the team id
of the current team. The API returns the thread, even though the team id
is not the one which the thread belongs to.

This commit is fixing the above issue by getting the team id in which
the thread belongs to, or current team id in the case of DM/GM messages,
and using that to fetch the thread from the API.

PS: the fetching is needed since we don't send a thread_update WS event
upon deleting a reply, and we need to get the new participants list.

* Fixes team id on another occasion

* Refactors a bit

* Reverts returning empty string as team id

* Refactor a bit to pass the post as argument

---------

Co-authored-by: Kyriakos Ziakoulis <koox00@Kyriakoss-MacBook-Pro.local>
Co-authored-by: Kyriakos Ziakoulis <koox00@192.168.2.3>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2023-05-30 15:33:19 -04:00
Harrison Healey
281f8cf9ea
MM-52544 Fix missing reply bar mention highlight (#23534) 2023-05-30 14:53:16 -04:00
Harrison Healey
19ece476ad
MM-47064/MM-34345/MM-47072 Remove inheritance from Suggestion components and migrate to TS (#23455)
* MM-47064 Remove inheritance from Suggestion components

* Address feedback

* Fix users without DM channels not appearing in the channel switcher

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-30 14:51:55 -04:00
mvitale1989
68be3a6bcd
Prepare: run E2E smoketests with GitHub actions (#23301)
- Port E2E testing scripts from cypress-ui-automation
- Move server to docker-compose, move E2E images to ecrpublic
* Integrate General channel renaming, fixes
- Add local automation-dashboard
- Add readme
- Add E2E smoketests
- Bump postgres to 12

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
2023-05-30 17:34:15 +02:00
Harrison Healey
6d1a42773e
MM-52888 Always load users mentioned in message attachments (#23460)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-30 09:38:07 -04:00
Agniva De Sarker
c7295b01e5
Enable golangci-lint (attempt 2) (#23517)
This time we are just using the Makefile command
to see if that makes a difference
```release-note
NONE
```
2023-05-30 15:16:42 +05:30
M-ZubairAhmed
20ec920b71
MM-52873 : Switch to npm's 'reselect' for Playbooks (#23396) 2023-05-30 13:20:28 +05:30
Harrison Healey
eaa190acf6
Fix duplicate keys in CombinedSystemMessage component (#23507) 2023-05-29 17:20:33 -04:00
Vishal
fa1ba4717b
[MM-52527] (#23519)
* limit markdown size
2023-05-29 19:02:22 +05:30
Tejas Karelia
834c8982df
[MM-52841] : Migrate "components/admin_console/set_by_env.jsx" to Typescript (#23451) 2023-05-29 14:30:06 +05:30
Amaury Lopez
abcfa8cce8
[MM-52832] : Migrate "components/admin_console/cluster_table.jsx" to Typescript (#23471) 2023-05-26 17:53:43 +05:30
M-ZubairAhmed
0e31ecbbe8
MM-52902 : Pasting text or image in center message input box shifts input box up unexpectedly (#23502) 2023-05-26 17:50:07 +05:30
Hideaki Matsunami
0a897220a7
webapp/platform/types : Add 'acting_user_access_token' type to AppExpand (#23496) 2023-05-26 16:47:56 +05:30
Hamza
b56b648b53
[MM-51881]: btn-primary SCSS leaves button white when not focussed (#23209) 2023-05-26 16:37:56 +05:30
Jason Parker
77a1e6cae9
Change documented method from put to post (#23347)
Automatic Merge
2023-05-26 10:04:28 +03:00
M-ZubairAhmed
b72043727a
[MM-52226] : Fix broken make-emojis command (#23454) 2023-05-26 10:43:44 +05:30
Ben Peachey
69196b2986
Fix typo in sqlstore migrations guide. (#23481)
Automatic Merge
2023-05-26 02:04:29 +03:00
Amy Blais
26977f28fb
Update en.json (#23506)
Automatic Merge
2023-05-25 21:34:29 +03:00
Agniva De Sarker
37502af54b
MM-52441: Apply path filtering for server CI (#23295)
https://mattermost.atlassian.net/browse/MM-52441
```release-note
NONE
```
2023-05-25 13:55:23 -04:00
Christopher Poile
d7cf652504
MM-52936 - Update prepackaged calls to v0.16.1 (#23504) 2023-05-25 13:10:28 -04:00
Ben Schumacher
b017287025
[MM-52574] Add back PermissionUseSlashCommands (#23476) 2023-05-24 23:26:49 +02:00
Agniva De Sarker
289a855330
MM-52898: WS fix (#23489)
https://mattermost.atlassian.net/browse/MM-52898

```release-note
NONE
```
2023-05-24 23:40:12 +05:30
Harshil Sharma
c8ee05fb76
[MM-52444] - Hide dot menu for users when they can't delete a system post (#23487)
Automatic Merge
2023-05-24 16:04:31 +03:00
Antonis Stamatiou
3ac15290ef
fix: Fix download mmctl script and point it to proper release branch (#23488) 2023-05-24 15:11:14 +03:00
Agniva De Sarker
88d1743191
MM-52325: Bump morph (#23394)
This is needed to implement non-transactional migrations

https://mattermost.atlassian.net/browse/MM-52325
```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-24 15:53:04 +05:30
Michael Kochell
c4cea950f7
bump welcomebot plugin version to 1.3.0 (#23447) 2023-05-23 10:23:52 -04:00
Harshil Sharma
0cb3a406da
Fixed image attachment e2e cypress test (#23445) 2023-05-22 10:50:05 +05:30
Amy Blais
cfa5be4d3e
Revert "Revert "[MM-51274] Remove deprecated PermissionUseSlashCommands (#22819)" (#23405)" (#23463)
Automatic Merge
2023-05-20 02:04:28 +03:00
Harrison Healey
9587b826c7
Bump JS package versions to 8.0.0 (#23442) 2023-05-19 16:02:24 -04:00
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