Commit Graph

18259 Commits

Author SHA1 Message Date
Aditya Pratap Singh Hada
6541708a93
[MM-55735] Add Request Context to PostStore.Save (#26048) 2024-02-20 17:07:20 +01:00
Nick Misasi
287962a309
[CLD-6630] Cleanup: Refactor IP Filters email notification logic into app layer (#26072)
* Refactor IP Filters email notification logic into app layer

* Forgot to git add
2024-02-20 10:52:55 -05:00
Ibrahim Serdar Acikgoz
7d8a56019b
[MM-56348] system/ping: add new method with options (#26079) 2024-02-20 14:22:28 +01:00
Angel Mendez
0aaa047ea3
Migration typescript/enterprise/ldap (#25840)
* refactor: migrate file ldap_group_sync_spec.js to ts

- migrate file to typescript

* refactor: migrate file ldap_guest_spec.ts to ts

- migrate file to typescript
- update data types

* refactor: migrate ldap_login_spec.js to ts

* refactor: migrate ldap_setting_spec.js file to ts

- convert file to typescript

* Fix: type error

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2024-02-20 12:52:22 +05:30
Matthew Straughn
1e794136c8
MM 19654 s3 debugging logs overlap, Wrapped mlog in an io.Writer func (#25788)
* updated go mod and sum files

* Revert "updated go mod and sum files"

This reverts commit 088dd00a84.

* wrapped mlog in and io.Writer func to pass to TraceOn

* fixed var and func receiver names

* removed the underscore in the func receiver.

* passed a pointer of s3Trace to TraceOn

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-20 07:59:26 +05:30
Wayne Wollesen
fd91064016
fixed typos (#24182) 2024-02-19 22:40:32 +01:00
Utsav Ladani
dc9e404df0
[GH-25298] Place the text centered in default profile picture (#25324) 2024-02-19 16:05:51 +01:00
mattermod
97479800c2 Update latest version to 9.5.1 2024-02-19 14:43:00 +00:00
mknd1
c084be79bb
[MM-T2078] Write Webapp E2E with Cypress: "MM-T2078 Profile picture: file types accepted" (#25824)
Automatic Merge
2024-02-19 14:22:22 +02:00
Angel Mendez
d81910d721
Migration: typescript/okta commands.js (#25730)
* refactor: migrate okta _commands.js to typescript

- convert okta _commands.js file to typescript
- add types to function arguments
- declare types for functions into same file

* docs: add docs for okta_commands.ts

- add documentation
- improve type definitions
- add return types

* refactor: create interface for okta response on okta_commands.ts

- create interface OktaResponse
- replace any with OktaResponse

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-19 19:09:17 +08:00
Angel Mendez
19d6a2c47d
Migration typescript/team.js (#25811)
* refactor: convert file team.js to ts

- convert file to typescript
- create types in file

* refactor: use optional chaining operator for link.click

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-19 19:07:54 +08:00
Angel Mendez
a777e12055
Migration typescript/channel sidebar.js (#25812)
* refactor: convert channel_sidebar.js to ts

- convert file to typescript

* refactor: add type for category on channel_sidebar.ts

- create interface Category into channel_sidebar.ts
- remove file with type category.d.ts

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-19 19:05:47 +08:00
Syed Ali Abbas Zaidi
d21236b908
[MM-56843] Convert ./actions/views/modals.test.jsx from Class Component to Function Component (#26238) 2024-02-19 07:58:49 +00:00
Trang
f130615011
[MM-55737] Add Request Context to UserStore.Save (#26109) 2024-02-16 17:12:49 +01:00
Tom De Moor
9643a16408
fixing filenames (#26231)
* fixing filenames

* building email templates

* Revert "building email templates"

This reverts commit 6aa419df3b.

---------

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-16 08:06:00 -07:00
Harrison Healey
7d9f725d90
MM-56776 Call ChannelHasBeenCreated plugin hook for GMs (#26226) 2024-02-16 09:47:08 -05:00
Syed Ali Abbas Zaidi
5fcab87934
[MM-56846] Convert ./components/analytics/table_chart.tsx from Class Component to Function Component (#26237)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-16 11:55:08 +05:30
Harrison Healey
54507bb115
Fix types of various fields in GlobalState (#26125)
* Fix types of entities.admin.analytics and entities.admin.teamAnalytics

* Fix type of entities.channels.channelsInTeam

* Fix types of entities.users.stats and entities.users.filteredStats

* Fix types of various profilesInX fields in entities.users

* Fix incorrect field name last_password_update_at used when updating password

We never noticed this bug before because the settings modal reloads the current user after updating their password.

* MM-56760 Fix users not being removed from state.entities.users properly
2024-02-15 12:25:11 -05:00
Amy Blais
64b140900e
Promote/downgrade some languages (#26216)
Automatic Merge
2024-02-15 18:12:05 +02:00
Agniva De Sarker
f3c7510c70
MM-56878: Remove unused store method (#26230)
IsUserInChannelUseCache wasn't being used anywhere.

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

```release-note
NONE
```
2024-02-15 19:20:48 +05:30
Ben Schumacher
de3e5aab25
[MM-53156] Remove Multi-Product architecture (#25669) 2024-02-15 13:01:44 +01:00
Yusuke Nemoto
d3b799eaa5
[MM-52171] webapp: Make rhs_card reloading when card body is changed (#23612) 2024-02-15 11:50:39 +01:00
M-ZubairAhmed
114b3dc8d2
[MM-56824] Componentize the Mobile and Desktop section headers in the user settings modal. (#26193) 2024-02-15 09:56:25 +00:00
M-ZubairAhmed
86c880cf87
[MM-56798] Smoothen animation and lazy load User Settings (#26168) 2024-02-15 09:54:54 +00:00
Christopher Speller
5758f234e5
Allow plugins to specify all props for create comment. (#26152)
* Allow plugins to specificy all props for create comment.

* Types
2024-02-14 07:46:12 -08:00
Agniva De Sarker
28cb8d0441
MM-56579: Include deactivated users from DM posts (#25985)
There were 2 separate bugs here:
1. We were not including deactivated users while fetching posts from
DM channels.
2. We were not respecting the includeArchivedChannels flag while
fetching DM channels.

We fix both of these issues here.

```release-note
Include posts from deactivated users in DM channel export. Also
respect the --include-archived-channels flag for DM channels.
```

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

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-14 20:59:46 +05:30
Christopher Poile
62f616dfbf
MM-56571 - Update prepackaged calls to v0.24.0 (#26189) 2024-02-14 09:24:42 -05:00
Harrison Healey
4ac345cc56
Add some tests for plugin hooks used by MS Teams plugin automute (#26144)
* Confirm that plugins can trigger their own PreferencesHaveChanged hook

* Add tests for ChannelHasBeenCreated hook

* Convert new tests to use assert.Eventually

* Add tests for UserHasJoinedChannel hook

* Bypass linter for a case where t.Fatal is needed
2024-02-13 16:39:19 -05:00
Christopher Speller
3bf8574b0d
Add handling of posts with unsafe links. (#26129)
* Add handling of posts with unsafe links.

* Lint

* Add some tests.

* Remove interal links exception

* Add exception for links that start with siteurl, except image proxy

* Allow only permalinks

* Don't interperate regex in siteURL

* Negate the external requests helper

* Modify prop check to only check for 'true'

* Move regex outside function.
2024-02-13 09:28:30 -08:00
Harrison Healey
daab9d5ff5
Improve types of testing utilities and fix some types in unit test code (#26122)
* Improve type of DeepPartial and make mergeObjects handle Sets/Maps properly

* Fix linting

* Remove undefined fields from menu_cloud_trial.test

* Prevent importing the wrong version of DeepPartial
2024-02-13 11:48:13 -05:00
Agniva De Sarker
bdce9f42d8
MM-56358: Unskip racy test TestUploadLicenseFile (#26009)
This was already fixed before in https://github.com/mattermost/mattermost/pull/24971.
We just enable the test now.

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

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-13 21:03:17 +05:30
Daniel Espino García
845f28cb76
Fix system console plugin headers (#26196)
* Fix system console plugin headers

* Fix tests
2024-02-13 10:28:38 +01:00
Ben Schumacher
578216a5e4
[MM-53935] Log message if user tries to login using wrong password (#25343) 2024-02-13 10:11:27 +01:00
Ben Schumacher
8498a18854
[MM-55469] Don't show ldap job details until job runs (#25433) 2024-02-13 10:09:11 +01:00
Devin Binnie
cf11adff98
[MM-56478] Only clear the suggestion pretext when the suggestion is completed and not when the list is cleared (#26151)
* [MM-56478] Only clear the suggestion pretext when the suggestion is completed and not when the list is cleared

* Also clear pretext when unfocusing the box
2024-02-12 11:05:11 -05:00
Devin Binnie
c723bf345a
[MM-56654] Turn off landing page for Desktop App token flow, cleanup check for landing page (#26126) 2024-02-12 11:04:38 -05:00
M-ZubairAhmed
41081b9eee
[MM-56572] Preview doesn't work when editing a channel header (#26158) 2024-02-12 14:54:27 +00:00
Weblate (bot)
744b059a75
Translations update from Mattermost Weblate (#26143)
* Translated using Weblate (Russian)

Currently translated at 99.8% (5807 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ru/

* Translated using Weblate (Czech)

Currently translated at 95.3% (5545 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/cs/

* Translated using Weblate (Russian)

Currently translated at 100.0% (2588 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ru/

* Translated using Weblate (Russian)

Currently translated at 100.0% (5817 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ru/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2588 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (Dutch)

Currently translated at 99.9% (2587 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2588 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/zh_Hans/

* Translated using Weblate (English (Australia))

Currently translated at 99.1% (2565 of 2588 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/en_AU/

* Translated using Weblate (German)

Currently translated at 100.0% (2589 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/de/

* Translated using Weblate (English (Australia))

Currently translated at 99.9% (2587 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/en_AU/

* Translated using Weblate (Polish)

Currently translated at 100.0% (2589 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2589 of 2589 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/zh_Hans/

* Translated using Weblate (English (Australia))

Currently translated at 100.0% (5817 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/en_AU/

* Translated using Weblate (Czech)

Currently translated at 95.3% (5545 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/cs/

* Translated using Weblate (Polish)

Currently translated at 100.0% (5817 of 5817 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/pl/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/

---------

Co-authored-by: Konstantin <eleferen@gmail.com>
Co-authored-by: Martin Joneš <m.jones@7group.cz>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: ThrRip <coding@thrrip.space>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Matthew Williams <Matthew.Williams@outlook.com.au>
Co-authored-by: Petr Chlíbek <p.chlibek@7group.cz>
2024-02-12 10:35:05 -04:00
M-ZubairAhmed
30024c78af
Migrate "cluster_settings.test.jsx, message_export_settings.test.jsx, schema_admin_settings.test.jsx, interactive_dialog/index.js" to Typescript (#26111) 2024-02-12 13:55:36 +00:00
Harrison Healey
0a1acfeb80
Add some more tests to the plugin API (#26057)
Automatic Merge
2024-02-12 13:12:05 +02:00
M-ZubairAhmed
90b21cad33
End to End test for Admin Reporting for Users, new User Management screen (#26077)
https://mattermost.atlassian.net/browse/MM-56672
https://mattermost.atlassian.net/browse/MM-56666
https://mattermost.atlassian.net/browse/MM-56673
2024-02-12 08:28:47 +00:00
Doug Lauder
4c8a134659
Fix racy unit tests by protecting service ref with a mutex (#26183) 2024-02-09 16:07:37 -05:00
Amy Blais
2116bf5498
Update minimum supported Edge and Chrome versions (#26182)
Automatic Merge
2024-02-09 22:12:05 +02:00
Michael Kochell
4e071e861c
Webapp - Outgoing OAuth Connections (#25507)
* added store

* make generated

* add missing license headers

* fix receiver name

* i18n

* i18n sorting

* update migrations from master

* make migrations-extract

* update retrylayer tests

* replaced sql query with id pagination

* fixed flaky tests

* missing columns

* missing columns on save/update

* typo

* improved tests

* remove enum from mysql colum

* add password credentials to store

* license changes

* OAuthOutgoingConnectionInterface

* Oauth -> OAuth

* make generated

* copied over installed_oauth_apps component and renamed things to installed_outgoing_oauth_connections

* merge migrations

* renamed migrations

* model change suggestions

* refactor test functionsn

* migration typo

* refactor store table names

* updated sanitize test

* cleanup merge

* refactor symbol

* "installed outgoing oauth connections" page works

* move things into a nested folder

* add and edit page stubs work

* list endpoint

* oauthoutgoingconnection -> outgoingoauthconnection

* signature change

* i18n update

* granttype typo

* naming

* api list

* uppercase typo

* i18n

* missing license header

* fixed path in comments

* updated openapi definitions

* changes to support selecting command request url

* sanitize connections

* make generated

* test license and no feature flag

* removed t.fatal

* updated testhelper calls

* yaml schema fixes

* switched interface name

* suggested translation

* missing i18n translation

* management permission

* moved permission initalization to proper place

* endpoints

* put tests

* error check typo

* fixed specific enttity urls

* tests

* read permission check

* updated openapi definitions

* i18n

* GetConnectionByAudience method

* notes

* replaced GetConnectionsByAudience with a filter

* added custom oauth token object

* updated interface and usage

* properly set enterprise interface

* move retrieval logic to impl

* webhook tests

* translations

* i18n: updates

* address comments

* endpoint and tests

* i18n

* api docs

* fixed endpoint path

* sq.like

* use filter object instead of parameters

* set url values if not empty

* typos

* converted some components to function components, and move around files

* correctly check token url

* restore flag to previous value

* added command oauth handler

* update enterprise imports

* migrate last component to function component

* Added enterprise import

* refactor permissions and add necessary webapp code

* Check correct flag in permission tree

* allow partial updates

* sort i18n webapp

* missing test modification

* fixed webapp i18n sorting

* allow validating stored connections

* added missing translation

* fix finished adding connection link and text on result page

* added missing permission to smoke tests

* missing role in smoke test

* updated translations

* updated translations

* support editing client secret on existing connection

* fix some i18n strings

* updated translations

* better error messages

* progress on using react select for command request url while maintaining typed in value

* remove writeheader, test

* HasValidGrantType

* end early to avoid nil pointer errors

* move slash command request url input box into its own component

* wrap components related to oauth connections in config check

* fix tests

* i18n-extract

* change some i18n strings to say "Outgoing OAuth 2.0 Connections"

* remove debug code

* fixed i18n

* updated i18n file

* feature configuration backend

* typo

* add system console setting

* Revert "typo"

This reverts commit 669da23e8e.

* Revert "updated i18n file"

This reverts commit d0882c0dd7.

* Revert "fixed i18n"

This reverts commit 3108866bc1.

* fixed i18n

* updated i18n file

* typo

* updated i18n

* updated i18n

* updated i18n

* updated version to 9.6

* replace feature flag with system console configuration

* i18n

* updated tests

* pr feedback

* fix styling of disabled text box

* fix styling of action links in integration console

* server changes for validation feature

* webapp changes for validation feature

* pencil icon styling

* styling fixes for oauth audience correct configuration message

* fix sanitize test

* remove max lengths from outgoing oauth connection form

* use config var in webapp instead of feature flag

* change asterisks to bullets

* update api docs for validate endpoint

* feedback from ux review

* fix lint, types, tests

* fix stylelint

* implement validation button under the token url input

* support wildcard for matching audience urls

* updates for styling

* update snapshots

* add doc links for the outgoing oauth connections feature

* change doc links to use permalink

* add docs link to system console

* fix: use limitedreader in json decoding

* fix: form error in validation

* management permission can read now

* updated api documentation

* doc typo

* require one permission to read only

* fix api connection list audience filter

* fix audience matching and add loading indicator

* fix team permissions on outgoing oauth connection api calls

* fix api doc and test, for adding team id to query params

* handle read permissions by adding a team in the payload

* missing teamid query parameter in test

* change validate button logic to not require audience urls to be filled out

* fix redux type

---------

Co-authored-by: Felipe Martin <me@fmartingr.com>
2024-02-09 14:49:49 -05:00
Joey Lee
3f6c94cfc3
Auto select first emoji in emoji picker (#26165) 2024-02-09 14:41:41 -05:00
Ben Cooke
fe47e75b92
MM-56752 (#26100)
* using token

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-02-09 11:17:28 -05:00
Ben Schumacher
7e317c7568
[MM-56455] Handle HTTP error for too large request body in Client4 (#25842) 2024-02-09 17:15:03 +01:00
Doug Lauder
7b7bcff821
Shared channels auto-share DM & group messages (#26097)
* option for auto inviting plugin to all shared channels.
* auto-invite remotes to shared channels when flag set
2024-02-09 10:47:12 -05:00
Jesse Hallam
7e419e98ee
do not delete an empty set of preferences (#26172) 2024-02-09 10:59:05 -04:00
Devin Binnie
63f8991960
[MM-56782][MM-56783] Fix two small visuals with the user reporting interface (#26150) 2024-02-08 07:39:13 -05:00