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

26 Коммитов

Автор SHA1 Сообщение Дата
Agniva De Sarker
a9bac806f3 MM-39215: Add DBStatsCollector to metrics (#21957)
https://mattermost.atlassian.net/browse/MM-39215

```release-note
We now have Grafana metrics for DB connection metrics.
They are:
max_open_connections
open_connections
in_use_connections
idle_connections
wait_count_total
wait_duration_seconds_total
max_idle_closed_total
max_idle_time_closed_total
max_lifetime_closed_total
```
2023-01-11 08:39:54 +05:30
Agniva De Sarker
6ad1861535 MM-48345: Fix Critical level logging (#21952)
Critical wasn't added in the StdLevels slice
and due to that mlog.Critical wasn't printing anything.
This was a complete blindspot that was missed.

We have removed all references to mlog.Critical in the codebase
and pointed Critical to be Fatal in the library.

In v8, we will remove Critical altogether.

```release-note
Servers with an encrypted key will throw an error
during startup now.
```
2023-01-03 20:14:16 +05:30
Ibrahim Serdar Acikgoz
fc31b1713e [MM-48947] app/platform: do not restart metrics on every config save (#21831) 2022-12-09 08:28:22 +03:00
Ibrahim Serdar Acikgoz
d8e2859b0b Minimize app dependency on platform service (#21548) 2022-12-07 20:31:03 +03:00
Ibrahim Serdar Acikgoz
43e26ccda2 MPA: move product hooks out of plugins environment (#21772)
* product: add new hooks manager for porducts

* move product hooks out of plugins environment

* add hooks for plugin
2022-12-05 20:16:35 +01:00
Kyriakos Z
a240cd53eb MM-48614: saves priority for drafts (#21752)
* MM-48614: saves priority for drafts

Adds a new column in the drafts table, "priority".
This way we can save post's priority in the draft.

Fixes OmitConnectionId, which when you published a ws event for a user
was getting bypassed.

Fixes Get for drafts returns deleted ones as well, which is needed for
upsert.

* Adds test case for the OmitConnectionId

* Addresses review comments, removes DeleteAt

* Vets

* Adds missing translation

* Re-instates DeleteAt column

* Adds separate case to get draft including deleted

* Fixes Update Draft

* Empty
2022-11-29 23:36:47 +02:00
Nick Misasi
a541cda9d0 Invalidate cloud caches when a new license is loaded (#21579)
Automatic Merge
2022-11-02 22:40:26 +02:00
Ibrahim Serdar Acikgoz
c6b6b3313e app/platform: fix an issue about accessing to a closed db on shutdown (#21549) 2022-10-31 15:58:35 +03:00
Ibrahim Serdar Acikgoz
0fc1655cfc platform/service: fix a flaky test (#21497) 2022-10-26 08:42:10 +05:30
Harrison Healey
499f731a2b MM-46275/MM-46979 Production MPA for web app (#21401)
* MM-46275 Unify various targets for building web app

* MM-46275/MM-46979 Add logic to package boards product static files in CI

* Add error meessage when Boards files can't be found during packaging

* Remove a couple unneeded lines from release.mk

* Decrease size of machine used for setup-focalboard-product

* Revert "Add error meessage when Boards files can't be found during packaging"

This reverts commit f4f46ade0ac4c1ec5525d9b2eae959e13b9aec42.

* Revert "Revert "Add error meessage when Boards files can't be found during packaging""

This reverts commit a0e6420b19c5af0b5ff4706b6abaf8e56f8b3495.

* Fix unrelated email templates

* Skip flaky test
2022-10-25 17:02:14 -04:00
Ibrahim Serdar Acikgoz
2ce3e81490 move file backend to the platform service (#21365) 2022-10-21 12:24:36 +03:00
Julien Tant
b30e511ffe Deprecate ioutil (#21457) 2022-10-20 12:06:34 -07:00
Ibrahim Serdar Acikgoz
71d1b7df53 [MM-47468] Fix store metrics initialization (#21374)
* initialize metrics before store

* add tests

* reflect review comments
2022-10-12 16:31:16 +03:00
Ibrahim Serdar Acikgoz
e99eba33ff app/platform: move failover config initialization to platform (#21281) 2022-10-07 13:53:13 +03:00
Ibrahim Serdar Acikgoz
10655a2eb3 fix a data race in the platform service (#21242) 2022-10-06 14:14:03 +03:00
Ibrahim Serdar Acikgoz
5e69c6b02f Move cluster, webhub and store out of Server (#20899) 2022-10-06 11:04:21 +03:00
Doug Lauder
1d7822d154 Revert "Allow inline JSON in config.json for advanced logging config (#20954)" (#20983)
This reverts commit 5211d5de15.
2022-09-09 12:56:05 -04:00
Doug Lauder
5211d5de15 Allow inline JSON in config.json for advanced logging config (#20954)
* Allow embedded JSON in config.json for AdvancedLoggingConfig

* fix escaped JSON case

* Add unit test cases for escaped JSON

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-09-09 07:51:17 -04:00
Ibrahim Serdar Acikgoz
efbcb0a35a move logger under platform (#20831)
* move logger under platform
2022-08-24 10:10:56 +03:00
Tim Scheuermann
a28a967eba MM-45991 Wrap errors (#20785) 2022-08-18 11:01:37 +02:00
Ibrahim Serdar Acikgoz
8e0d46e0c6 re-assign cluster interface after initializing enterprise interfaces (#20839)
* re-assign cluster interface after initializing enterprise interfaces

* add a unit test to check if cluster is triggered

* remove env overrides

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-17 23:07:04 +03:00
Ibrahim Serdar Acikgoz
f0e4794cda Move config store into Platform Service (#20718)
* update config methods
2022-08-08 16:52:31 +03:00
Ibrahim Serdar Acikgoz
ac79a887a2 Move metrics under platform service (continued) (#20732)
* move metrics into platform

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
2022-08-02 10:59:29 +03:00
Agniva De Sarker
90c6350410 Revert "move metrics server into platform service (#20683)" (#20726)
This reverts commit b18a42313b.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-27 21:30:25 +02:00
Ibrahim Serdar Acikgoz
b18a42313b move metrics server into platform service (#20683)
move metrics into platform
2022-07-25 16:54:06 +03:00
Ibrahim Serdar Acikgoz
6376f7ff55 app/platform: add initial platform service skeleton (#20679) 2022-07-20 15:04:26 +03:00