Ibrahim Serdar Acikgoz
26e3bc0a24
app/post_metadata: add a check to type casting ( #15821 )
2020-10-07 11:16:36 +03:00
Ibrahim Serdar Acikgoz
1bf4373f3f
[MM-28885] app/plugin: check if plugin manifest has errors ( #15630 )
...
* app/plugin: dont sync plugins with errors
* reflect review comments
* update test
* Update plugin/environment_test.go
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com >
* reflect review comments
* reflect review comments
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com >
2020-10-07 10:23:59 +03:00
Ibrahim Serdar Acikgoz
40371d8616
config/envrionment: fix a panic where a setting is not defined in ( #15819 )
...
model.Config
2020-10-07 09:33:53 +03:00
Ibrahim Serdar Acikgoz
c67c46a684
[MM-28810] channel_store_categories: check if object is nil after the query ( #15635 )
...
* check if onj is nil
* channel_store_categories: add tests
* reflect review comments
* remove store declaraation
2020-10-07 09:33:18 +03:00
Eli Yukelzon
6222e182ca
MM-29264 Fix invalid server version handling / date constraint in InProduct Notices ( #15756 )
2020-10-06 12:04:26 +03:00
Agniva De Sarker
1985d15fe4
[internal]: Added an error string for checking invalid time ( #15807 )
...
* [internal]: Added an error string for checking invalid time
This is used by SAML library when an xml response has time set
outside the valid range.
* Add missing comma
2020-10-06 14:09:05 +05:30
Jorge Vallecillo
f3ce8716bb
Fix typos 4 files: consecutive occurrences of 'the' ( #15789 )
...
Automatic Merge
2020-10-05 14:57:28 -04:00
Michael Kochell
42f539fa57
[MM-27942] Request arch-specific plugin ( #15436 )
...
* request arch-specific plugin
* rename arch/architecture to platform
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-05 13:01:33 -04:00
Hossein Ahmadian-Yazdi
716b64a99c
Revert EN JSON changes ( #15718 )
...
* Revert EN JSON stuff
* Update en.json
* updat en.json
* Fix translation
* Comment out download job test
* Remove test
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-05 09:52:22 -04:00
Devin Binnie
ebd3e6aa49
[MM-28217] Server API to serve up cloud customer information ( #15656 )
...
* [MM-28217] Server API to serve up cloud customer information
* Added missing client4 method
* merge'd
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-05 08:46:52 -04:00
Eli Yukelzon
375931a4b9
Post image schema fix ( #15763 )
2020-10-04 16:14:06 +03:00
Rodrigo Villablanca
bb4df5a68e
ChannelStore migration Part 3 ( #15504 )
...
* Migration finished
* Change error var name
* Fix imports
* Fix tests
* Merge with master
* Doing some suggestions
* More suggestions
* Fix i18n
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2020-10-04 10:12:29 +05:30
Joshua Bezaleel Abednego
5353bceaea
MM-24948: Command webhook store squirrel refactor ( #14659 )
...
Automatic Merge
2020-10-03 22:57:28 -04:00
ataboo
2551959504
GH-15742: added db health check method in app ( #15752 )
2020-10-03 11:38:35 +02:00
Florent Peterschmitt
047c76b55f
[MM-29174] fix: enable automatic emoji resize feature ( #15657 )
...
* fix: enable automatic emoji resize feature
* refactor writes by overriding existing buffer, write once, return once
* add testcases
* 🤔
* close file
* automatic formatting with goimports
* ensure image is resized keeping proportions
2020-10-02 19:16:11 +02:00
Claudio Costa
ff42c97ab7
[MM-29229] Set part size for S3 uploads to avoid excessive allocation ( #15737 )
...
* Set part size for S3 uploads
* Include benchmark
2020-10-02 19:14:16 +02:00
Agniva De Sarker
aa162dfd59
[internal]: Validate response signature ( #15736 )
...
* [internal]: Validate response signature
We add the error message here for validating response signature
* Trigger CI
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-02 22:32:22 +05:30
Elisabeth Kulzer
14fe307436
Add healthcheck to docker-compose databases to easier debug ( #15735 )
...
* Waiting for postgres to startup before tests
* Add healthcheck
* Test postgres default
* Prefer pgisready command
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-02 12:32:23 +02:00
Eli Yukelzon
b8ceb610e6
MM-27353 Mini image previews ( #15376 )
2020-10-02 11:14:57 +03:00
Ashim Sedhain
2f47cf5994
[MM-24753] Improves error message when plugin crashes during slash command ( #15334 )
...
Co-authored-by: Ali Farooq <ali.farooq0@pm.me >
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com >
2020-10-02 10:02:58 +02:00
Claudio Costa
51d790300f
Fix possible panic during plugin installation ( #15689 )
2020-10-02 09:25:50 +02:00
Ben Schumacher
6d7c5c5bf3
Bump app version to 5.30 ( #15612 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-02 00:28:56 +02:00
Maria A Nunez
54fa796f0a
Removed cloud_restrictable from PluginSettings.Enabled ( #15725 )
2020-10-01 15:53:36 -04:00
Miguel de la Cruz
8113279460
[MM-28630] Add ping endpoint to local mode ( #15694 )
2020-10-01 21:39:35 +02:00
Agniva De Sarker
e15308e840
MM-29033: Modify Test S3 connection to handle path prefix ( #15659 )
...
* MM-29033: Modify Test S3 connection to handle path prefix
When a IAM user is just allowed access to a specific path prefix,
the bucket exists test will fail because that is applicable to the entire bucket.
We modify that check to just list objects under that path prefix and return
on the first non-nil error.
Another consideration was to do a StatObject, but it is only applicable to actual
objects and not at a directory level. Path prefixes are entirely logical and depends
on the underlying implementation. Therefore, ListObjects is a better choice.
https://mattermost.atlassian.net/browse/MM-29033
* Improve logic
* tmp
* Only receive
2020-10-02 00:10:28 +05:30
Devin Binnie
2403aae0c4
[MM-28211] API pass-thru to the CWS for getting subscription ( #15666 )
...
* API pass-thru to the CWS for getting subscription
* Remove use of parameter in favour of env var
* Remove unnecessary param
* Removed unnecessary fields and added client4 method
* Some cleanup
* Translation fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-01 13:14:48 -04:00
Jesús Espino
ca145a83bd
Rudder key and dataplane in Config with env vars ( #15572 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-01 18:33:44 +02:00
Eli Yukelzon
595248b10e
MM-28247 Threads metadata table ( #15571 )
2020-10-01 18:48:38 +03:00
Eli Yukelzon
10961f9500
added missing api tests for category order ( #15661 )
2020-10-01 11:14:08 -04:00
Eli Yukelzon
2bf03a1982
added TestHasPermissionToCategory ( #15660 )
2020-10-01 11:13:37 -04:00
Carlos Tadeu Panato Junior
c2554dc30e
bump the package placeholder to use the latest mm package release ( #15688 )
2020-10-01 13:50:26 +02:00
Agniva De Sarker
0e90606547
MM-29011: Add feature flag for shared channels ( #15585 )
...
* MM-29011: Add feature flag for shared channels
https://mattermost.atlassian.net/browse/MM-29011
* gofmt
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-10-01 10:37:15 +05:30
Mario de Frutos Dieguez
ab816b18ce
[MM-28841] Filter settings sent to the client based on tag ( #15578 )
...
* Filter settings sent to the client based on tag
Right now we're filtering in client the sections based on the
RestrictSystemAdmin setting but we're still sending those
settings through the API call.
In this PR we include a new tag cloud_restrictable and some
method to remove those settings/fields from the final JSON
sent to the client
2020-09-30 21:09:56 +02:00
Agniva De Sarker
886c4898d8
MM-28548: Change default data source to postgres ( #15553 )
...
* MM-28548: Change default data source to postgres
We now move to start using postgres as our default database.
* Add connect_timeout
* Trigger CI
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-30 19:03:41 +05:30
Eli Yukelzon
11d9958a99
MM-28189 - Sentry CI improvements ( #15547 )
2020-09-30 11:09:48 +03:00
Christopher Speller
e974b7b9be
MM28858 Basic framework for use of feature flags. Enviroment variable overrides. ( #15544 )
...
* Basic framework for use of feature flags. Enviroment variable overrides.
* Use Apperr instead of error number increments.
* Undo random viper change.
* Update model/config_test.go
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com >
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com >
2020-09-29 21:41:22 -07:00
George Goldberg
61f08d397c
MM-28419: Move SetLogger() to Server. ( #15551 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-29 14:30:15 +01:00
Eli Yukelzon
c298678663
MM-28835 Configure/update notices setting for TeamAdmin ( #15632 )
2020-09-29 15:17:38 +03:00
Ibrahim Serdar Acikgoz
ed2cd0e552
[MM-28028] api4/channel_test: increase timeout fir the case if event is not recieved in time ( #15344 )
...
* api4/channel_test: skip if event is not recieved in time
* api4/channel: TestConvertChannelToPrivate increase timeout
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-29 13:54:38 +03:00
Ibrahim Serdar Acikgoz
c8c7fe0f4f
[MM-28124] api4/post: return error at getFlaggedPostsForUser ( #15493 )
...
* api4/post: return error at getFlaggedPostsForUser
* api4/post_test: add additional test case for GetFlaggedPosts
* reflect review comments
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-29 10:33:15 +03:00
Ibrahim Serdar Acikgoz
7bd18264fd
[MM-28945] api4/file: add missing return statement ( #15552 )
...
* api4/file: add missing return statement
* api4/file: add a test case for GetPublicFile; request a deleted file
* add missing check
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-29 10:32:47 +03:00
catalintomai
1c0d590c81
Add AWS Metering service support ( #15290 )
2020-09-28 11:43:08 -07:00
Maria A Nunez
50e37068b5
MM-27147 - /cloud api endpoints ( #15626 )
2020-09-28 12:18:47 -04:00
Shota Gvinepadze
f73157dd8f
Fix command url validation ( #15239 )
...
* Fix command url validation
* Add Host and Scheme check in IsValidHttpUrl func
* Add unit tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2020-09-28 17:59:04 +04:00
Martin Kraft
32fc41d807
MM-27523: Remove ability to read/write admin filter settings. ( #15598 )
2020-09-28 09:52:16 -04:00
Agniva De Sarker
85b434c50d
Revert "MM-27147 - /cloud api endpoints ( #15428 )" ( #15615 )
...
This reverts commit 88aed7ec9e .
2020-09-28 09:06:55 +02:00
Maria A Nunez
88aed7ec9e
MM-27147 - /cloud api endpoints ( #15428 )
2020-09-25 21:03:21 -04:00
catalintomai
f74b86ae95
MM-28733 : Admin Advisor v2 ( #15515 )
2020-09-25 14:59:41 -07:00
Ben Schumacher
7c905b0890
[MM-28707] Fix plugin version telemetry for air gaped installations ( #15509 )
2020-09-25 19:13:02 +02:00
Harrison Healey
d9e2b64a61
MM-28890 Enable the gif picker, timezones, and viewing archived channels by default ( #15587 )
2020-09-25 11:01:09 -04:00