Граф коммитов

16159 Коммитов

Автор SHA1 Сообщение Дата
Agniva De Sarker
56b18ca7bf MM-45956: Optimize FileInfo stats query (#22603)
* MM-45956: Optimize FileInfo stats query

We Denormalize Post.ChannelId on FileInfo.ChannelId

```release-note
The file info stats query is now optimized by denormalizing the channelID column into the table itself. This will speed up the query to get the file count for a channel on clicking the RHS.

Migration times:
On a MySQL 8.0.31 DB with
1405 rows in FileInfo and 11M posts, it took around 0.3s

On a Postgres 12.14 DB with
1731 rows in FileInfo and 11M posts, it took around 0.27s
```

https://mattermost.atlassian.net/browse/MM-45956
2023-03-23 22:14:04 +05:30
Harrison Healey
1edbde8aa3 Run type check for all web app packages in CI (#22578)
* Fix incorrect usage of types pacakge

* Make platform packages properly expose their type definitions

* Have Boards, Channels, and Playbooks get types from platform packages properly

* Run type check for all web app packages in CI

* Fix incorrect job name
2023-03-23 10:10:52 -04:00
Harrison Healey
2eb5dac9b7 Run build for all web app packages as part of Web App CI (#22577) 2023-03-23 10:10:40 -04:00
Harrison Healey
f294ef9843 Run linters for all web app packages as part of Web App CI linting (#22576) 2023-03-23 10:10:28 -04:00
Agniva De Sarker
a31159257d Ran make modules-tidy (#22600)
* Ran make modules-tidy

* Removed go.tools.sum which is not needed anymore

* Upgrade golang.org/x/net
2023-03-23 16:59:50 +05:30
Saturnino Abril
82c9d647b8 playwright: restructure page and components model (#22602) 2023-03-23 19:01:26 +08:00
Agniva De Sarker
19c7c6fa7a MM-51486: Implementing UTS 46 to check for preview blocklist (#22601)
There is a standard IDNA2008 which defines how unicode characters
in domain names can be compared using UTS (Unicode Technical Standard) 46.

We use that to convert any links in messages to ASCII and
then compare with the domain list in config.

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

```release-note
NONE
```
2023-03-23 13:03:59 +05:30
Doug Lauder
c943ed6859 Mono repo -> Master (#22553)
Combines the following repositories into one:

https://github.com/mattermost/mattermost-server
https://github.com/mattermost/mattermost-webapp
https://github.com/mattermost/focalboard
https://github.com/mattermost/mattermost-plugin-playbooks
2023-03-22 17:22:27 -04:00
mattermod
b61c096497 Update latest version to 7.9.1 2023-03-21 11:45:10 +00:00
MArtin Johnson
febcac0308 Translated using Weblate (Swedish)
Currently translated at 100.0% (2500 of 2500 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2023-03-20 15:42:23 +02:00
master7
07657b6771 Translated using Weblate (Polish)
Currently translated at 100.0% (2500 of 2500 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2023-03-20 15:42:23 +02:00
Kaya Zeren
1fef79e360 Translated using Weblate (Turkish)
Currently translated at 100.0% (2500 of 2500 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2023-03-20 15:42:23 +02:00
Konstantin
8e44c112c7 Translated using Weblate (Russian)
Currently translated at 100.0% (2500 of 2500 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ru/
2023-03-20 15:42:23 +02:00
Tom De Moor
97b5b9a648 Translated using Weblate (Dutch)
Currently translated at 100.0% (2500 of 2500 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/nl/
2023-03-20 15:42:23 +02:00
jprusch
e1175dd075 Translated using Weblate (German)
Currently translated at 100.0% (2500 of 2500 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2023-03-20 15:42:23 +02:00
Hosted Weblate
153a3f2544 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
2023-03-20 15:42:23 +02:00
Colton Shaw
63e7c29343 Additional support packet values (#22441)
* Added system console metrics and renamed database fields

* Added job data

* Added migration data
2023-03-17 16:20:23 +01:00
Christopher Speller
7804debb7f MM-51321 Refactor audit log application. (#22481)
* Refactor audit log application.

* Fix incorrect API Usage for Auditing

* Fixups.

* Rename Object audit to Auditable. Some small fixes.

---------

Co-authored-by: Daniel Schalla <daniel@schalla.me>
2023-03-16 09:50:00 -07:00
Mattermod
9a38a52392 Update minor version to 7.10.0 (#22523)
Automatic Merge
2023-03-16 15:25:16 +02:00
mattermod
ce90cb494b Update latest version to 7.9.0 2023-03-16 10:34:11 +00:00
Ben Cooke
eb0bfd6f6d [MM-50219] OAuth 2.0 (#22310)
* tools updates

* Revert "tools updates"

This reverts commit 6293297b55803c5a263e200ebd80192899666ae9.

* oauth fix

* rename migration

* migrations-extract

* translations

* unit test

* lint

---------

Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.ht.home>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MBP.fritz.box>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.fritz.box>
2023-03-15 09:14:37 -04:00
Allan Guwatudde
a14958096d [MM-51090] - Notify Admin post fails plugin hook (#22508) 2023-03-15 15:18:33 +03:00
Ibrahim Serdar Acikgoz
9252fff4d6 [MM-49993] Return error if there is no telemetry ID (#22438)
* return error if there is no telemetry ID

* fix tests and apply review comments
2023-03-15 08:56:28 +03:00
Maria A Nunez
b6d13806a7 Updated Local Mode settings for cloud (#22480)
* Added cloud restristable for

* Added cloud_restrictable to Enable Local Mode
2023-03-13 13:55:05 -04:00
Agniva De Sarker
2f1d964735 Optimize precomputing of websocket event (#22465)
fmt.Sprintf was badly optimized and in cases of heavy traffic,
it was in the hot path and caused a lot of allocations.

We sacrifice readability for performance here.

```
    10:46:40-~/mattermost/mattermost-server/model] benchstat base.txt new.txt
    goos: linux
    goarch: amd64
    pkg: github.com/mattermost/mattermost-server/v6/model
    cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
                 │  base.txt   │               new.txt               │
                 │   sec/op    │   sec/op     vs base                │
    EncodeJSON-8   2.061µ ± 1%   1.588µ ± 2%  -22.93% (p=0.000 n=10)

                 │  base.txt  │              new.txt               │
                 │    B/op    │    B/op     vs base                │
    EncodeJSON-8   545.0 ± 0%   472.0 ± 0%  -13.39% (p=0.000 n=10)

                 │  base.txt  │              new.txt               │
                 │ allocs/op  │ allocs/op   vs base                │
    EncodeJSON-8   6.000 ± 0%   3.000 ± 0%  -50.00% (p=0.000 n=10)
```

```release-note
Writes to websocket now take 13% less memory
and also 22% faster per message.
```
2023-03-13 22:32:12 +05:30
Doug Lauder
10ae28e320 Fix all occurances of checking for RemoteClusterServiceLicense (#22453) 2023-03-13 12:20:27 -04:00
Matthew Williams
78d2768289 Translated using Weblate (English (Australia))
Currently translated at 99.9% (2498 of 2499 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2023-03-13 14:02:00 +02:00
Hosted Weblate
ae9501879d Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/
2023-03-13 14:02:00 +02:00
master7
fbc7509251 Translated using Weblate (Polish)
Currently translated at 100.0% (2502 of 2502 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2023-03-13 14:02:00 +02:00
jprusch
05dea560c5 Translated using Weblate (German)
Currently translated at 100.0% (2502 of 2502 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2023-03-13 14:02:00 +02:00
MArtin Johnson
f18af46875 Translated using Weblate (Swedish)
Currently translated at 100.0% (2499 of 2499 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2023-03-13 14:02:00 +02:00
Tom De Moor
dcb1841993 Deleted translation using Weblate (Arabic) 2023-03-13 14:02:00 +02:00
Weblate
9eed79725d Added translation using Weblate (Arabic) 2023-03-13 14:02:00 +02:00
Jesse Hallam
ea3ff49b35 Revert "Adding the debug bar logic in the server (#22410)" (#22478)
This reverts commit 280bc7f97e.
2023-03-10 14:30:17 -04:00
Michael Kochell
6a9c4ad56b [MM-50748] Fix "Missing plugin executable should fail with explicit error" (#22398)
* short-circuit plugin activation steps if executable is not found

* improve error message by removing redundant ref to plugin and mor consise language about server environment
2023-03-10 10:05:52 -05:00
Scott Bishel
0a001b9c03 update prepackage boards to 7.9.1 (#22462)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-09 13:49:42 -07:00
Christopher Poile
53f5f2f267 MM-51021 - Remove PostEditTimeLimit check for plugins and a few other code paths (#22422)
* lift PostEditTimeLimit check to API code; tests

* lift PatchPost time limit check into API layer; test

* fix test

* fix i18n; fix test

* fix test
2023-03-09 13:37:23 -05:00
Jesús Espino
280bc7f97e Adding the debug bar logic in the server (#22410)
* Adding debugbar layer

* Adding sql debugbar info

* Make duration consistent across the debugbar lines

* Adding the debugbar/systeminfo endpoint

* Adding logs to the debugbar

* Improve the debugbar logger fields info

* Improving the debug bar architecture

* Allow to enable/disable debugbar in the backend

* Exposing the Debug Bar enable in the client config

* Adding more system information to the debugbar

* Adding params info to the store layer

* Organizing a bit the debugbar code in the server and adding some extra data to the system info api

* Adding debugbar email traces

* Changing the socket event name to 'debugbar'

* Adding explain support for the debugbar

* Adding missed file

* Omitting data related to the debugbar itself

* Removing unneeded functions

* Avoid arbitrary execution in explain api

* Moving debugbar inside the platform directory

* Replacing debugbar logger with a new logger Target

* Removed uneeded changes

* Fixing some linter errors

* Adding a debugbar log level to use it later for log events strictly related to the debug bar

* Fixing linter errors

* Fixing tests

* Adding i18n strings
2023-03-09 17:55:36 +01:00
Christopher Poile
ebb160b081 MM-50566 - Prepackage Calls v0.14.0 (#22464) 2023-03-09 09:19:39 -05:00
Ibrahim Serdar Acikgoz
5025fd7561 remove unsused/unnecessary gitlab ci steps (#22458) 2023-03-08 18:43:31 +03:00
Nathaniel Allred
de63ddfd9b configure public key and related license variables at build time (#22202)
Instead of being completely hardcoded, public key is now set at build time according to build tag (test key if `testlicensekey` tag is passed to go build, production key otherwise). A `isProdLicensePublicKey` is also available for determining if the prod license key is being used. It is needed for choosing whether to point to production or test environment CWS.

The test license key and CWS url values in this value are set to production values in this PR, but will be updated to the test values once we are ready to do the necessary updates to test environment spinwicks.
2023-03-08 09:14:14 -06:00
Agniva De Sarker
346fab1620 MM-50393: Revamp email batching performance (#22358)
This ticket does a number of improvements to the email
batching code in general.

- Fix unbounded goroutines: We now send mails using a single
goroutine only. Since anyways the processing is asynchronous,
performance should not matter.
- Move the exit condition earlier: We have moved up the check
for the per-user email interval preference. This prevents
unnecessary DB calls from happening.
- Break from the loop properly: The objective was to not
send notifications if a user has viewed any channel since
a notification was queued. But there were 2 nested for loops
and we were breaking from just one and not the other. That is
correctly fixed now to prevent unnecessary DB calls.
- Gracefully shutdown the job: The batching task wasn't
properly shut down and could have notifications in-flight
which would have not got sent. We fix that now by cancelling
the task and waiting for it to finish.

https://mattermost.atlassian.net/browse/MM-50393
2023-03-08 08:42:21 +05:30
Agniva De Sarker
24427b81be MM-48627: Fix flaky testGetUptoNSizeFileTime (#22348)
* MM-48627: Fix flaky testGetUptoNSizeFileTime

There was an issue with data clean up before
and after the tests.

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

```release-note
NONE
```

* Lint fix and improvements

```release-note
NONE
```
2023-03-07 19:22:29 +05:30
Tom De Moor
791bf3e3ba Deleted translation using Weblate (Arabic) 2023-03-07 14:13:34 +02:00
Weblate
028d724e2f Added translation using Weblate (Arabic) 2023-03-07 14:13:34 +02:00
Tom De Moor
e6b1bfc5c6 Deleted translation using Weblate (Arabic) 2023-03-07 14:13:34 +02:00
Weblate
46ee245de6 Added translation using Weblate (Arabic) 2023-03-07 14:13:34 +02:00
master7
03e90aaaf7 Translated using Weblate (Polish)
Currently translated at 100.0% (2499 of 2499 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pl/
2023-03-07 14:13:34 +02:00
jprusch
9ed4d53c7b Translated using Weblate (German)
Currently translated at 100.0% (2499 of 2499 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2023-03-07 14:13:34 +02:00
Felipe Nogueira
543240a790 Translated using Weblate (Portuguese (Brazil))
Currently translated at 85.9% (2148 of 2498 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/pt_BR/
2023-03-07 14:13:34 +02:00