Commit Graph

16461 Commits

Author SHA1 Message Date
Scott Bishel
42c95776cd MM-51876 - use redirect if user already logged in (#22997)
* use redirect if user already logged in

* lint fixes

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 13:46:01 +05:30
Agniva De Sarker
af37ffac38 Add CODEOWNERS for migrations (#23020)
```release-note
NONE
```
2023-04-20 13:46:01 +05:30
Tanmay Datta
5beaee031d [MM-51089] Fix sorting value of category in CreateSidebarCategoryForTeamForUser (#22455)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 13:46:01 +05:30
Caleb Roseland
afa3a7eb8f step names 2023-04-20 13:46:01 +05:30
Caleb Roseland
25b9c0e3f0 Revert "test ci extract lint"
This reverts commit 4779700a06.
2023-04-20 13:46:01 +05:30
Caleb Roseland
a24fd99149 test ci extract lint 2023-04-20 13:46:01 +05:30
Caleb Roseland
a06b297c8f add ci steps 2023-04-20 13:46:01 +05:30
Pablo Andrés Vélez Vidal
b073ab2e3a MM 50960 - Add company name and invite members pages to preparing-workspace for self-hosted (#22838)
* MM-50960 - store system organization name

* restore the preparing workspace plugins and invite screens

* add back the page lines for the design

* add lines back and organize styles

* set back documentation to monorepo style and disable board as a product

* fix organization link and style skip button

* create team on organization name screen continue button click

* make sure there are not already created team and if so just update team name

* update the team display name if team has already been created

* cover error scenarios during team creation

* add pr feedback and add a couple of unit tests

* fix translation server error; make sure only update display name if it has changed in the form

* temp advances

* rewrite unit tests using react-testing library; fix unit tests

* fix translations

* make sure the launching workspace finish in cloud installations

* remove redundant validation

* fix unit tests

* remove unintended config value left after merge conflict
2023-04-20 13:46:01 +05:30
Kyriakos Z
e1bad44e85 MM-45009: Delete ThreadMemberships from "left" channels (#22559)
* MM-50550: Filter out threads from "left" channels v2

Currently leaving a channel doesn't affect the thread memberships of
that user/channel combination.
This PR aims to filter out all threads from those channels for the user.

Adds a DeleteAt column in the ThreadMemberships table, and filter out
all thread memberships that are "deleted".
Each time a user leaves a channel all thread memberships are going to be
marked as deleted, and when a user joins a channel again all those
existing thread memberships will be re-instantiated.

Adds a migration to mark all existing thread memberships as deleted
depending on whether there exists a channel membership for that
channel/user.

* Added migration files into list

* Fixes tests

* Fixes case where DeleteAt would be null

* Guard thread API endpoints with appropriate perms

* Deletes ThreadMembership rows upon leaving channel

* Minor style changes

* Use NoTranslation error

* Refactors tests

* Adds API tests to assert permissions on Team

* Adds tests, and fixes migrations

* Fixes test description

* Fix test

* Removes check on DM/GMs

* Change the MySQL query in the migration

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 13:46:01 +05:30
Agniva De Sarker
7216dcf367 MM-50427: Make MM survive DB replica outage (#22888)
We monitor the health of DB replicas, and on a fatal error,
take them out of the pool.

On a separate goroutine, we keep pinging the unhealthy replicas,
and on getting a good response back, we add them back to the pool.

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

```release-note
Mattermost is now resilient against DB replica outages and will
dynamically choose a replica if it's alive.

Also added a config parameter ReplicaMonitorIntervalSeconds
whose default value is 5. This controls how frequently unhealthy
replicas will be monitored for liveness check.
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 13:46:00 +05:30
M-ZubairAhmed
bab2620b59 MM-50123 : Identify causes of removal of channel and channel members re fetching on team switch (#22984) 2023-04-20 13:46:00 +05:30
M-ZubairAhmed
1bbfdefad7 MM-49603 : Remove fetching of deleted channels on page load (#22981)
- channel request types removed from fetchMyChannelsAndMembersREST
- removed isMinimumServerVersion check from that above action call, which is adding the query to include the archived channels
2023-04-20 13:46:00 +05:30
Mattermost Build
bdc7abadd1
Merge branch 'master' into MM-52097 2023-04-19 13:15:27 +03:00
mattermod
5e52b8a50e Update latest version to 7.10.0 2023-04-19 09:48:29 +00:00
Martin Qvarnström
b46f5db8b2
MM-49214 : Filter out bot users shown in Apps modal form user pickers(#22631)
This issue involves updating the user picker functionality in the Mattermost web app's app framework. Currently, bot users are being displayed in the user picker for forms, which is not desired. The goal is to hide bot users from the user picker dropdown and only show real users. This can be achieved by filtering out any user that is a bot using the user.is_bot property. The necessary changes have been made in the apps_form_select_field.tsx file, specifically in the loadDynamicUserOptions function, which has been updated to filter out bot users using .filter((user) => !user.is_bot).
2023-04-19 11:55:57 +05:30
M-ZubairAhmed
7b9d43e308
MM-50122 : Remove and test refetching of channels on browser focus change (#22973) 2023-04-19 11:48:27 +05:30
Saturnino Abril
6ca5824ea1
E2E/Playwright: Update dependencies, screenshots, config and type (#23000)
* update dependencies

* update default server config and client type

* close browser context once test is done

* fix test when switching a product

* update screenshots and readme

* add cross-env and make headless mode as default

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-19 12:04:25 +08:00
Aditya Jain
4ef3081f65
MM-T4276 : E2E for set up Board emoji (#22887)
* MM-T4276 Added cypress tests for board emoji

* Update e2e-tests/cypress/tests/integration/boards/create_board_spec.ts

---------

Co-authored-by: Aditya Jain <adityajain@Adityas-MacBook-Air-2.local>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
2023-04-19 11:02:32 +08:00
Ben Schumacher
84a3042249
Update slash command permission (#22468)
* Update slash command permission

* Fix permission
2023-04-18 21:54:20 +02:00
José Peso
9b81c08622
safer base64 generated values in settings (#22990)
Generated values for settings are a random base64 string with a length of 32. Unfortunately, base64 has some accepted characters like `+` and `/` that don't behave correctly if we use them in a URL without the proper additional encoding.

Use instead this safe version of base64 https://datatracker.ietf.org/doc/html/rfc4648#section-5, where:
- `/` becomes `_`
- `+` becomes `-`

Fixes https://mattermost.atlassian.net/browse/MM-51923
2023-04-18 18:22:16 +02:00
Michael Kochell
9729641823
Bump autolink plugin version to 1.4.0 (#22966) 2023-04-18 11:01:52 -04:00
Mattermod
e841c75ac5
Update minor version to 7.11.0 (#22959)
Co-authored-by: Mmbot <mmbot@mattermost>
Co-authored-by: Akis Maziotis <akis.maziotis@mattermost.com>
2023-04-18 17:59:27 +03:00
yasserfaraazkhan
c207b4ce0f chore: fix channels test 2023-04-18 18:17:43 +05:30
yasserfaraazkhan
89026c1061 chore: revert channels changes 2023-04-18 17:52:00 +05:30
yasserfaraazkhan
c120e72931 chore: revert channels changes 2023-04-18 17:51:24 +05:30
yasserfaraazkhan
965bca421a Merge remote-tracking branch 'origin/master' into MM-52097 2023-04-18 17:50:03 +05:30
Miguel de la Cruz
067e36c23c
Enable products for tests (#22757)
* Enable products for channels tests

* increase unit test timeout; check IsConfigReadOnly

* make app-layers

* Avoid loading boards tempaltes between tests to improve speed

* Fix delete query to be compatible with both databases

* Avoid preserving the templates for boards store tests

* Run all tests in one command

* Revert "Run all tests in one command"

This reverts commit 0330f7cd8f.

* concurrent pkg group tests in CI

* Revert "Revert "Run all tests in one command""

This reverts commit 73892fec77.

* Revert "concurrent pkg group tests in CI"

This reverts commit 550fb6cdd4.

* try testing 3 subsets of packages concurrently to improve time taken

* Revert "try testing 3 subsets of packages concurrently to improve time taken"

This reverts commit 97475f3c4e.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: wiggin77 <wiggin77@warpmail.net>
2023-04-18 13:58:33 +02:00
mattermod
a8d79ec3da Update latest version to 7.9.2 2023-04-18 10:18:55 +00:00
Guillermo Vayá
54770a34c4
Merge pull request #22979 from mattermost/weblate-20220417
Weblate 20220417
2023-04-18 12:07:24 +02:00
Konstantinos Pittas
0c375e1ebd
[MM-48670] Fix persistence of placeholder text (#22820)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-18 10:56:41 +03:00
Agniva De Sarker
b200a07881
v8.0 module release (#22975)
https://mattermost.atlassian.net/browse/MM-52079

```release-note
We upgrade the module version to 8.0. The new module path is github.com/mattermost-server/server/v8.
```


Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2023-04-18 11:05:28 +05:30
José Peso
831ea38f7e
Playwright upgrade and small addition to ChannelsPage helper (#22978)
* partial commit

* upgrade playwright to 1.32.3 (ui + project dependencies support)

* revert empty line

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-18 10:46:49 +08:00
Conor Macpherson
61456b6846
Merge pull request #22917 from mattermost/MM-51907-route-true-up-telemetry-to-cws
MM-51907 - Route True-Up Review Telemetry to CWS
2023-04-17 15:47:21 -04:00
M-ZubairAhmed
adff327b9c
MM-51977 : Remove inconsistencies of the duplicate IDs with different defaultMessages (#22965)
* eslint format lib to root

* eslint fixes

* no id rule removed

* same rectintl

* try 1

* eslint format lib to root

* eslint fixes

* no id rule removed

* same rectintl

* react intl in root

* type fix

* add back version to components

* missing translations added

* remove type casting

* a

* type fix formatjs

* snaps updated

* Update package-lock.json

* Update package-lock.json

* rem

* snapshot updates

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-17 15:34:45 -04:00
Harrison Healey
3f022e728f
MM-49393 Begin splitting up utils.tsx (#22983)
* Add selectors/urls to Channels

* Create utils/notification_sounds in Channels

* Move Utils.isLinux to UserAgent.isLinux

* Remove Utils.isMac in favour of UserAgent.isMac

* Move cmdOrCtrlPressed and isKeyPressed into new utils/keyboard

* Remove eslint-disable for max-lines in utils.tsx
2023-04-17 15:10:15 -04:00
Conor Macpherson
aa7939264f Check if telemetry is disable, and only submit the true up profile if it is disabled. 2023-04-17 15:09:54 -04:00
codyhall
941ee8509a
POST playbook api specification includes public boolean definition (#22986)
Automatic Merge
2023-04-17 19:04:30 +03:00
kaakaa
b42f5418de Translated using Weblate (Japanese)
Currently translated at 100.0% (454 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/ja/
2023-04-17 13:04:55 +02:00
dsa-t
5826ef26be Translated using Weblate (Russian)
Currently translated at 98.7% (5724 of 5795 strings)

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

Translated using Weblate (Russian)

Currently translated at 98.8% (5726 of 5794 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ru/
2023-04-17 13:04:55 +02:00
Kwangoh Moon
420a0380a4 Translated using Weblate (Korean)
Currently translated at 62.3% (3614 of 5794 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ko/
2023-04-17 13:04:55 +02:00
Konstantin
35f10ea277 Translated using Weblate (Russian)
Currently translated at 100.0% (454 of 454 strings)

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

Translated using Weblate (Russian)

Currently translated at 99.0% (5726 of 5783 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/ru/
2023-04-17 13:04:55 +02:00
Yananeer
2b7cfe3f2a Translated using Weblate (Chinese (Simplified))
Currently translated at 98.2% (446 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/zh_Hans/
2023-04-17 13:04:55 +02:00
master7
cc5057594a Translated using Weblate (Polish)
Currently translated at 100.0% (5804 of 5804 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (5783 of 5783 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (605 of 605 strings)

Translation: mattermost-languages-shipped/mattermost-playbooks-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-playbooks-webapp-monorepo/pl/
2023-04-17 13:04:55 +02:00
Pierre JENICOT
4d324c656d Translated using Weblate (French)
Currently translated at 98.8% (449 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/fr/
2023-04-17 13:04:55 +02:00
Felipe Nogueira
aa9e485872 Translated using Weblate (Portuguese)
Currently translated at 21.1% (96 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/pt/
2023-04-17 13:04:55 +02:00
Caleb Roseland
2c870845af Translated using Weblate (Georgian)
Currently translated at 25.7% (117 of 454 strings)

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

Translated using Weblate (Persian)

Currently translated at 26.8% (122 of 454 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (454 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/tr/
2023-04-17 13:04:55 +02:00
Andrius Balsevičius
11e50cb26c Translated using Weblate (Lithuanian)
Currently translated at 100.0% (454 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/lt/
2023-04-17 13:04:51 +02:00
Tom De Moor
2f7c9b9e69 Translated using Weblate (Dutch)
Currently translated at 100.0% (5783 of 5783 strings)

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

Translated using Weblate (Dutch)

Currently translated at 100.0% (454 of 454 strings)

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

Translated using Weblate (Dutch)

Currently translated at 100.0% (605 of 605 strings)

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

Translated using Weblate (Dutch)

Currently translated at 100.0% (5777 of 5777 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/nl/
2023-04-17 13:04:45 +02:00
jprusch
29f08a9baa Translated using Weblate (German)
Currently translated at 100.0% (5804 of 5804 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% (5794 of 5794 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% (5788 of 5788 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% (5783 of 5783 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% (5777 of 5777 strings)

Translation: mattermost-languages-shipped/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/de/
2023-04-17 13:04:42 +02:00
Kaya Zeren
4b80de9aaf Translated using Weblate (Turkish)
Currently translated at 100.0% (5795 of 5795 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (5794 of 5794 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (5791 of 5791 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (5788 of 5788 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (5777 of 5777 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (5773 of 5773 strings)

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

Translated using Weblate (Turkish)

Currently translated at 97.4% (5623 of 5773 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (2534 of 2534 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (454 of 454 strings)

Translation: mattermost-languages-shipped/mattermost-boards-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-boards-webapp-monorepo/tr/
2023-04-17 13:03:12 +02:00