Commit Graph

16889 Commits

Author SHA1 Message Date
mvitale1989
cdc73cd8e3
Upgrade docker CI image to 23.0.1 (#23664)
Automatic Merge
2023-06-07 19:49:48 +03:00
Sai Deepesh
0ccd82c1d4
[MM 22957] webapp a11y: fix sso btns focus issue (#23326)
* make suggested changes

* added form tag and removed event handler

* fix snapshot

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-07 09:59:36 -04:00
Jesse Hallam
305fac6507
Service environment (#23443)
* fix fileutils.TestFindFile on MacOS

* introduce model.ExternalServiceEnvironment

* pick license public key from external service env

* pick Stripe public key from external service env

* pick Rudder key from external service env

* configure Sentry DSN from external service env

* always log external_service_environment, Unsetenv

* clear faked BuildEnv, improve logging

* strip out unset GOTAGS

* fix Sentry tests

* simplify to just ServiceEnvironment

* relocate ServiceEnvironment in client config

* initialize CWS URLs based on service environment

* unset rudder key for boards dev

* harden service environment to avoid accidental production

* fix TestSentry again

* fix DEFAULT -> ENTERPRISE

* s/dev/test when naming playbooks rudder key

* simplify boards rudder key switch

* use uniform rudderKey variable names

* retain compatibility with existing pipeline

* reduce to just production/test

* unit test with valid test license

* simplify Playbooks telemetry initialization

* restore dev service environment

* emit ServiceEnvironment when running e2e tests
2023-06-07 10:15:33 -03:00
Ben Schumacher
6c82605df0
[MM-49989] Pass a context.Context to Client4 methods (#22922)
* Migrate all method in model/client4.go to accept a context.Context

* Fix th.*Client

* Fix remaining issues

* Empty commit to triger CI

* Fix test

* Add cancellation test

* Test that returned error is context.Canceled

* Fix bad merge

* Update mmctl code

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-06 23:29:29 +02:00
Doug Lauder
7116e9267a
fix typo in index name for idx_teammembers_create_at (#23632) 2023-06-06 10:50:16 -04:00
Tejas Karelia
ce7578615c
[MM-52835]: Migrate "components/admin_console/settings_group.jsx" and tests to Typescript (#23563) 2023-06-06 12:54:31 +05:30
Judy Hanson
8690da4b0d
[MM-52833]: Migrate "components/admin_console/multiselect_settings.jsx" to Typescript (#23542) 2023-06-06 12:51:36 +05:30
Karan Mishra
e4982908d6
[MM-52839]: Migrate "components/admin_console/remove_file_setting.jsx" to Typescript (#23565) 2023-06-06 12:35:46 +05:30
Julien Tant
0468e772a9
[MM-52926] Deprecating work templates (#23466)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 18:42:03 -07:00
Scott Bishel
22275fa0f5
MM-52818 - create config setting to enable/disable playbooks product (#23508)
* create config setting to enable/disable playbooks product

* fix to config name

* fix typo

* revert changes to package-lock.json

* update name of test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 15:18:20 -06:00
Ben Schumacher
3705d7af4d
Fix panic if JSON null value is passed as channel update (#23629) 2023-06-05 19:16:47 +02:00
Harrison Healey
9c656c25d9
Re-export all React Testing Library functions (#23522) 2023-06-05 12:49:31 -04:00
M-ZubairAhmed
f4f420dd93
[MM-52979]: Remove code around abandoned MUI modal migration (#23556) 2023-06-05 18:40:38 +05:30
M-ZubairAhmed
b6a407c392
MM-52819 : "medical_symbol", "male_sign" and "female_sign" emojis are broken (#23538) 2023-06-05 18:38:46 +05:30
Saturnino Abril
1926455a00
Clean up at .github due to repo rename (#23580)
* update .github after repo rename

* update

* Update PULL_REQUEST_TEMPLATE.md

---------

Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 20:12:08 +08:00
Matheus
bfa1a41f3f
[MM-44165]: When Help link is left blank Help Resources option should not be visible in the help menu (#23609) 2023-06-05 17:34:05 +05:30
KyeongSoo Kim
fbd6b5efe1
[MM-30432]: Allow users to specify different desktop notification sounds per channel (#21671) 2023-06-05 17:28:05 +05:30
Miguel de la Cruz
951456c780
Includes mmctl into the mono-repo (#23091)
* Includes mmctl into the mono-repo

* Update to use the new public module paths

* Adds docs check to the mmctl CI

* Fix public utils import path

* Tidy up modules

* Fix linter

* Update CI tasks to use the new file structure

* Update CI references
2023-06-05 12:42:55 +02:00
Harshil Sharma
412109b02e
[MM-45802] Clear CRT notification on deleted reply (#23568)
* reduce the counter on post deletion

* add test

* change translations

* fix collecting mentions for DMs

* add translation texts

* extract logic for getting mentions

* send WS event

* add e2e tests

* tidy mod

* WIP

* Deleting notification async

* Fixed a unit test

* Added more tests

* Updated i18n

* CI

* mattermost-server -> mattermost

* mattermost-server -> mattermost

---------

Co-authored-by: Konstantinos Pittas <konstantinos.pittas@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 16:02:40 +05:30
Ben Schumacher
b6b561a8f1
[MM-52973] Avoid thundering herd problem in IsFirstUserAccount (#23549) 2023-06-05 10:32:23 +02:00
Ben Schumacher
9a55280d7a
[MM-52955] Fix panic for not found posts (#23561) 2023-06-05 10:00:06 +02:00
Alejandro García Montoro
c94e8c2134
MM-53002: Fix ESR CI (#23599)
* Do not use the mattermost path

The /mattermost path is used by the image and it seems to conflict with
the container running the binary

* Use a regular machine in the esr-upgrade-diff job

* Add missing space
2023-06-04 16:37:04 +05:30
Harrison Healey
789f84af90
MM-52297 Fix reactions disappearing with search open and add testing utilities (#23510)
* MM-52297 Fix reactions disappearing when search is open

* Add unit tests and extra utilities

* Fix typing issue
2023-06-02 14:23:01 -04:00
Tejas Karelia
00ba62b300
[MM-52836] : Migrate "components/admin_console/admin_definition_constants.jsx" to TypeScript (#23566) 2023-06-02 20:36:41 +05:30
M-ZubairAhmed
36a6a0d9d0
Update PULL_REQUEST_TEMPLATE.md to include Jira ticket for contributors (#23589) 2023-06-02 20:35:57 +05:30
Christopher Speller
3b0d0d7179
MM-52476 Fix guest users access to playbooks. (#23279)
* Fix guest users access to playbooks.

* Fix guest access.

* Add guests list restriction.
2023-06-02 06:56:23 -07:00
Konstantinos Pittas
4d41365fbe
[MM-52541] Mark files as deleted along with thread (#23226)
* mark thread files as deleted

* add missing check

* improve query

* Stopped rendering post preview if post is deleted

* Fixed lint error

* Fixed test

* updated types

* Removed deleted post from other post's embed data

* Added tests

* Apply suggestions from code review

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* lint fix

---------

Co-authored-by: Konstantinos Pittas <konstantinos.pittas@mattermost.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2023-06-02 16:00:33 +05:30
Hideaki Matsunami
341b34d08f
Fix references from 'packages/*' to 'platform/*' in READMEs (#23498) 2023-06-02 15:35:58 +05:30
Sinan Sonmez (Chaush)
52e5cd5ecd
MM-51585 : Fix duplicated date separator in center channel when Pinned posts RHS is open (#23068) 2023-06-02 15:29:28 +05:30
Harshil Sharma
a00ee98fa2
Repo name ci fixes (#23569)
* mattermost-server -> mattermost

* mattermost-server -> mattermost

* Empty-Commit

* Empty-Commit

* Empty-Commit

---------

Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Akis Maziotis <akis.maziotis@mattermost.com>
2023-06-02 10:11:49 +03:00
Doug Lauder
2efb574d3d
Temporarily let AdvancedLoggingConfig take precedence over AdvancedLoggingJSON (#23578)
* Temporarily let AdvancedLoggingConfig take precedence over AdvancedLoggingJSON
2023-06-01 20:19:40 -04:00
Ibrahim Serdar Acikgoz
ac3b47bcae
fix server ci after renaming the project (#23576) 2023-06-01 19:39:32 -04:00
Sai Deepesh
5d54f599e5
[MM-21096] webapp: Migrate "components/suggestion/search_channel_with_permissions_provider.jsx" to Typescript (#23323)
* migrate to ts

* linting

* fix test

* refactor

* Remove accidental comments from merge

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2023-06-01 12:45:50 -04:00
Devin Binnie
31c67fff4b
[MM-52919] Remove all uses of window.desktop.version from webapp (#23558)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-01 12:44:27 -04:00
Ibrahim Serdar Acikgoz
a1614da6f8
server/docker-compose.yml: updates to run HA in local after monorepo (#23552) 2023-06-01 09:58:43 +03:00
Ben Cooke
e74b73e8ee
adding debug log when executing query (#23559) 2023-05-31 14:11:21 -04:00
mvitale1989
74beab5ad5
Revert "Prepare: run E2E smoketests with GitHub actions (#23301)" (#23553)
This reverts commit 68be3a6bcd.
2023-05-31 16:32:51 +02:00
Harrison Healey
676a83b351
Make save_post_spec less affected by other E2E tests (#23541) 2023-05-31 19:08:43 +08:00
Ben Schumacher
7a9a098ce4
Make used of typed atomic.Pointer (#23550) 2023-05-31 12:56:01 +02:00
Pablo Andrés Vélez Vidal
2ac375b3fe
MM-52365 - fix JS error banner (#23501)
* MM-52365 - fix js error banner

* add null type to bindings as an optional type
2023-05-31 10:30:42 +02:00
Ben Cooke
427635a96f
Avoid calling the user count query in future if we get a count > 0 (#23545)
* Avoid calling the user count query in future if we get a count > 0

* re-adding mock session to avoid adding the old mitigation in future

* adjustments based on feedback
2023-05-30 21:34:01 -04:00
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