Commit Graph

17708 Commits

Author SHA1 Message Date
Jesse Hallam
0577a5aaa2
Fix OpenApi vetting (#23974)
* fix openApi vetting

The underlying mattermost-govet tool effectively hasn't been called for some time, as we weren't checking out and building the spec files to pass. Now that hte API is in the monorepo, build it locally and check against it.

Unfortunately, our API documentation isn't up-to-date, and this PR isn't fixing that. For now, add a discrete `make vet-api` and workflow that won't block the build until the API documentation is back in sync and can be merged into the existing `make vet` directive.

* mattermost-govet: use upstream@new

* fix missing /api/v4 prefix for commands autocomplete suggestion

* document /api/v4/ldap/users/{user_id}/group_sync_memberships

* document /api/v4/groups/{group_id}/restore

* fix /files/{file_id}/public actually at root

* document /api/v4/users/invalid_emails

* fix SetThreadUnreadByPostId

* Revert "fix SetThreadUnreadByPostId"

This reverts commit b16bcc8044.

* Revert "Revert "fix SetThreadUnreadByPostId""

This reverts commit 8bda05dc8a.

* workaround undocumented API endpoints

* remove unnecessary whiteline

* ignore go tool output

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 11:27:43 -03:00
Nick Misasi
930309e01e
[CLD-6373] Fix non-admin users requesting self hosted expansion status on load (#24890)
* Fix non-admin users requesting self hosted expansion status on load

* Fix linter

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 09:55:13 -04:00
Jesús Espino
b6fd1b7bcf
migrating elasticsearch_settings.test.jsx to typescript (#24947)
* migrating elasticsearch_settings.test.jsx to typescript

* Fixing CI
2023-10-16 15:11:33 +02:00
Jesús Espino
8eaaa7228e
migrating database_settings.test.jsx to typescript (#24946)
* migrating database_settings.test.jsx to typescript

* Removing unnecessary type assertion
2023-10-16 13:45:53 +02:00
Eric Sethna
6abaf04a95
Add "thanks" and "thank you" to "pray" emoji (#24090) 2023-10-16 16:10:57 +05:30
M-ZubairAhmed
d557bd864f
[MM-54138] Remove code involving getRedirectLocation and state.entities.posts.expandedURLs (#24739) 2023-10-16 16:09:59 +05:30
Zubair Imtiaz
d98dc31425
Fixes [#24664] Improve System Message Formatting for Channel Header Edits (#24714)
* Added cancel button in the delete category modal

* fix lint error

* fix eslint issues

* Line break Added in system messages-ChannelHeader

* fix-lint

* Update _post.scss

* Update _markdown.scss

* Update system_message_helpers.tsx

* remove_extra_spaces

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-16 12:34:43 +02:00
Maria A Nunez
2f5b756d67
MM-53481 Fix textbox broken Help link (#24889)
* Fixed broken link

* Fix importa

* Lint

* Fix import

* Linting

* fix snapshots
2023-10-16 06:24:47 -04:00
js029
9698ab2119
Mm 24857 specific logger in post go (#24862)
Co-authored-by: js029 <js029@gmail.com>
2023-10-16 12:17:04 +02:00
Paul Vernin
6457a47110
update (_sidebar-right.scss): remove default max-width (400px) of .sidebar--right (#24878) 2023-10-16 11:22:26 +02:00
Kritik Jiyaviya
a2475a46a6
Convert ./components/integrations/integration_option.tsx to functional component (#24806)
* Convert ./components/integrations/integration_option.tsx to functional component

* update integration_option component

* improve integration_option component
2023-10-16 10:21:35 +02:00
Harshil Sharma
89eae8babe
Updated error message for invalid attachments (#24872) 2023-10-16 11:24:58 +05:30
Saturnino Abril
6746857ee7
MM-52642 CLD-6352 MM-54007 Prepare setup for Playwright pipeline (#24647)
* pipeline(playwright): prepare setup for playwright

* feedback address

* clean up readme

* Fix docker-compose command and definition for dashboard

* fix the dashboard

* ignore dashboard when formatting

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Mario Vitale <mvitale1989@hotmail.com>
2023-10-14 07:02:32 +08:00
Michael Kochell
e9da1ee8ca
Performance metrics: Differentiate requests that are from page load (#24327)
* POC page_load_context header

* refactor to make this.pageLoadContext a private field, and relocate setTimeout code

* add pageLoadContext to `ObserveAPIEndpointDuration` method

* move to telemetry_actions

* move PageContext constant in webapp

* give server control of possible page_load_context values

* variable name change

---------

Co-authored-by: mickmister <mickmister>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-13 14:59:12 -04:00
Ben Cooke
72c75f01ce
[MM-52710] Adding a separator to the channel search string (#24349)
* adding a separator to the search string
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-13 12:52:23 -04:00
Gabriel Akinyosoye
02d0b12c96
[MM-54639] Help menu should open correctly aligned (#24655)
* remove openLeft

* remove prop usage

* revert menu

* change user guide dropdown

* update snapshot
2023-10-13 12:49:10 -04:00
Maria A Nunez
7074850fb1
Remove professional plus from in-product pricing (#24727)
* Remove professional plus from cloud pricing

* Removed additional unused strings
2023-10-13 11:57:56 -04:00
Scott Bishel
f4b4afdae6
MM-53855 - Handle serverError undefined or null (#24630)
* handle serverError undefined or null

* exclude bots from list and search for adding users to roles

* add import, fix lint

* add unit tests

* update test, team/channel admin based on membership, not user roles

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-13 09:57:17 -06:00
Agniva De Sarker
bd982356a7
Move mmctl CI tests to free tier (#24899)
Only the -race tests in master branch takes
more memory. So it will take more time, but there's no
need to optimize run time in master as nobody
is waiting for it to complete.

```release-note
NONE
```
2023-10-13 21:09:36 +05:30
Mattermod
a4754181f9
Update minor version to 9.2.0 (#24914)
Automatic Merge
2023-10-13 16:22:23 +03:00
mattermod
22686de81d Update latest version to 9.0.1 2023-10-13 12:28:43 +00:00
Alejandro García Montoro
2bc99398f9
MM-53023: Add origin client to ObserveAPIEndpointDuration (#23631)
* Add origin device to ObserveAPIEndpointDuration

* Fix generation of einterfaces mocks

* make einterfaces-mocks

* Use request's query and headers to get origin

* Add desktop to the origin device identification

* Test originDevice function

* Rename origin device to origin client
2023-10-12 19:09:52 +02:00
Sai Deepesh
1fe2295c70
[MM-47094] Migrate "components/integrations/abstract_oauth_app.jsx" and tests to Typescript (#24529) 2023-10-12 21:26:54 +05:30
Michael Kochell
195927eb4a
Revert "jira plugin prepackage 4.0.0 (#24609)" (#24901)
This reverts commit 2d9e0108e8.
2023-10-12 11:05:00 -04:00
Devin Binnie
89492a6a46
[MM-53428] Delete empty drafts on upsert (#24046)
* [MM-53428] Delete empty drafts on upsert

* Add migrations to fix existing drafts

* Fix CI

* Delete empty drafts entirely from the DB

* Fix lint

* Implement batch migration for deleting drafts

* Missing store layers

* Add updated mock

* Remove unnecessary test

* PR feedback

* Add check for cluster migration

* Fix MySQL

* Don't check for len<2

* Bit of PR feedback

* Use query builder for parameters

* PR feedback

* More PR feedback

* Merge'd

* unit test GetLastCreateAtAndUserIdValuesForEmptyDraftsMigration

* simplified builder interface

* fix DeleteEmptyDraftsByCreateAtAndUserId for MySQL

* rework as batch migration worker

* fix typo

* log ip address on version mismatches too

* simplify reset semantics

* remove trace log in favour of low spam

* document parameters for clarity

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
2023-10-12 10:52:10 -04:00
M-ZubairAhmed
760dfe41f9
[MM-54879] Goodbye, GraphQL -- Regards Webapp (#24850) 2023-10-12 17:03:13 +05:30
Soumyadip Moni
cd4d220a21
[MM-54831] Convert LocalizedInput of 'rename_channel_modal.tsx' to regular input component (#24874) 2023-10-12 16:59:16 +05:30
Ben Schumacher
e4fa6200c3
[MM-45309] Replace github.com/mattermost/gziphandler with github.com/klauspost/compress/gzhttp (#24293) 2023-10-12 08:27:31 +02:00
Ben Schumacher
eb35e83152
[MM-54850] Use request-specific logger in channels/app/admin_advisor.go (#24859) 2023-10-12 08:23:57 +02:00
Agniva De Sarker
3dd9e3715c
Goodbye, GraphQL (#24827)
```release-note
NONE
```
2023-10-12 09:47:35 +05:30
Claudio Costa
d172ff1881
[MM-51852] Update getProfilesInCalls selector (#24731)
* Update getProfilesInCalls selector

* Update tests
2023-10-11 10:48:19 -06:00
Deepayan Mukherjee
77ee4d93b7
[MM-24856] User request specific loggers in channels/api4/system.go (#24881)
* replace global mlog with local c.Logger and setInvalidParam with setInvalidParamWithErr if relevant

Signed-off-by: Deepayan Mukherjee <deepayanmukherjee1312@gmail.com>

* replace global mlog.Info with local c.Logger.Info

Signed-off-by: Deepayan Mukherjee <deepayanmukherjee1312@gmail.com>

---------

Signed-off-by: Deepayan Mukherjee <deepayanmukherjee1312@gmail.com>
2023-10-11 17:34:49 +02:00
Ben Schumacher
13c05a571f
Migrate store methods to use request.Context instead of context.Context (#24836) 2023-10-11 13:08:55 +02:00
Ben Schumacher
0d5a8b8841
Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
Balaji K
176370e175
[MM-54835] Convert LocalizedInput of 'custom_url_schemes_setting.tsx' to regular input component (#24854) 2023-10-11 11:46:45 +05:30
js029
463945e8cc
[MM-54839] Convert LocalizedInput of 'email_to_ldap.tsx' to regular input component (#24837) 2023-10-11 11:45:13 +05:30
Kritik Jiyaviya
8ae1cb2c37
[MM-54833] Convert LocalizedInput of 'password_reset_form.tsx' to regular input component (#24839) 2023-10-11 11:40:42 +05:30
Agniva De Sarker
4f279a1dd9
Set env vars properly when running mmctl tests (#24842)
Exporting a variable doesn't really pass that
down to the docker container. We pass the `--env`
variable manually.

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-11 11:12:18 +05:30
Matthew Birtch
21845e2b9b
MM-53513 Update styles of slack attachment buttons (#24628)
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-10 16:34:03 -05:00
Jesús Espino
6274faeda8
Revert "Migrating the admin_definition.jsx file to typescript (#24658)" (#24869)
This reverts commit a1bf8504a8.
2023-10-10 22:33:24 +02:00
Harrison Healey
88954c651a
Update subpackage versions for 9.2 (#24865) 2023-10-10 13:27:16 -04:00
Jesús Espino
a1bf8504a8
Migrating the admin_definition.jsx file to typescript (#24658)
* Migrating admin_definition from jsx to tsx

* Fixing types and errors

* Fixing all the types errors

* Fixing linter errors

* Removing no longer needed yup dependency

* Moving admin_definition types to its own file

* Removing a couple of anys

* Fixing linter errors

* Fixing tests snapshots
2023-10-10 13:26:45 -04:00
Firmansyah Yanuar
cf9f853526
[MM-54795] Convert ./components/widgets/icons/fa_previous_icon.tsx to function component (#24786)
* chore(channels): convert previous icon to functional components

* chore(channels): change to arrow function, remove `t`, and use `classNames`

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-10 13:21:43 -04:00
Asaad Mahmood
d2790dcab7
MM-54768 - Updating user popover UI (#24814)
* MM-54768 - Updating user popover UI

* Fixing test errors

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-10 22:00:34 +05:00
Asaad Mahmood
f573aaba02
MM-54139 - Updating disabled state menu color (#24815) 2023-10-10 21:51:00 +05:00
Firmansyah Yanuar
e23fe22328
[MM-54798] Convert ./components/widgets/separator/basic-separator.tsx to function component (#24788)
* chore(channels): convert basic separator to functional components

* chore: change to arrow function

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-10-10 11:48:06 -04:00
linkvn
ca012fc375 Translated using Weblate (Vietnamese)
Currently translated at 59.4% (1479 of 2489 strings)

Translation: Mattermost/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/vi/
2023-10-10 18:21:15 +03:00
Achmad Dinofaldi Firmansyah
b0d40fc94b Translated using Weblate (Indonesian)
Currently translated at 36.7% (914 of 2489 strings)

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

Translated using Weblate (Indonesian)

Currently translated at 33.2% (827 of 2489 strings)

Translation: Mattermost/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/id/
2023-10-10 18:21:15 +03:00
Alphanum404
ab953df8de Translated using Weblate (Indonesian)
Currently translated at 33.2% (827 of 2489 strings)

Translation: Mattermost/mattermost-server-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server-monorepo/id/
2023-10-10 18:21:15 +03:00
master7
cd8fa9b430 Translated using Weblate (Polish)
Currently translated at 100.0% (5706 of 5706 strings)

Translation: Mattermost/mattermost-webapp-monorepo
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp-monorepo/pl/
2023-10-10 18:21:15 +03:00