Commit Graph

17489 Commits

Author SHA1 Message Date
Mario Vitale
1e121eb7f3
CLD-6297 - E2E tests improvements (#24541)
* Improve e2etests readme, remove unused apt install
* Add testing E2E Tests MultiOS
* Get rid of deprecation warning
* Smart selection of docker network driver for different OSes
* Unify makefile invocation for windows as well
* Tune JVM for ES and Keycloak
* fix: Made required changes to run locally on arm MacOS
* fix: FIxed network command and removed dashboard node user as it is not needed
* fix: make dashboard work for Mac
* Make runs without dashboard work again, make BROWSE tunable and document it

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
2023-09-25 17:01:01 +02:00
Saturnino Abril
1fc6b96c1b
fix(e2e): several tests (#24539) 2023-09-25 22:09:42 +08:00
Asaad Mahmood
6f4382189f
Button styling update for consistent buttons (#24483)
* Updating button changes

* Updating button

* Updating invite modal button

* Updating button changes

* Updating button

* Updating buttons

* Updating buttons

* Updating buttons

* Updating back btn

* Updating various buttons

* Updating tests

* Updating test

* Reverting channel icon

* Update channel_profile.tsx

* Update setting_picture.tsx

* Updating tests

* Update group_member_list.test.tsx.snap

* Update user_group_popover.test.tsx.snap

* Update user_group_popover.test.tsx.snap

* Updating tests and adding btn class

* Adding btn-xs class

* Updating tests

* Updating test

* Updating test file

* Updating test

* Updating changes requested by daniel

* Updating test

* Updating based on harrisons feedback

* Updating buttons

* Updating test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-25 15:17:14 +05:00
Daniel Espino García
6c48cca78f
Fix MM-54027 (#24495)
* Fix MM-54027

* Add tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-25 11:08:58 +02:00
Daniel Espino García
2e0e35dda9
Fix MM53372 (#24494)
* Fix MM53372

* Remove unneeded casting
2023-09-25 11:08:10 +02:00
Ben Schumacher
845ea2a984
[MM-54290] Add CPU profile to support package (#24477) 2023-09-25 11:00:33 +02:00
Ben Schumacher
153ebc31d7
[MM-54289] Add heap profile to support package (#24476) 2023-09-25 09:46:15 +02:00
Saturnino Abril
b7b08dbc0f
CLD-5948 Playwright/E2E: Update dependencies, server default config and its types, and remove Boards and mobile view tests (#24583)
* update dependencies

* update dependencies

* remove mobile view

* remove boards

* update default config  and its types

* update snapshots

* fix formatting

* check works and fix styling
2023-09-20 05:28:35 +08:00
Daniel Espino García
88d043a971
Make GM behave as DM (#24289)
* Make GM behave as DM

* Fix lint

* Add desktop notification special behavior

* Change notification preferences menu

* Make changes to the GM channel intro

* Fix tests

* Fix i18n and style lint

* Add system notice and update style

* Fix style and fix tests

* Fix tests

* Handle push notifications as desktop notifications

* Fix tests

* Add test and default GMs to none when user level config is none

* Fix test

* Update only for mentions text

* Add tests

* Fix lint

* Fix lint
2023-09-19 15:29:57 +02:00
Harshil Sharma
39d6cb8008
MM-53125 Add feature to convert group message to private channel (#24421)
* Added convert to channel menu item

* WIP

* refactored channel name input field and created conversion modal

* style

* style

* WIP

* wip

* Created API to fetch common teams of GM members

* Added UI for all members deactivated

* Fetched common teams in client

* WIP

* Added a required attribute to DropdownInput component

* Fixed a case with dropdown input required flag

* WIP

* API first draft

* Genetayed layers and mocks

* Fixed create channel bug

* WIP

* Added cache invalidation

* Calling API from client

* Updated API to accept name and display name as well

* WIP

* Moved converted GM to correct category

* Style fixes

* Added logic to move user to new team/channel after GM conversion

* Prevented guest user from performing action

* Added loading indicator

* Added smoother height transistion when loading finishes

* UI imporvements

* WIP

* Formatted GM conversion message on client side

* lint fix

* Moved convert option from sidebar menu to channel header menu

* Some cleanup

* Updated server layers

* Fixed i18n

* Fixed types

* Fix server i18n

* Fixed channel creation bug

* Added store test for GetCommonTeamIDsForMultipleUsers

* Server tests done

* Updated snapshots

* Updated layers

* lint fix

* Update tests

* For CI

* lint

* restored debug code

* Used user ID instead of username in channel conversion post

* WIP

* Review fixes

* LInt fixes

* Test fix

* WIP

* WIP

* WIP

* wip

* Review fixes, lots of them

* Review fix

* Disabled WIP test

* test

* Cleanup

* Test fix

* removed testing line

* Fixed incorrect default message

* Review fixes

* Fixes

* lint and i18n fix

* Setting category on server side

* updated i18n

* Updated tests

* Added tests

* Refs cleanup

* added test

---------

Co-authored-by: Harshil Sharma <harshilsharma@Harshils-MacBook-Pro.local>
2023-09-19 14:41:34 +02:00
Devin Binnie
11cdd2b66b
Fix flaky/incorrect desktop token test, clarify the parameter names (#24565)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-19 08:49:51 +02:00
Alex DeCamillo
d08f1ca3fb
MM-54356: In-correct User count when adding members that already exists to the channel (#24540)
* Only add user who isn't in the channel

* Update webapp/channels/src/packages/mattermost-redux/src/actions/channels.ts

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

---------

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-19 08:48:59 +02:00
Arnaud Wanet
ccfb4a3d74
reverted to the old favicon path (#24559) 2023-09-17 17:47:32 -04:00
Caleb Roseland
9a3b503169
MM-54505: re-enable remote marketplace functionality (#24561) 2023-09-15 12:17:53 -05:00
Scott Bishel
64fabbeed3
MM-54123 Add group slash command (#24553)
* adding group members to channel initial commit

* adding group to channel functionality along with add new team members

* fixing circular dependency

* fixing e2e and other optimizations

* adding e2e tests for adding group members to channels

* cypress lint

* fixing comments

* adding count to button

* improvements

* adjusting some stuff from PR comments

* remove ability to add user to team, update message for non-team members

* remove adding to team from add groups functionality

* update misspelled variable

* lint and unit test fixes

* add tests, cleanup

* lint fix

* revert package-lock.json

* fixes for cypress tests

* rename TeamInviteBanner to TeamWarningBanner, since invites are no longer allowed

* update for warning

* lint fixes

* cleanup

* fix failing e2e tests

* update slash command for user groups

* revert package-lock

* remove unused function

* update based on feedback

* update tests for last change

* i18n-extract, reorder

* retrieve and display user name

---------

Co-authored-by: Benjamin Cooke <benkcooke@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-15 11:00:41 -06:00
Christopher Poile
0409a2285d
MM-5444 - Update prepackaged calls to v0.19.1 (#24560) 2023-09-14 18:36:50 -04:00
Claudio Costa
db139627ff
[MM-54494] Update selector to get profiles connected to calls (#24544)
* Update selector to get profiles connected to calls

* Clean plugin version
2023-09-14 15:23:18 -06:00
Harrison Healey
0fb6e5169d
Move logic to track mobile view into its own component (#24272)
* Move logic to track mobile view into its own component

* Address feedback
2023-09-14 17:02:31 -04:00
Jesús Espino
17ff2049ec
Adding 'MessageHasBeenDeleted' hook to plugins (#22476)
* Adding 'MessageHasBeenDeleted' hook to plugins

* Remove debug logs

* Add unit test

* Bumping the required version

* Fix CI problems

* Increasing the minimum version

* go fmt

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-14 18:33:22 +02:00
Mattermod
c731630e88
Update minor version to 9.1.0 (#24549)
Automatic Merge
2023-09-14 19:27:35 +03:00
Ben Cooke
bc4904e5b3
MM-54123 Add group to channel (#22954)
* adding group members to channel initial commit

* adding group to channel functionality along with add new team members

* fixing circular dependency

* fixing e2e and other optimizations

* adding e2e tests for adding group members to channels

* cypress lint

* fixing comments

* adding count to button

* improvements

* adjusting some stuff from PR comments

* remove ability to add user to team, update message for non-team members

* remove adding to team from add groups functionality

* update misspelled variable

* lint and unit test fixes

* add tests, cleanup

* lint fix

* revert package-lock.json

* fixes for cypress tests

* rename TeamInviteBanner to TeamWarningBanner, since invites are no longer allowed

* update for warning

* lint fixes

* cleanup

* fix failing e2e tests

* update messages to not use markdown

---------

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-14 08:43:44 -06:00
Scott Bishel
4929fde3d3
update text (#24531)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-14 07:57:56 -06:00
Arnaud Wanet
e849d72a79
MM-24504: api docs favicon update (#24525)
* removed the static folder from the favicon URL path, since it's being duplicated at build time

* updated the api docs favicon
2023-09-14 10:53:17 -03:00
Harrison Healey
4d37aad678
MM-53524/MM-53525 Clean up post textbox measurement (#23973)
* Don't always render post textbox preview in background

* Remove most usage of custom-textarea--emoji-picker

This class is only needed by the pre-AdvancedTextEditor usage of the
Textbox. It otherwise conflicted with the code that controls the
AdvancedTextEditor's right padding

* Change right padding for post textbox to use CSS class

* Remove AutosizeTextarea.recalculatePadding

This was only needed because we started setting the padding of the
textarea programatically at some point. Originally, we could rely on
the reference textarea having the same styling because it had the same
CSS class as the actual textarea.

* Change reference textarea to a div

Using an actual textarea to measure the size of the text doesn't allow
us to measure the width of the text because textareas don't stretch to
fit text. Using a div with the same styling as the textarea works though

* Remove redundant measuring div from AutosizeTextarea

* Update snapshots for AutosizeTextarea

* Fix padding being counted twice when measuring width

* Change AutosizeTextarea to use a ResizeObserver to be more responsive

* Fix right padding on post preview

* Disable transitions when AutosizeTextarea first measures

* Fix measurement of trailing newlines

* Revert "Disable transitions when AutosizeTextarea first measures"

This reverts commit a036fdbfd64e49af9a2eaa3d3e06a5af453b1a5c.

* Revert "Change AutosizeTextarea to use a ResizeObserver to be more responsive"

This reverts commit c8fa4a19bde087a0fe80e3639aed2f3ae2eae04a.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-13 18:05:43 -04:00
Claudio Costa
b4a47803e6
[MM-54456] Fix potential read after write issue when loading license (#24524)
* Fix potential read after write issue when loading license

* Use upsert
2023-09-13 14:47:12 -06:00
Devin Binnie
c53b5f7b2b
[MM-54440] Add link to notification docs in the Settings modal (#24538)
* [MM-54440] Add link to notification docs in the Settings modal

* Fix i18n

* PR feedback
2023-09-13 09:19:09 -04:00
mattermod
1ef935c5c8 Update latest version to 8.1.2 2023-09-13 13:00:09 +00:00
M-ZubairAhmed
19b843cf24
MM-54404 : E2E tests for the Gif picker (#24486) 2023-09-13 11:58:35 +05:30
Ben Schumacher
7e0d9110ed
Add defensive code to makeGetPostsInChannel to avoid panic (#24510) 2023-09-12 11:04:16 -04:00
M-ZubairAhmed
6109330beb
MM-54458 : Refactor playwright test with app areas (#24527) 2023-09-12 16:35:07 +05:30
Agniva De Sarker
c887381318
MM-53736: Compliance export button state fix (#24488)
In system console > compliance export, if we set the radio button
from false to true. It would enable the "Run export now" button
as well. This would actually allow the user to create a job
without enabling compliance export.

As a result, there would be a job entry which would never run
because the config setting was never enabled.

To fix this, we don't enable/disable the button until the config
is actually saved.

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

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-12 10:08:09 +05:30
Saturnino Abril
00c8969803
fix(e2e): remove boards and fix crt tooltip (#24526) 2023-09-12 08:11:40 +08:00
Carrie Warner (Mattermost)
092a115c52
Clarified in-product hint text (#24490) 2023-09-11 17:01:14 -04:00
Felipe Martin
f65dad83bb
Migrate emojiStore to use request.CTX instead of context.Context (#24514)
* migrate emojistore to request.ctx

* use mlog.CreateConsoleTestLogger

* Add comment to WithMaster and RequestContextWithMaster
2023-09-11 17:07:29 +02:00
Jesse Hallam
e9cc03c1c8
Constrain when we emit webhooks for retried tests (#24484)
* Constrain when we emit webhooks for retried tests

Only send webhooks (notifying all staff developers) only for retried tests on `master` and `release-*`.

* drop @devs at-mention

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-11 09:58:01 -03:00
David Janda
6e6668b88b
[GH-16800]: Refactor raw SQL to query builder in group_store.go - part 2 (#24254)
* Use builder in GetMember

* Use query builder in GetByUser

* Use query builder in GetMemberUsers

* Use query builder in GetNonMemberUsersPage

* Use query builder in PermanentDeleteMembersByUser

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-11 15:17:26 +03:00
Sinan Sonmez (Chaush)
71fb10ae7a
MM-54260: In Browse Channel Modal fix member count on private channels and when there is only 1 member in the channel (#24452) 2023-09-09 14:47:06 +05:30
M-ZubairAhmed
060a63a3ed
MM-53478 : Improve design of keyword that trigger notification (#23934) 2023-09-09 14:45:50 +05:30
Doug Lauder
5e7d1c6f9e
MM-37511 Add userid to http logs (#24516)
* include user_id in http logs
2023-09-08 18:24:34 -04:00
Christopher Poile
5ccc039278
MM-54176 - Update prepackaged calls to v0.19.0 (#24518) 2023-09-08 13:51:13 -04:00
Harrison Healey
86689b7ee6
MM-54399 Move resizable sidebar handles to not overlap scrollbars (#24491)
* MM-54399 Move resizable sidebar handles to not overlap scrollbars

* Disable RHS resizing in mobile view

* Fix snapshots

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
2023-09-08 11:50:47 -04:00
Ben Schumacher
42e988132c
[MM-46134] Add additional checks for PostStore/PostgreSQL/GetForThread/Pagination (#24458)
* Use require

* Add additonal length checks

* Remove Skip

* Manually set CreateAt
2023-09-08 16:50:53 +02:00
Ben Schumacher
a32e793982
Fix logger panic in migration scheduler (#24509)
Automatic Merge
2023-09-08 17:27:36 +03:00
Scott Bishel
15faf4a69c
update to use AppError.Where() to differentiate errors (#24379)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-09-08 08:17:58 -06:00
Jesse Hallam
2d1848bf14
fix TestGetServiceEnvironment (#24506)
A late change to the service environment functionality had us defaulting to `dev` instead of `test` without the `production` build tag. Unfortunately, because these tests were unintentionally being skipped within the submodule, the failure wasn't caught at the time. A simple update addresses the unit tests.

Fixes: https://mattermost.atlassian.net/browse/MM-54197
2023-09-08 11:00:48 -03:00
Christopher Poile
4022d2e762
MM-54443 - Fix: registerDesktopNotificationHook is missing (#23884) (#24497)
(cherry picked from commit 46a659e06d)
2023-09-08 08:16:26 -04:00
Doug Lauder
924cc0ec1a
Fix race in JobServer.HandleJobPanic (#24502)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2023-09-08 11:09:37 +02:00
David Janda
afeeacb94a
Use GetBuilder and SelectBuilder to remove some boilerplate in group_store.go (#24255) 2023-09-07 18:28:39 +03:00
Agniva De Sarker
acdfefe456
Revert "MM-53879: Fix recursive loading of license (#24200)" (#24498)
This reverts commit dd73c2af0f.
2023-09-07 20:58:20 +05:30
Devin Binnie
01cf4b459f
[MM-54402] Change protocol transform method for Desktop Auth to be compliant with web standards (#24479) 2023-09-07 09:03:39 -04:00