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

14158 Коммитов

Автор SHA1 Сообщение Дата
maruTA-bis5
fa462d7891 Translated using Weblate (Japanese)
Currently translated at 99.9% (2314 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2021-11-15 17:29:07 -05:00
MArtin Johnson
bc7f1882ce Translated using Weblate (Swedish)
Currently translated at 100.0% (2315 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/

Translated using Weblate (Swedish)

Currently translated at 99.9% (2314 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/sv/
2021-11-15 17:29:07 -05:00
jprusch
b48e695ec4 Translated using Weblate (German)
Currently translated at 100.0% (2317 of 2317 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/

Translated using Weblate (German)

Currently translated at 100.0% (2315 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-11-15 17:29:07 -05:00
SerHack
846a08041a Translated using Weblate (Italian)
Currently translated at 75.6% (1751 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/it/
2021-11-15 17:29:07 -05:00
Matthew Williams
580c439bff Translated using Weblate (English (Australia))
Currently translated at 100.0% (2315 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/

Translated using Weblate (English (Australia))

Currently translated at 100.0% (2314 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/en_AU/
2021-11-15 17:29:07 -05:00
Tóth Csaba // Online ERP Hungary Kft
c426f5407d Translated using Weblate (Hungarian)
Currently translated at 100.0% (2317 of 2317 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (2316 of 2316 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (2315 of 2315 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/

Translated using Weblate (Hungarian)

Currently translated at 100.0% (2314 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-11-15 17:29:07 -05:00
Ujjwal Sharma
627d2b9d6c [MM-39628] Migrate from gorp to sqlx in store/sqlstore/scheme_store.go (#18895)
Automatic Merge
2021-11-15 17:40:13 +01:00
Cesar Bretana
2153dc4d6d [MM-39641] Migrate Webhook store to sqlx (#18896)
* Migrated to sqlx INSERT + UPDATE incoming_webhooks

* Finish migrating IncomingWebhook to sqlx

* wip: outgoing webhooks

* Fix sql syntax error for incoming webhooks

* Add missing fields to insert incoming webhooks query

* Migrate outgoing_webhooks store to sqlx

* Migrate incoming_webhooks analytics count to sqlx

* Migrate outgoing_webhooks analytics count to sqlx

* Fix lint goimports alert

* Migrate unmigrated gorp methods

* Add missing fields to update incoming webhooks sql + remove unnecessary guards

* Address comments from review
2021-11-15 21:13:14 +05:30
Penthaa Patel
25b727d197 [MM-39638] - Migrate from gorp to sqlx in store/sqlstore/status_store.go (#18897)
* migrate from gorp to sqlx

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fixes

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-15 21:12:30 +05:30
Allan Guwatudde
0ee2a3ca35 [MM-39060] - A/B Test: Reminder to Join Workspace email (#18894)
* [MM-39060] - A/B Test: Reminder to Join Workspace email

* Fix error and add error handling

* feedback impl

* run make i18n-extract

* improvements

* make i18n-extract

* setup ability to do telemetry on reminder invite emails

* improvement

* add telemetry

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-15 18:42:15 +03:00
Yair Facio
e1eb0a0cf3 [MM-39643] Migrate from gorp to sqlx in store/sqlstore/system_store.go (#18893)
* Migrate from gorp to sqlx in SystemStore

* Add BeginXWithIsolation method to *sqlxDBWrapper

* Address PR comments
2021-11-15 21:03:55 +05:30
Penthaa Patel
bde2b540d6 [MM-39644] - Migrate from gorp to sqlx in store/sqlstore/upload_session_store.go (#18892)
* migrate from gorp to sqlx

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fix insert query

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* replace NamedExec() with Exec()

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fix typo

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* remove string()

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>
2021-11-15 19:40:54 +05:30
Penthaa Patel
ae897bc59a [MM-39642] - Migrate from gorp to sqlx in store/sqlstore/session_store.go (#18891)
* migrate from gorp to sqlx

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fix Save function

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fix Get function

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* use json.Marshal() for session.Props

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>
2021-11-15 19:40:37 +05:30
Allan Guwatudde
21a61813e8 [MM-39504] - Remove Prewritten Messages Feature Flag (#18968) 2021-11-15 09:35:10 +03:00
Anurag Shivarathri
c603b1b989 fix (#18793) 2021-11-15 10:43:07 +05:30
Anurag Shivarathri
65c670a4c9 MM-36687 CRT push notifications (#18347)
* CRT changes

* Lint fix

* Moved postId check

* Moved postId check

* Lint fix

* Misc

* Added test case for badge count while clearing notifications

* Fixed count when CRT is on and added isCRTEnabled, teamId to isIdLoaded notifications

* test fix

* isCRTEnabledForUser capitalised

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-15 10:41:47 +05:30
Devin Binnie
929caaff3d [MM-39374] Remove DesktopLatestVersion and DesktopMinVersion (#18979) 2021-11-12 10:37:43 -05:00
Nathaniel Allred
a7d9b83968 Mm 38799 invite to team (#18987)
* Add in-screen invitation modal invite to team feature flag
2021-11-12 09:20:15 -06:00
Allan Guwatudde
e3240a2ddd [MM-40022] - Expose telemetry service in the server (#18976)
* [MM-40022] - Expose telemetry service in the server

* make app-layers

* feedback impl
2021-11-12 10:16:19 +03:00
Agniva De Sarker
a850704afe Move pluginCommands into Channels (#18974)
* Move pluginCommands into Channels

We move pluginCommands, pluginCommandsLock
into Channels.

We also move the plugin related route handlers
under Channels and move the init code under
NewChannels. To achieve this, the router initialization
is bumped up.

Along with it, we clean up some App methods
which were just wrappers over Channel methods.
Instead, we call the Channel method directly
to make things more readable and easy to understand.

```release-note
NONE
```

* fix tests

```release-note
NONE
```
2021-11-12 10:35:14 +05:30
Sharath Huddar
27559c1c7b GH-18288: Allow configuring unsafe-eval and unsafe-inline (#18801)
* GH-18288: Allow configuring unsafe-eval and unsafe-inline

* Add developer flags to telemetry

* wip

* wip

* Refactor based on review

* Refactor based on review

* fix expected vs. actual in assert.Equal

* Add unit tests, rework to check only supported flags.

* Update model/config.go

Co-authored-by: Jesse Hallam <jesse@thehallams.ca>

* Fix failing tests

* Refactor based on review

* Refactor based on review

* Refactor based on review

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Jesse Hallam <jesse@thehallams.ca>
2021-11-12 05:41:11 +08:00
Penthaa Patel
df3ed307df [MM-39639] - Migrate from gorp to sqlx in store/sqlstore/user_access_token_store.go (#18888)
Automatic Merge
2021-11-11 05:40:13 +01:00
Scott Bishel
e3051b0df8 prepackage boards to 0.10.0 (#18973)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-10 15:58:36 -07:00
Harrison Healey
7677a93494 MM-40003 Fix patch route for Town Square (#18971)
Automatic Merge
2021-11-10 23:10:13 +01:00
Michael Kochell
ba1b279c5f [MM-39820] Add AppBarEnabled feature flag (#18967)
Automatic Merge
2021-11-10 19:10:14 +01:00
Carlos Tadeu Panato Junior
19de373498 update client function to match the new format and fix bad merge (#18978) 2021-11-10 12:38:02 -05:00
Carlos Tadeu Panato Junior
bb5a74a42b [MM-34076] Add Plugin API User custom status (#17435)
* add missing client for custom user status

* add custom user status plugin api

* update based on feedback review

* add GetCustomStatus

* update interfaces
2021-11-10 11:11:20 -05:00
Agniva De Sarker
0a3e7f4d55 Ordering clarifications (#18964)
Automatic Merge
2021-11-09 10:15:15 +01:00
jprusch
ba5f1f3f5c Translated using Weblate (German)
Currently translated at 100.0% (2314 of 2314 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/de/
2021-11-08 11:39:45 -06:00
kaakaa
4be195327c Translated using Weblate (Japanese)
Currently translated at 100.0% (2313 of 2313 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/ja/
2021-11-08 11:39:45 -06:00
Tóth Csaba // Online ERP Hungary Kft
3a168226b4 Translated using Weblate (Hungarian)
Currently translated at 100.0% (2313 of 2313 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/hu/
2021-11-08 11:39:45 -06:00
Berke Kalkan
e70c5a605a MM-32396 Create endpoint for listing all the roles (#16988)
* Create an endpoint for listing roles

* Add function to client model

* Create tests for listing roles endpoint

* Apply code review suggestions

* Restore GetAllRoles app method

* Use AppContext instead of App

* Minor fix

* Refactor according to new changes

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-08 16:38:41 +03:00
Agniva De Sarker
25257d6ef6 Move plugins under Channels (#18938)
* Move plugins under Channels

We move all plugin related fields under *Channels.
This essentially migrates several methods from being under
*Server to under *Channels.

We also move the plugin startup and shutdown code
to be under Channels.Start and Channels.Shutdown.

While here, we remove the getPluginPublicKeyFiles
method which was a one-line method which uselessly
returned an error.

Lastly, we fix the product initialization order which
was incorrect previously. Products are dependent on
the main server.

So startup should be products -> server.
And shutdown should be server -> products.

```release-note
NONE
```

* Added app layer

```release-note
NONE
```

* Incorporate suggestions

```release-note
NONE
```
2021-11-08 11:57:22 +05:30
Agniva De Sarker
24248dc764 Add JobSettings.CleanupJobsThresholdDays to telemetry (#18936)
* Add JobSettings.CleanupJobsThresholdDays to telemetry

```release-note
NONE
```

* Moved telemetry to more specific fields

```release-note
NONE
```

* Add missing space

```release-note
NONE
```
2021-11-08 11:45:59 +05:30
Penthaa Patel
c88c9b6625 [MM-39630] - Migrate from gorp to sqlx in store/sqlstore/tokens_store.go (#18887)
* migrate from gorp to sqlx

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>

* fixes

Signed-off-by: Penthaa Patel <penthaapatel@gmail.com>
2021-11-05 10:00:03 +05:30
Agniva De Sarker
3c3e1cb9e7 Remove DND run debug log (#18802)
This was being run every 5 minutes and unnecessarily clogs up
the logs. No other job makes a debug log before starting up.

```release-note
NONE
```
2021-11-05 09:27:19 +05:30
Jesse Hallam
5cca781c62 MM-39314: Pre-package Playbooks 1.21.0 (#18935) 2021-11-04 17:42:58 -03:00
Agniva De Sarker
3bc151bbda Revert "Ordering clarifications (#18937)" (#18948)
Automatic Merge
2021-11-04 19:15:15 +01:00
Maria A Nunez
7e728d0b6f MM-39804 - Remove license expiration checks for cloud (#18921) 2021-11-04 12:26:28 -04:00
Agniva De Sarker
f921e69fe8 Ordering clarifications (#18937)
* Ordering clarifications

Clearly outline the dependency graph
during server bootup.

```release-note
NONE
```

* More clarifications

```release-note
NONE
```

* lint fix

```release-note
NONE
```
2021-11-04 19:22:23 +05:30
Martin Kraft
412e52894c MM-39420: Checks for presence of slice before index access. (#18826)
* MM-39420: Checks for presence of slice before index access.

* MM-39420: Sanitize all embeds with single method.

* MM-39420: Already checking len in method.
2021-11-04 09:41:19 -04:00
Allan Guwatudde
7287da6391 [MM-39503] - Remove DownloadApps Feature Flag (#18902) 2021-11-04 16:28:46 +03:00
Agniva De Sarker
83b3090eb9 Fix PluginHealthCheckJob (#18927)
* Fix PluginHealthCheckJob

We were incorrectly calling to start PluginHealthCheckJob
without initializing the plugins environment.

To fix this, we move the code inside initPlugins right after
the environment is initialized.

To respond to config changes, we call it again from pluginsEnvironment.Shutdown
which gets called from ConfigListener when plugins are disabled. And initPlugins
is anyways called again from ConfigListener which plugins are enabled,
so we can avoid checking for PluginSettings.Enable again in the call.

We also rename the method to better indicate its nature.

During this, we also uncover and fix another bug where disabling
plugins would not shut down plugins at all because we were calling
s.GetPluginsEnvironment() directly which returns nil if plugins
were disabled. The approach we follow is to manually acquire the lock
whenever we need access to the struct ignoring config setting.
We fix that as well.

https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=6ef6178c-3512-4e57-8edd-1d2b66a09c9e
```release-note
NONE
```

* Fix test

```release-note
NONE
```
2021-11-04 08:54:03 +05:30
Agniva De Sarker
5ad7fb5b6f Remove job server dependency searchengine (#18908)
* Remove job server dependency searchengine

The job server field was not being used. We remove it
as part of a cleanup of server initialization refactor.

https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=8a171d5e-4398-4bc9-8fbf-8b9b14f37069

```release-note
NONE
```

* Fix missing field

```release-note
NONE
```
2021-11-03 18:44:57 +01:00
Carlos Tadeu Panato Junior
69eb0ca773 db: upgrade db to 6.0 and prepare for 6.1 (#18923)
* db: upgrade db to 6.1

* db: prepare db upgrade to 6.2

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-03 16:16:33 +01:00
Carlos Tadeu Panato Junior
2865ad9221 Revert "DOPS-602: Change how mmctl gets packaged and locally fetched. (#18335)" (#18930)
This reverts commit 5ede63badc.
2021-11-03 14:54:34 +01:00
Agniva De Sarker
7a0131ee14 Use the correct error variable from provider.GetSSOSettings (#18920)
```release-note
NONE
```
2021-11-03 19:12:30 +05:30
Claudio Costa
13c0ba6e8a Strip arguments from logged command (#18862) 2021-11-03 08:30:33 +01:00
Elisabeth Kulzer
5ede63badc DOPS-602: Change how mmctl gets packaged and locally fetched. (#18335)
* DOPS-602: Change how mmctl gets packaged and locally fetched.
2021-11-02 14:45:02 +01:00
Kaya Zeren
fc1e11c3d7 Translated using Weblate (Turkish)
Currently translated at 100.0% (2313 of 2313 strings)

Translation: mattermost-languages-shipped/mattermost-server
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-server_master/tr/
2021-11-01 11:51:31 -06:00