Commit Graph

17854 Commits

Author SHA1 Message Date
Devin Binnie
109f4643c6 [MM-55017] Add API method to get users for Admin Reporting (#25499)
* Add store method to get reporting data

* Some store changes

* Added app layer

* Added API call, some miscellaneous fixes

* Fix lint

* Fix serialized check

* Add API docs

* Fix user store tests leaking users

* Fix test

* PR feedback

* Add filtering for role/team/activated user, filter out bot users

* Fix mock

* Fix test

* Oops

* Switch to using struct filter

* More PR feedback

* Fix gen

* Fix test

* Fix API docs

* Fix test

* Fix possible SQL injection, some query optimization

* Fix migrations

* Oops

* Add role to API

* Fix check

* Add Client4 API call for load testing

* Fix test

* Update server/channels/store/storetest/user_store.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* PR feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2023-12-08 10:30:08 -05:00
Syed Ali Abbas Zaidi
7afc14de36 [MM-56005] Convert ./components/admin_console/permission_schemes_settings/permission_team_scheme_settings/team_in_list/team_in_list.tsx from Class Component to Function Component (#25646)
* [MM-56005] Convert `./components/admin_console/permission_schemes_settings/permission_team_scheme_settings/team_in_list/team_in_list.tsx` from Class Component to Function Component

* refactor: use classNames to apply class

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-08 09:37:09 -05:00
Ben Cooke
a11b27d1f2 [MM-54594] Adding new global relay type (#24672)
* adding new global relay type, custom
2023-12-07 16:39:10 -05:00
unified-ci-app[bot]
769c7da7c5 chore: Update NOTICE.txt file with updated dependencies (#25619)
Automatic Merge
2023-12-07 16:38:57 +02:00
ludvigbolin
16925b3f16 [MM-54457] Suggestion list UI discrepancy from Add <user> to a Channel modal (#25340)
* Adjust inputRect dimensions to make suggestion list above/below

Now, the suggestion list will not be placed directly on the input and both
can be seen at once

* Remove position arguments to make suggestion-list correct

When choosing bottom, now the position not overwritten and thus the position will be correct.

Earlier adjustments has been reverted after feedback

* revert adjustments which was faulty

With the new way of configuring the suggestion list, we no longer need to
change the top and bottom

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-06 15:52:43 -05:00
Arun_dadhwal
da442cb52c changed SaveAcknowledgementForPost to DeleteAcknowledgementForPost (#25562) 2023-12-06 15:43:08 -05:00
Adam Warner
3fe68e73bf [MM-48860] / [GH-21863] Change regex to reduce false positive transforms on incoming webhook text (#21852)
* Change regex to reduce false positive transforms on incoming webhook text

Adds an additional condition to the 2nd capture group to ensure we don't match another `|` char

See https://github.com/mattermost/mattermost-server/issues/21800 for details

* Add test per suggested comment (switch Pi-hole URL out for Mattermost one 😉)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>

---------

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
2023-12-06 11:12:31 -08:00
Nick Misasi
a24ef3f07d [CLD-6778] Update IP filtering docs linkouts (#25643)
* Update IP filtering docs linkouts to be directly to the IP filtering page

* Update webapp/channels/src/components/admin_console/ip_filtering/add_edit_ip_filter_modal.tsx

* Update webapp/channels/src/components/admin_console/ip_filtering/enable_section.tsx
2023-12-06 10:13:10 -05:00
unified-ci-app[bot]
1ea8f2bc8f Update latest minor version to 9.4.0 (#25641)
Automatic Merge
2023-12-06 17:10:07 +02:00
Sapna Sivakumar
0a8197f858 [MM-55117] Replace usage of LocalizedIcon in 'view_user_group_modal_header.tsx' with i/span tags (#25486) 2023-12-06 13:54:40 +00:00
Rohit Chaudhari
109b074d92 [MM-55329] Convert ./plugins/test/post_type.test.jsx from Class Component to Function Component (#25487) 2023-12-06 07:36:04 +00:00
k srisri reddy
82b7eef563 [MM-53475] Migrate 'components/suggestion/emoticon_provider.test.jsx' to TypeScript (#25610) 2023-12-06 07:33:48 +00:00
Aditi Patel
c234cc1238 [MM-56012] Convert ./components/admin_console/team_channel_settings/channel/channel_settings.tsx from Class Component to Function Component (#25634) 2023-12-06 07:27:02 +00:00
Syed Ali Abbas Zaidi
7cca62f56f [MM-55328] Convert './components/toggle_modal_button/toggle_modal_button.test.tsx' from Class Component to Function Component (#25523) 2023-12-06 07:16:51 +00:00
Joram Wilander
e0a36cf60a mmctl: add listing oauth apps (#25497)
* mmctl: add listing oauth apps

* Fix tests

* Update mmctl docs

* Fix tests

* Update server/cmd/mmctl/commands/oauth.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* Update server/cmd/mmctl/commands/oauth.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* Add paging

* Update docs

---------

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2023-12-05 12:25:35 -05:00
Andrius Petrauskis
df6c8c5f5e Translated using Weblate (Lithuanian)
Currently translated at 92.7% (5365 of 5783 strings)

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

Translated using Weblate (Lithuanian)

Currently translated at 0.6% (16 of 2519 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/lt/
2023-12-05 16:10:07 +02:00
Matthew Williams
ee19af566d Translated using Weblate (English (Australia))
Currently translated at 100.0% (5783 of 5783 strings)

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

Translated using Weblate (English (Australia))

Currently translated at 99.9% (2518 of 2519 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/en_AU/
2023-12-05 16:10:07 +02:00
Akbar Abdrakhmanov
1c55a0c614 Translated using Weblate (Kazakh)
Currently translated at 6.0% (348 of 5792 strings)

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

Translated using Weblate (Kazakh)

Currently translated at 5.4% (314 of 5792 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/kk/
2023-12-05 16:10:07 +02:00
Hosted Weblate
a8d6b4d5ea Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/
2023-12-05 16:10:07 +02:00
Tom De Moor
90b4b41a7c Translated using Weblate (Dutch)
Currently translated at 99.9% (5783 of 5785 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/
2023-12-05 16:10:07 +02:00
MArtin Johnson
1cbd0e5c99 Translated using Weblate (Swedish)
Currently translated at 100.0% (5783 of 5783 strings)

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

Translated using Weblate (Swedish)

Currently translated at 100.0% (2519 of 2519 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/
2023-12-05 16:10:07 +02:00
Kap Dev
65079d3c64 Translated using Weblate (Russian)
Currently translated at 100.0% (5785 of 5785 strings)

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

Translated using Weblate (Russian)

Currently translated at 100.0% (2519 of 2519 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ru/
2023-12-05 16:10:07 +02:00
Konstantin
73daaa6388 Translated using Weblate (Russian)
Currently translated at 100.0% (5785 of 5785 strings)

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

Translated using Weblate (Russian)

Currently translated at 100.0% (2519 of 2519 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ru/
2023-12-05 16:10:07 +02:00
kaakaa
86e3d7e9ec Translated using Weblate (Japanese)
Currently translated at 100.0% (5785 of 5785 strings)

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

Translated using Weblate (Japanese)

Currently translated at 100.0% (2519 of 2519 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/ja/
2023-12-05 16:10:07 +02:00
ThrRip
c13e3ec67c Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (5783 of 5783 strings)

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

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2519 of 2519 strings)

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

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (5780 of 5780 strings)

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

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (2519 of 2519 strings)

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

Translated using Weblate (Chinese (Simplified))

Currently translated at 99.9% (5775 of 5780 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/zh_Hans/
2023-12-05 16:10:07 +02:00
Arthur
57b53adf67 Translated using Weblate (French)
Currently translated at 83.0% (4801 of 5780 strings)

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

Translated using Weblate (French)

Currently translated at 82.7% (4783 of 5780 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/fr/
2023-12-05 16:10:07 +02:00
master7
cb236c2a68 Translated using Weblate (Polish)
Currently translated at 100.0% (2518 of 2518 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (5785 of 5785 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (2518 of 2518 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (2518 of 2518 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (5780 of 5780 strings)

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

Translated using Weblate (Polish)

Currently translated at 100.0% (2518 of 2518 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/
2023-12-05 16:10:07 +02:00
Arun_dadhwal
1dae805ee1 [MM-56006] Convert ./components/discard_changes_modal.tsx from Class Component to Function Component (#25620)
* MM-56006: Converted to React FC

* Update webapp/channels/src/components/discard_changes_modal.tsx

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

* lint changes

---------

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2023-12-05 10:29:36 +01:00
Jamin
c008c95c93 refactor: convert app component to function component (#25547) 2023-12-05 10:28:41 +01:00
Devin Binnie
d62122b884 [MM-55153] Consolidate Desktop App API, use new contextBridge endpoints when available (#25438)
* Create Desktop API module, migrate message passing code

* Changes to use new API

* Use Desktop API to notify when mentions/unreads/expired changes

* Expose Desktop App module to plugins

* Fix lint

* PR feedback

* Fixed an issue where I forgot to check if the method exists first

* Slight API changes

* Fix package

* Convert all to class, add comments, small reworks for PR feedback
2023-12-04 14:09:46 -05:00
Doug Lauder
8bf9e4c481 Prep for MS Teams plugin API (#25565)
* - columns added to ShareChannelRemotes: lastpostcreateat, lastpostupdateat
- SyncMsg and SyncResponse moved to `model` package
- field added to RemoteCluster struct: PluginID

* sync new posts before updated posts to ensure post order in MS Teams

* add plugid to remoteclusters table and store

* don't sync history by default
2023-12-04 13:10:20 -05:00
Ben Schumacher
b2ec1ff8ae [MM-55595] Use annotated logger in search layer (#25468) server/public/v0.0.11 2023-12-04 18:34:57 +01:00
M-ZubairAhmed
5a4dba8809 [MM-55999] Bring the revoke sessions button to the admin header and improve the styling of the header (#25590) 2023-12-04 16:29:17 +00:00
Thomas Brq
a09c040a12 [GH-25595] Convert ./components/admin_console/group_settings/group_details/group_users_row.tsx from Class Component to Function Component (#25607)
* Convert Class component to Function component

* Fix style

* Applied the requested changes

* Updated the snapshot.
2023-12-04 16:55:22 +01:00
Daniel Espino García
fde9e179be Update typescript dependencies and some other updates (#25535)
* Update typescript dependencies and some other updates

* Fix lint

* Fix tests

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-04 15:29:42 +01:00
Jamin
ddefb1f9c5 [MM-54791]: Convert email icon component to function component (#25548)
* refactor: convert email icon to rfc

* chore: update snapshot
2023-12-04 10:25:35 +01:00
M-ZubairAhmed
c441f536b8 [MM-56017] Remove prereq-check.sh redantant script from Make (#25529) 2023-12-02 17:50:15 +05:30
Umar Abid
ff01fe2722 [MM-55180] Cut off text in the Position field in the profile modal (#25254) 2023-12-02 17:17:22 +05:30
Doug Lauder
ce7259ddc5 fix mung of usernames on collision in shared channels; tilde is not a valid character (#25575) 2023-12-01 17:33:13 +01:00
Doug Lauder
57a87d8ca5 Fix username collision for shared channels sync update (#25578)
* fix username collision for shared channels sync update

* ensure both return types are handled

* remove unused interface
2023-12-01 17:32:14 +01:00
Daniel Espino García
f6d41bcf5b Fix 55496 (#25585) 2023-12-01 10:50:57 +01:00
mattermod
a7f8347f01 Update latest version to 9.2.3 2023-11-30 18:36:28 +00:00
Devin Binnie
639181dcc1 [MM-55631] Remove extra call to Draft().Get() (#25563) 2023-11-30 10:45:32 -05:00
Daniel Espino García
2ff0fe343e [MM-45272] Fix MM-45272 (#24701)
* Fix MM-45272

* Properly handle permalinks

* Fix

* Fix tests

* Handle only not found case for team member

* Fix lint

* Use proper config value

* Separate permission in several statements

* Add tests

* Fix lint

* Revert changes on utils

* Address feedback and more fixes

* Address feedback

* Fix test

* Fix test and related bug

* Fix and reorder test

* Address feedback

* Address feedback

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-11-30 11:43:51 +01:00
Ben Schumacher
c395ec6245 [MM-55990] Logger improvements for tests (#25467) 2023-11-30 10:47:04 +01:00
Asaad Mahmood
bd71288731 Updating custom emoji hover state (#25568) 2023-11-30 13:32:37 +05:00
Thomas Brq
6cf7115e1f [GH-25492] Add the request context to all public methods in server/channels/app/admin.go (#25498) 2023-11-29 17:07:54 +01:00
Sudheer Tripathi
6e3f0ab928 [MM-55606]: add the request context to all public methods in server/channels/app/brand.go (#25542)
Co-authored-by: Sudheer Tripathi <sudheer@clearglass.com>
2023-11-29 17:07:16 +01:00
Ben Schumacher
18c6d37551 Remove unused MFA interface (#25525) 2023-11-29 07:56:18 -08:00
Harshil Sharma
b8a78ffce8 Updated styling to make modal look acceptable on really narrow screens (#25557)
* Updated styling to make modal look acceptable on really narrow screens

* Kneeled down to the wishes of thy linter
2023-11-29 20:07:28 +05:30