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

13129 Коммитов

Автор SHA1 Сообщение Дата
Jesse Hallam
cd9185fa23 MM-30801: pre-package channel export plugin (#16406)
* MM-30801: pre-package channel export plugin

The [channel export plugin](https://github.com/mattermost/mattermost-plugin-channel-export) complements [incident management](https://github.com/mattermost/mattermost-plugin-incident-management).

* only enable IM/CE by default on enterprise ready builds
2020-12-04 15:09:05 -04:00
Scott Bishel
3f5041fa43 add missing translation strings (#16492) 2020-12-04 11:25:10 -07:00
Ibrahim Serdar Acikgoz
cc5a12bad0 app/import_functions: fix a bug while improting for two teams (#16455)
Automatic Merge
2020-12-04 18:45:17 +01:00
Agniva De Sarker
d137cf0aa5 MM-31082: Use a base path for test assets (#16478)
* MM-31082: Use a base path for test assets

Tests can be run from other tools using a different base path.
We need to respect the MM_SERVER_PATH variable for that.

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

```release-note
NONE
```

* do not append mattermost-server if env var is set

* fix typo
2020-12-04 20:38:07 +05:30
Ben Schumacher
f4cbecea81 [MM-30982] Add filter metadata to Marketplace response (#16446) 2020-12-04 09:19:16 +01:00
Haardik Dharma
4e2a33386b [MM-30913]: Change receiver name for (me *CollapseProvider) in app/slashcommands/command_expand_collapse.go to be more idiomatic. (#16389)
Automatic Merge
2020-12-04 07:15:17 +01:00
Deep Baldha
f8247a65d7 MM-30822: Change to idiomatic receiver names for model.PushNotification (#16347)
Automatic Merge
2020-12-04 06:15:17 +01:00
Deep Baldha
2d742600f4 MM-30818: Change to idiomatic receiver names for migrations.TestHelper (#16343)
Automatic Merge
2020-12-04 05:45:17 +01:00
Nick Misasi
fa5a033f66 [MM-30984] Missing payment email on billing day if no CC is present (#16442)
* Adding email and scaffolding for payment failure in case where customer has not added payment method

* Adding email template

* Remove unused boolean

* Fix error

* Add Email Us verbiage

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-03 16:02:43 -05:00
Nick Misasi
9e968a9ef1 [MM-30973] Delinquent Account Emails: Possibility for duplicate emails to be sent (#16434)
* Add a check to see if an email has already been sent for the current day's warning

* undo a change
2020-12-03 14:03:16 -05:00
Gabe Jackson
fe7d9f7643 Additional Config Store Cleanup (#16440)
This change addresses a few issues where config stores were not
properly closed when an error was encountered on server startup.
This could result in leaked database connections when dealing with
a database config store.
2020-12-03 10:09:31 -05:00
Ibrahim Serdar Acikgoz
9283143c3b [MM-30344] utils/markdown: fix index out of range (#16250)
* utils/markdown: fix index out of range

* reflect review comments

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-03 13:57:42 +03:00
Claudio Costa
df906cad9d [MM-28422] Enable processing of import files through API (#16062)
* Implement unzip function

* Implement FileSize method

* Implement path rewriting for bulk import

* Small improvements

* Add ImportSettings to config

* Implement ListImports API endpoint

* Enable uploading import files

* Implement import process job

* Add missing license headers

* Address reviews

* Make path sanitization a bit smarter

* Clean path before calculating Dir

* [MM-30008] Add mmctl support for file imports (#16301)

* Add mmctl support for import files

* Improve test

* Remove unnecessary handlers

* Use th.TestForSystemAdminAndLocal

* Make nouser id a constant
2020-12-03 11:38:00 +01:00
Jason Paul Deland
f733ee9332 Update Jenkinsfile.branch
Adding SAML lib changes
2020-12-02 14:23:43 -05:00
Sudheer
6cebcead22 MM-27989 Remove experimental setting for data prefetch (#16306)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-02 11:14:30 -05:00
Jesús Espino
a74fe05695 Removing supplier concept from the sql store (#16355)
* Removing supplier concept from the sql store

* Removing other metions to supplier

* Fixing gofmt

* Fixing gofmt

* Renaming NewSqlStore to New

* Fixing tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-02 12:06:23 +01:00
Ben Schumacher
11248831b8 [MM-30981] Require Plugin name in manifest (#16438) 2020-12-02 11:48:30 +01:00
Agniva De Sarker
fc60a1e8dd MM-30988 - Fix racy test ServerSystemdNotification (#16431)
* MM-30988 - Fix racy test ServerSystemdNotification

The translateFunc is a global variable which was unguarded.
So we convert that into an atomic variable to prevent against races.

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

```release-note
NONE
```

* fix tests

* move call upwards

* use race

* after translations init

* guard with a sync.Once

* missed import

* revert race

* update timeout
2020-12-02 14:22:41 +05:30
Haardik Dharma
e22669c403 [MM-30915]: Change receiver name for (me *JoinProvider) in app/slashcommands/command_join.go to be more idiomatic. (#16391)
Automatic Merge
2020-12-02 07:15:18 +01:00
Haardik Dharma
06543656ea [MM-30914]: Change receiver name for (me *InviteProvider) in app/slashcommands/command_invite.go to be more idiomatic. (#16390)
Automatic Merge
2020-12-02 06:15:18 +01:00
Agniva De Sarker
6ed90bf1db MM-30987- Fix race in setting clearNotify in Busy (#16430)
A time.AfterFunc runs the function in its own goroutine. So we need
to guard that with a mutex too.

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

```release-note
NONE
```
2020-12-02 08:49:40 +05:30
John Tzikas
3fdc6cb531 Fix misspellings and enable misspell on ci (#16285)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2020-12-01 16:27:05 +01:00
Eli Yukelzon
c2036f614e MM-30970 Add Basic unreadMentions support for collapsed threads (#16407)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-01 17:20:23 +02:00
Eli Yukelzon
1bd7dc41bd MM-30865 Invalid Participants handling on post delete in thread (#16353)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-12-01 16:50:39 +02:00
Haardik Dharma
64499ca767 [MM-30912]: Change receiver name for (me *RenameProvider) in app/slashcommands/command_channel_rename.go to be more idiomatic. (#16388)
Automatic Merge
2020-12-01 15:45:18 +01:00
Haardik Dharma
15037a510a Change receiver name for (me *InitialLoad) (#16386)
Automatic Merge
2020-12-01 07:15:17 +01:00
Haardik Dharma
a01927331a [MM-30909]: Change receiver name for (me *KickProvider) and (me *RemoveProvider)in app/slashcommands/command_remove.go to be more idiomatic. (#16385)
Automatic Merge
2020-12-01 06:15:17 +01:00
Haardik Dharma
e5df69df27 [MM-30908]: Change receiver name for (me *DndProvider) in app/slashcommands/command_dnd.go to be more idiomatic. (#16384)
Automatic Merge
2020-12-01 05:45:17 +01:00
Haardik Dharma
cbc66c9a37 [MM-30916]: Change receiver name for (me *LogoutProvider) in app/slashcommands/command_logout.go to be more idiomatic. (#16392)
Automatic Merge
2020-11-30 05:15:17 +01:00
Elisabeth Kulzer
522c86bc94 Fix empty strings. Add updates of Weblate. (#16421)
* Translated using Weblate (Korean)

Currently translated at 90.6% (1897 of 2092 strings)

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

Translated using Weblate (Korean)

Currently translated at 91.7% (1897 of 2067 strings)

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

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 98.3% (2053 of 2088 strings)

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

Translated using Weblate (Portuguese (Brazil))

Currently translated at 98.0% (2054 of 2094 strings)

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

Translated using Weblate (Portuguese (Brazil))

Currently translated at 99.3% (2054 of 2067 strings)

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

* Translated using Weblate (Russian)

Currently translated at 94.5% (1955 of 2067 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (2094 of 2094 strings)

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

Translated using Weblate (Turkish)

Currently translated at 100.0% (2092 of 2092 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 96.0% (2006 of 2088 strings)

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

* Translated using Weblate (Romanian)

Currently translated at 95.1% (1986 of 2088 strings)

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

Translated using Weblate (Romanian)

Currently translated at 93.2% (1948 of 2088 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 97.5% (2037 of 2088 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Fix empty translation strings

Co-authored-by: Ji-Hyeon Gim <potatogim@potatogim.net>
Co-authored-by: rodrigocorsi <rodrigocorsi@gmail.com>
Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: Viorel-Cosmin Miron <cosmin@uhlhost.net>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-27 18:38:45 +01:00
Agniva De Sarker
6a56af2a14 MM-30863: Fix race in LRU (#16382)
* MM-30863: Fix race in LRU

After shortening the critical section, we missed out the fact
that the byte slice is still accessible after the element is returned.
So the lock needs to be active until the byte slice is fully read and
unmarshaled

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

```release-note
NONE
```

* incorporate suggestions

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-26 20:24:23 +05:30
Eli Yukelzon
1e15ad0686 MM-30917 Fix invalid reply count calculation during thread migration (#16395) 2020-11-26 10:41:29 +02:00
Nick Misasi
9b6ee63a1e [MM-29845] Add CWS Webhook endpoint and payment failed email (#16351)
* Add a new handler to allow authentication via CWS API Key

* Make error better

* Add tests and cases for new handler functions

* Move some code around

* Add test for GetCloudSession function

* unset the env after test completion

* Remove white space

* Add CWS Webhook endpoint and email code

* handle returned errors from email sending function

* Change FailureCode to FailureMessage

* Remove unnecessary translations

* Fix translations

* Forgot to add template

* Update api4/cloud.go

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* Update api4/cloud.go

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* Update api4/cloud.go

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>

* PR changes

* Update app/email.go

Co-authored-by: Mario de Frutos Dieguez <mario@defrutos.org>

* Close body in proper spot

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
Co-authored-by: Mario de Frutos Dieguez <mario@defrutos.org>
2020-11-25 15:45:15 -05:00
Christopher Speller
a87e8d1c20 MM-30740 Add support for boolean feature flags. (#16311)
* Add support for boolean feature flags.

* Tests

* Use strconv.ParseBool to accept additional values as true.

* Update config/feature_flags.go

Co-authored-by: Christopher Poile <cpoile@gmail.com>

Co-authored-by: Christopher Poile <cpoile@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-25 07:27:06 -08:00
Agniva De Sarker
faaac9cb74 MM-30861: Fix racy test TestSaml2Login (#16376)
* MM-30861: Fix racy test TestSaml2Login

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

```release-note
NONE
```

* incorporate suggestions

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-25 19:01:32 +05:30
Scott Bishel
e014de0a65 MM-30802: Enable GoSAML2 library support (#16361)
* update saml to always use new library

* remove unused variable

* Update tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-25 08:14:56 -05:00
John Tzikas
3323b886f1 Make mlogger atomic (#16398)
* Make mlogger atomic

* Apply PR suggestions

* Fix logger initialization on testing

* Apply PR suggestions
2020-11-25 12:30:42 +02:00
John Tzikas
b375037a42 Syncronize access when updating config on search layer (#16393)
* Syncronize access when updating config on search layer

* Simplify validity of race condition on tests

* Add License header on new file

* Use atomic.Value for config access on search layer

* Apply PR suggestions
2020-11-25 12:23:43 +02:00
Eli Yukelzon
bcb861717e MM-30918 Fix product notice check when user setting is missing (#16396) 2020-11-25 09:30:44 +02:00
Haardik Dharma
5642d3106e [MM-30907]: Change receiver name for (me *AwayProvider) in app/slashcommands/command_away.go to be more idiomatic. (#16383)
Automatic Merge
2020-11-25 07:15:17 +01:00
Agniva De Sarker
912d059658 MM-30706: Skip racy test TestWebSocket (#16357)
* MM-30706: Skip racy test TestWebSocket

We just skip the test for now

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

```release-note
NONE
```

* Add empty line

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-24 21:56:10 +05:30
Agniva De Sarker
64e98d535d MM-30862: Fix racy test RunComplianceReports (#16377)
We pass a copy of the compliance object to the goroutine

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

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-24 21:36:34 +05:30
Deep Baldha
118b3be57c MM-30821: Change to idiomatic receiver names for slashcommands.msgProvider (#16346)
Automatic Merge
2020-11-24 16:45:17 +01:00
Deep Baldha
6e450ac82d MM-30816: Change to idiomatic receiver names for slashcommands.LoadTestProvider (#16341)
Automatic Merge
2020-11-24 15:45:17 +01:00
Maria A Nunez
8a92888190 MM-30900 - Dropped condition of RestrictAdmin for filtering cloud_restrictable (#16365) 2020-11-24 09:03:34 -05:00
Deep Baldha
0049cc08d2 MM-30824: Change to idiomatic receiver names for model.SecurityBulletin (#16349)
JIRA Ticket - https://mattermost.atlassian.net/browse/MM-30824

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-24 10:53:10 +05:30
Deep Baldha
3b00271bac MM-30823: Change to idiomatic receiver names for model.PushResponse (#16348)
JIRA Ticket - https://mattermost.atlassian.net/browse/MM-30823

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-24 10:52:59 +05:30
Deep Baldha
71d975e4bd MM-30820: Change to idiomatic receiver names for slashcommands.LeaveProvider (#16345)
Automatic Merge
2020-11-24 06:15:17 +01:00
Deep Baldha
819b4b8e7b MM-30825: Change to idiomatic receiver names for app.TestHelper (#16350)
Automatic Merge
2020-11-24 05:15:18 +01:00
Elisabeth Kulzer
39222e3f63 Add build and publish stages (#16362) 2020-11-23 20:40:13 +01:00