Commit Graph

17978 Commits

Author SHA1 Message Date
Antonis Stamatiou
0fbe3b8e9b
feat: Remove gitlab-ci yml file (#25782) 2023-12-20 16:02:38 +02:00
Sven Hüster
2c6b5856a1
[MM-54714] Change dnd status and remind to next morning 9 (#25472) 2023-12-20 13:45:55 +00:00
Ben Schumacher
645d3a3b35
Add pagination example to Client4 (#25544)
* Add pagination example to Client4

* Break as soon less the expected items are returned

* Print users as directly after fetching them
2023-12-20 06:50:58 +01:00
Matthew Straughn
ebdc964161
Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743)
* updated go mod and sum files

* fixed var-naming errors in channels/app and channels/api4 dir

* Revert "updated go mod and sum files"

This reverts commit 088dd00a84.

* renamed a cost .
2023-12-20 06:46:54 +01:00
Syed Ali Abbas Zaidi
293caec0c7
[MM-56293] Convert ./components/admin_console/filter/filter_list.tsx from Class Component to Function Component (#25765) 2023-12-19 18:06:32 -05:00
Doug Lauder
d56dc9d0ce
Add Options field to RemoteClusters (#25771)
* add Option flag to RemoteClusters

* add Options column to RemoteClusters table
2023-12-19 13:01:35 -05:00
Antonis Stamatiou
f118b4f0ed
fix: Fix condition for choosing runner (#25779)
* fix: Fix condition for choosing runner

* fix: Automate the GO_VERSION choice on server tests
2023-12-19 17:21:13 +02:00
yasserfaraazkhan
63e4fccd3a
chore: add test case ID to wrangler e2e tests (#25777) 2023-12-19 16:22:04 +05:30
Asaad Mahmood
726e157f5e
Updating sidebar position in settings modal (#25738)
* Updating sidebar position in settings modal

* Updating sidebar

* Updating css

* Updating commit

* Fixing lint
2023-12-19 14:42:38 +05:00
Ben Schumacher
799ec680bd
[MM-29240] Improve buffer handling of UploadEmojiImage (#25536) 2023-12-19 10:00:01 +01:00
Christopher Poile
8a0cef910a
MM-56273 - Update prepackaged calls to v0.22.2 (#25741) 2023-12-18 16:58:10 -05:00
M-ZubairAhmed
7b49e15824
[MM-55993] Create a composable independent table to be used in Admin reporting (#25611) 2023-12-18 18:52:58 +00:00
ShlokJswl
c6b600b186
Removed blank space in sidebar display in compact view mode (#23139) 2023-12-18 16:23:21 +01:00
Ben Schumacher
1fdddfe678
[MM-53269] Add configuration setting for integration requests timeout (#23805)
Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
2023-12-18 16:07:00 +01:00
Hosted Weblate
7874daa6f7 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/
2023-12-18 15:22:05 +02:00
master7
58aa759445 Translated using Weblate (Polish)
Currently translated at 100.0% (2527 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/
2023-12-18 15:22:05 +02:00
JaeMin Kim
57709029ae Translated using Weblate (Korean)
Currently translated at 59.7% (3466 of 5799 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/ko/
2023-12-18 15:22:05 +02:00
Tom De Moor
6443a1d42a Translated using Weblate (Dutch)
Currently translated at 100.0% (2527 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/
2023-12-18 15:22:05 +02:00
MArtin Johnson
ad98cd86c5 Translated using Weblate (Swedish)
Currently translated at 100.0% (5799 of 5799 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/sv/
2023-12-18 15:22:05 +02:00
Tom De Moor
5dc972a6ec Translated using Weblate (Dutch)
Currently translated at 100.0% (5799 of 5799 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/
2023-12-18 15:22:05 +02:00
MArtin Johnson
e5de17674e Translated using Weblate (Swedish)
Currently translated at 100.0% (2527 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/sv/
2023-12-18 15:22:05 +02:00
Tom De Moor
cf3a738220 Translated using Weblate (Dutch)
Currently translated at 99.8% (2522 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/
2023-12-18 15:22:05 +02:00
Pieter Teekens
bf808d1c8a Translated using Weblate (Dutch)
Currently translated at 99.9% (5796 of 5799 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/
2023-12-18 15:22:05 +02:00
Tom De Moor
31b68f35f7 Translated using Weblate (Dutch)
Currently translated at 99.9% (5796 of 5799 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/
2023-12-18 15:22:05 +02:00
Gabriel Casaro
be8b552c3a Translated using Weblate (Portuguese (Brazil))
Currently translated at 85.1% (2153 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pt_BR/
2023-12-18 15:22:05 +02:00
Tom De Moor
30ad3c714b Translated using Weblate (Dutch)
Currently translated at 99.7% (2520 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/nl/
2023-12-18 15:22:05 +02:00
Tom De Moor
81626eabc1 Translated using Weblate (Dutch)
Currently translated at 99.6% (5781 of 5799 strings)

Translation: Mattermost/webapp
Translate-URL: https://translate.mattermost.com/projects/mattermost/webapp/nl/
2023-12-18 15:22:05 +02:00
master7
be084a9a59 Translated using Weblate (Polish)
Currently translated at 100.0% (2527 of 2527 strings)

Translation: Mattermost/server
Translate-URL: https://translate.mattermost.com/projects/mattermost/server/pl/
2023-12-18 15:22:05 +02:00
Paul Stern
f69620f22c
[MM-55299] Migrate server/channels/app/notification.go to make use of GenericStoreResult (#25746)
* [MM-55299] Make use of GenericStoreResult

Make use of GenericStoreResult in server/channels/app/notification.go

Introduce new result variables to workaround the IncompatibleAssign
error.

* [MM-55299] Make use of GenericStoreResult

Use GenericStoreResult for profiles, cmn properties, groups map.
Introduce new result variables for them to workaround IncompatibleAssign
error.

* Resolve merge conflict. Accept incoming master's change

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-18 13:13:56 +01:00
Agniva De Sarker
983062189e
Run contributor PR tests on free tier (#25745)
```release-note
NONE
```
2023-12-18 16:47:39 +05:30
Asaad Mahmood
9ae530bd58
MM-55505 - Updating thread avatars hover state (#25488)
* MM-55505 - Updating thread avatars hover state

* Updating elevation

* Updating tests
2023-12-18 15:10:55 +05:00
Daniel Espino García
5933a3ebc8
MM-33823 Fix suggestion box deleting the message (#25639)
* Fix suggestion box deleting the message

* Remove unneeded checks

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-18 10:47:41 +01:00
Jamin
d69b4075e5
[MM-55330]: Convert ./components/widgets/popover/index.tsx from Class Component to Function Component (#25541)
* refactor: update component from class to functional component

* refactor: update failing snapshots

* refactor: use one props per line for improved readability

* refactor: fix popove type errors

* refactor: fix component and update failing tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-18 10:46:20 +01:00
Paul Stern
000ee45b5d
[MM-55303] channels/app/webhook: Make use of GenericStoreResult (#25722)
Make use of Generic store result in channels/app/webhook.go.
Introduce new variable resultU (result user) to workaround incompatible
assign error (since generics have been introduced).
2023-12-18 07:08:38 +01:00
Zubair Imtiaz
cd8796bf0b
[MM-56011] Migrated radio_setting.tsx from Class to Functional Component #25603 (#25668)
* Added cancel button in the delete category modal

* fix lint error

* fix eslint issues

* migrated from class to functional component

* updateCode

* used react.memo

* updateSnapshots

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-18 05:56:57 +05:30
Devin Binnie
5c061a6f75
[MM-56206] Allow for proper paging and sorting (#25726)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-18 05:56:06 +05:30
Tom De Moor
485ae6ae4e
fixing typo (#25714)
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
2023-12-15 12:37:02 -05:00
Harrison Healey
00e88ebaa5
MM-56087 Change Move Thread hotkey to force close menu (#25685) 2023-12-15 11:02:30 -05:00
Antonis Stamatiou
c5f5800814
feat: Migrate docker preview repo stuff in monorepo (#25698)
* feat: Migrate docker preview repo stuff in monorepo

* docs: Update docs [skip ci]

* config: Update configuration to minimum [skip ci]
2023-12-15 12:28:02 +02:00
mattermod
bb9c695c1b Update latest version to 9.3.0 2023-12-14 17:01:02 +00:00
Christopher Speller
433a644db7
Export permalink preview component for plugins. (#25609)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-14 08:43:27 -08:00
Harshil Sharma
97a23d791e
New report router and user reporting refactoring (#25713)
* Added materialized view migration

* Renamed mat view

* Added channel membership mat view and indexes

* Added channel membership mat view and indexes

* Added new index

* WIP

* Simplifying user reporting code

* Created app and API layer for cahnnel reporting, reporting refactoring in general

* New router

* Remobved channel reporting meanwhile

* Upodated autogenerated stuff

* Lint fix

* Fixed typo

* api vet

* i18n fix

* Fixed API vetting and removed channel reporting constants

* yaml

* removed app pagination tests
2023-12-14 10:49:19 -05:00
Pulkit Garg
32880efa25
[MM-55110] Replace usage of LocalizedIcon in 'custom_theme_chooser.tsx' with i/span tags (#25537) 2023-12-14 11:51:31 +00:00
Daniel Espino García
acd413ef69
Add plugin user settings (#25517)
* Add plugin user settings

* Feedback and UI improvements

* Extract the plugin configuration instead of just validating it

* Fix lint

* Fix lint

* Divide between settings and sections

* i18n-extract

* Adjust icon location

* Add tests

* Improve documentation

* Force plugin id

* Fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-14 11:30:31 +01:00
Ben Schumacher
563f51f3db
Allow developers to set a custom go version via env variables (#25650) 2023-12-14 09:58:11 +01:00
Agniva De Sarker
9ae451a121
MM-55476: Optimize PostStore.Get (#25448)
While loading a thread, we were unnecessarily re-counting the replies
for all posts in a thread even if they would be the same number.

While this is needed in other queries where the posts can be from different
threads or they can be random ids, but to load a single post thread, there
is no need to recompute it again and again.

Therefore, we use a CTE to precompute the replycount and then just plug in
the value in the subsequent query. This gives an improvement in the query
plan as well:

OLD:
```
explain (analyze, buffers) SELECT p.id, p.rootid, p.createat, (SELECT count(*) FROM Posts WHERE Posts.RootId = (CASE WHEN p.RootId = '' THEN p.Id ELSE p.RootId END) AND Posts.DeleteAt = 0) as ReplyC
ount FROM Posts p WHERE (p.Id = 'h3cer597jb8abbcbitpghpomua' OR p.RootId = 'h3cer597jb8abbcbitpghpomua') AND p.DeleteAt = 0;
                                                                            QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Bitmap Heap Scan on posts p  (cost=45.39..1042149.61 rows=2748 width=49) (actual time=3.156..7906.215 rows=5353 loops=1)
   Recheck Cond: (((id)::text = 'h3cer597jb8abbcbitpghpomua'::text) OR (((rootid)::text = 'h3cer597jb8abbcbitpghpomua'::text) AND (deleteat = 0)))
   Filter: (deleteat = 0)
   Heap Blocks: exact=5308
   Buffers: shared hit=610244
   ->  BitmapOr  (cost=45.39..45.39 rows=2748 width=0) (actual time=0.918..0.920 rows=0 loops=1)
         Buffers: shared hit=47
         ->  Bitmap Index Scan on posts_pkey  (cost=0.00..1.68 rows=1 width=0) (actual time=0.028..0.028 rows=1 loops=1)
               Index Cond: ((id)::text = 'h3cer597jb8abbcbitpghpomua'::text)
               Buffers: shared hit=4
         ->  Bitmap Index Scan on idx_posts_root_id_delete_at  (cost=0.00..42.34 rows=2747 width=0) (actual time=0.889..0.890 rows=5352 loops=1)
               Index Cond: (((rootid)::text = 'h3cer597jb8abbcbitpghpomua'::text) AND (deleteat = 0))
               Buffers: shared hit=43
   SubPlan 1
     ->  Aggregate  (cost=378.10..378.11 rows=1 width=8) (actual time=1.474..1.474 rows=1 loops=5353)
           Buffers: shared hit=604889
           ->  Index Only Scan using idx_posts_root_id_delete_at on posts  (cost=0.57..343.85 rows=13699 width=0) (actual time=0.016..1.039 rows=5352 loops=5353)
                 Index Cond: ((rootid = (CASE WHEN ((p.rootid)::text = ''::text) THEN p.id ELSE p.rootid END)::text) AND (deleteat = 0))
                 Heap Fetches: 0
                 Buffers: shared hit=604889
 Planning Time: 0.194 ms
 Execution Time: 7906.846 ms
```

NEW:
```
explain analyze with replycount as (select count(*) as num from posts where rootid='h3cer597jb8abbcbitpghpomua' and deleteat=0)
select id, rootid, createat, replycount.num from posts, replycount where id='h3cer597jb8abbcbitpghpomua' or rootid='h3cer597jb8abbcbitpghpomua' and deleteat=0;
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Nested Loop  (cost=123.16..3215.48 rows=2748 width=49) (actual time=2.960..9.775 rows=5353 loops=1)
   ->  Aggregate  (cost=77.78..77.79 rows=1 width=8) (actual time=1.455..1.456 rows=1 loops=1)
         ->  Index Only Scan using idx_posts_root_id_delete_at on posts posts_1  (cost=0.57..70.91 rows=2747 width=0) (actual time=0.056..1.145 rows=5352 loops=1)
               Index Cond: ((rootid = 'h3cer597jb8abbcbitpghpomua'::text) AND (deleteat = 0))
               Heap Fetches: 0
   ->  Bitmap Heap Scan on posts  (cost=45.39..3110.20 rows=2748 width=41) (actual time=1.501..7.747 rows=5353 loops=1)
         Recheck Cond: (((id)::text = 'h3cer597jb8abbcbitpghpomua'::text) OR (((rootid)::text = 'h3cer597jb8abbcbitpghpomua'::text) AND (deleteat = 0)))
         Heap Blocks: exact=5308
         ->  BitmapOr  (cost=45.39..45.39 rows=2748 width=0) (actual time=0.797..0.798 rows=0 loops=1)
               ->  Bitmap Index Scan on posts_pkey  (cost=0.00..1.68 rows=1 width=0) (actual time=0.014..0.014 rows=1 loops=1)
                     Index Cond: ((id)::text = 'h3cer597jb8abbcbitpghpomua'::text)
               ->  Bitmap Index Scan on idx_posts_root_id_delete_at  (cost=0.00..42.34 rows=2747 width=0) (actual time=0.782..0.782 rows=5352 loops=1)
                     Index Cond: (((rootid)::text = 'h3cer597jb8abbcbitpghpomua'::text) AND (deleteat = 0))
 Planning Time: 0.220 ms
 Execution Time: 10.052 ms
(15 rows)
```

Observe the `loops=5353` in the first query, and `loops=1` in the next.

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

```release-note
Optimize createPost performance
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-12-14 14:09:29 +05:30
Syed Ali Abbas Zaidi
e644f4e4bb
[MM-56009] Convert ./components/post_view/embedded_bindings/embedded_bindings.tsx from Class Component to Function Component (#25717)
* [MM-56009] Convert `./components/post_view/embedded_bindings/embedded_bindings.tsx` from Class Component to Function Component

* refactor: use Map instead of forEach
2023-12-14 09:36:28 +01:00
Daniel Espino García
917a032baf
Fix MM53181 (#25684)
* Fix MM53181

* Add tests
2023-12-14 09:32:41 +01:00
Siddhanth M
9d6bfc77ae
[MM-55100] Replace usage of LocalizedIcon in 'create_user_groups_modal/create_user_groups_modal.tsx' with i/span tags (#25617) 2023-12-13 18:15:10 +00:00
Aditi Patel
440039ba98
Migrate ./components/widgets/icons/fa_warning_icon.tsx from Class Component to Function Component (#25644)
* chore: migrate fa_warning_icon to functional component

* test: updated snapshots

* removed injectIntl funtion call

* test: updated snapshots
2023-12-13 16:16:02 +01:00