Commit Graph

16898 Commits

Author SHA1 Message Date
Mattermost Build
dc4482e3e2
Merge branch 'master' into MM-51456-update-overage-notices 2023-04-20 17:43:27 +03:00
Claudio Costa
b5b4749da5
[MM-51997] Fix potential errors when accessing calls store (#22960)
* Fix potential errors when accessing calls store

* Fix typecheck
2023-04-20 08:40:09 -06:00
Conor Macpherson
c98c43456e
Merge pull request #22657 from mattermost/MM-50966-in-product-expansion-backend
MM-50966 - In Product Expansion Backend
2023-04-20 10:38:47 -04:00
Conor Macpherson
3795f5a470
Merge pull request #22658 from mattermost/MM-50966-in-product-expansion
MM-50365 - In Product Expansion Front-End
2023-04-20 10:35:41 -04:00
Allan Guwatudde
87555aa242
[MM-52158] - Don't show deprecation/move to annual banners to some clients (#22963)
* [MM-52158] - Don't show deprecation/move to annual banners to some clients

* create const

* feedback impl

* update test names

* update banner text

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 17:04:41 +03:00
Jesse Hallam
89f2ebc836
Channels/api4 testing improvements (#22938)
* api4/post_test: fix missing TearDown

* api4/plugin_test: dont test timeout, saving 120s

* api4/channel_test: dont try to delete town square

* api4/channel_test: check public channel names deterministically

* api4/file_test: fix darwin assertions on go files

* api4/notify_admin_test: fix expect/actual order

* api4/team_test: make TestGetAllTeams deterministic

* api4/plugin_test: avoid nested test helpers

* api4/post_test: avoid nested test helpers

* api4/websocket_test: externalize log buffer

* testlib/helper: unset common env

* linting issues

* simplify TestGetFileHeaders

* team_test: leverage ElementsMatch
2023-04-20 09:52:59 -03:00
Konstantinos Pittas
dd2b1db420
[MM-51076] Fix dropdown in modal for adding users in a group (#22642)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-20 14:05:54 +03:00
yasserfaraazkhan
3055a5e935 Revert "MM-49603 : Remove fetching of deleted channels on page load (#22981)"
This reverts commit 1bbfdefad7.
2023-04-20 13:56:37 +05:30
yasserfaraazkhan
f0a54f6804 chore: review comment 2023-04-20 13:46:01 +05:30
M-ZubairAhmed
1f697ba5cd Revert "MM-50123 : Identify causes of removal of channel and channel members re fetching on team switch (#22984)" (#23038)
This reverts commit 5d5c1d90bf.
2023-04-20 13:46:01 +05:30
Julien Tant
7c60637cab [MM-51805 + MM-51806 + MM-51041] Work template: multiple UI fixes (#22862) 2023-04-20 13:46:01 +05:30
Julien Tant
efa976cbfd [MM-52152] Expose license SkuShortName to all users (#22955) 2023-04-20 13:46:01 +05:30
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
M-ZubairAhmed
09ac549d0b
Revert "MM-50123 : Identify causes of removal of channel and channel members re fetching on team switch (#22984)" (#23038)
This reverts commit 5d5c1d90bf.
2023-04-20 08:31:09 +05:30
Julien Tant
feab1bf61b
[MM-51805 + MM-51806 + MM-51041] Work template: multiple UI fixes (#22862) 2023-04-19 14:52:21 -07:00
Julien Tant
0a2a39773c
[MM-52152] Expose license SkuShortName to all users (#22955) 2023-04-19 10:38:56 -07:00
Scott Bishel
96ad240a78
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-19 10:45:23 -06:00
Conor Macpherson
4a77773774
Remove import of background svg 2023-04-19 12:12:52 -04:00
Conor Macpherson
6d62acb13e remove exta background svg. 2023-04-19 12:03:17 -04:00
Conor Macpherson
c4efd2647c
Merge branch 'master' into MM-50966-in-product-expansion 2023-04-19 11:40:50 -04:00
Agniva De Sarker
d1c9469d06
Add CODEOWNERS for migrations (#23020)
```release-note
NONE
```
2023-04-19 20:01:50 +05:30
Tanmay Datta
1f57819054
[MM-51089] Fix sorting value of category in CreateSidebarCategoryForTeamForUser (#22455)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-19 09:59:49 -04:00
Caleb Roseland
9a5c4fc736
Merge pull request #22988 from mattermost/i18n-extract-ci-boards-playbooks 2023-04-19 08:46:04 -05:00
Pablo Andrés Vélez Vidal
b5c48e75b3
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-19 15:31:47 +02:00
Conor Macpherson
3ca789979a remove other use of relfection to determine error. 2023-04-19 09:23:45 -04:00
Kyriakos Z
a24111f9bd
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-19 15:20:34 +03:00
Agniva De Sarker
c34a50a6c7
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-19 17:03:18 +05:30
M-ZubairAhmed
5d5c1d90bf
MM-50123 : Identify causes of removal of channel and channel members re fetching on team switch (#22984) 2023-04-19 16:21:10 +05:30
M-ZubairAhmed
3f0ac142c4
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-19 16:20:17 +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
Conor Macpherson
42f457fec2 lint. 2023-04-18 17:16:06 -04:00
Conor Macpherson
c9e081d0b1 Ensure submitting and success screen icon messages are at the same position, ensure no overflow at the bottom of the page, try to hide overflow peeking through on the right side of the page. 2023-04-18 17:03:20 -04:00
Conor Macpherson
7bdc5a4a39 Fix rhs expansion card resize in resized windows, fix credit card title section being overlapped with the credit card number input hint. 2023-04-18 16:27:37 -04:00
Ben Schumacher
84a3042249
Update slash command permission (#22468)
* Update slash command permission

* Fix permission
2023-04-18 21:54:20 +02:00