Commit Graph

16168 Commits

Author SHA1 Message Date
Ibrahim Serdar Acikgoz
5072cd7bdf Trigger master branch for builds (#22616) 2023-03-27 10:01:02 +03:00
Agniva De Sarker
d8d3c6e7a6 MM-51699: Skip flaky test (#22635)
https://mattermost.atlassian.net/browse/MM-51699

```release-note
NONE
```
2023-03-27 10:28:16 +05:30
Nathaniel Allred
067784dc4a Fix EmailSettings.FeedbackEmail client validation (#22611)
* fix EmailSettings.FeedbackEmail client validation
2023-03-24 14:51:28 -05:00
Nathaniel Allred
9105077ee1 Mm 50735 (#22626)
* add shipping address to self hosted signup model
* purchase modals allow scroll
* fix z-index issues with payment modal dropdowns
2023-03-24 14:46:22 -05:00
Ibrahim Serdar Acikgoz
379dbb1ca8 Add setup-go action (#22618) 2023-03-24 18:07:23 +03:00
Ibrahim Serdar Acikgoz
5c857e9df3 add concurrency limitation to gh actions (#22638) 2023-03-24 17:04:15 +03:00
Agniva De Sarker
176a58617d MM-51504: Control compliance export goroutine (#22604)
Spawn a goroutine from the server layer to have better
control for compliance tests.

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

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-24 13:56:19 +05:30
byigorv
017c51c246 fix mem leak in hubConnectionIndex (#22560) 2023-03-24 11:22:37 +05:30
Harrison Healey
9b5afb1b5f Run tests for all web app packages in CI (#22579)
* Run tests for all web app packages in CI

* Test specific packages instead of all of them

* Revert back to using test-ci scripts and rely on Jest to count the number of CPU cores

* Revert more changes made to the web app CI tests

* Fix path to client package tests
2023-03-23 14:23:56 -04:00
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 6293297b55.

* 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