MM-19606- Rework Prepackaged Plugins (#13449)

* MM-19609 - Add new prepackage configuration settings (#13062)

* Add signatures to the prepackaged plugins (#13138)

* MM-19612 - Support querying local plugin marketplace when upst… (#13250)

* MM-19612 - Support querying local plugin marketplace when upstream unavailable or disabled

* Update translations file

* Fixed comment

* Updated to check EnableRemoteMarketplace setting and LocalOnly to get marketplace plugins

* Fixed unit tests

* Tests cleanup code

* Removed unused error message

* Updated tests

* MM-19614- Updated Marketplace Service error id (#13388)

* [MM-19610] Consume prepackaged plugins (#13005)

* consume prepackaged plugins into memory

* missing i18n

* remove spurious .gitignore changes

* return on failure to install prepackged plugins

* cleanup

* s/plugins/availablePlugins

* whitespace

* don't return extractDir when not needed

* s/plug/plugin

* error on icon, cleanup

* update armored version of testplugin signature

* honour AutomaticPrepackagedPlugins

* document getPrepackagedPlugin

* MM-19613 - Include prepackaged plugins in marketplace results (#13433)

* Added prepackaged plugins to marketplace results

* PR Feedback

* PR Feedback

* Update error where definition

* Removing unnecessary var declaration

* Updated comments

* MM-21263 - Use EnableRemoteMarketplace in marketplace install… (#13438)

* MM-21263 - Use EnableRemoteMarketplace in marketplace install endpoint

* Call updateConfig before calling NewServer in TestHelper

* Added translations

* PR feedback

* Translations

* Feedback

* s/helpers.go/download.go

* Converging env.PrepackagedPlugins

* Initial PR feedback

* Ordered imports properly

* Updated DownloadURL to return slice of bytes

* Fixed method typo

* Fixed logging

* Added read lock for prepackaged plugins list

* PR Feedback

* Added condition to only install prepackaged plugin if it was previously enabled

* Linting

* Updated to check plugin state in config

* Closing filereader

* Only add local label if remote marketplace is enabled

* Updated local tag description

* Fixed tests

Co-authored-by: Ali Farooq <ali.farooq0@pm.me>
Co-authored-by: Shota Gvinepadze <wineson@gmail.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
Maria A Nunez
2020-01-15 13:38:55 -05:00
коммит произвёл GitHub
родитель 508fbf2f53
Коммит 87eb7697f9
29 изменённых файлов: 1554 добавлений и 367 удалений

Просмотреть файл

@@ -1572,18 +1572,6 @@
"id": "api.plugin.install.download_failed.app_error",
"translation": "An error occurred while downloading the plugin."
},
{
"id": "api.plugin.install.insecure_url.app_error",
"translation": "An insecure url was given to download the plugin. Please provide a secure url or enable PluginSettings.AllowInsecureDownloadUrl in your configuration."
},
{
"id": "api.plugin.install.invalid_url.app_error",
"translation": "An invalid url was given to download the plugin."
},
{
"id": "api.plugin.install.reading_stream_failed.app_error",
"translation": "An error ocurred reading the plugin file stream."
},
{
"id": "api.plugin.upload.array.app_error",
"translation": "File array is empty in multipart/form request"
@@ -3584,7 +3572,7 @@
},
{
"id": "app.plugin.extract.app_error",
"translation": "Encountered error extracting plugin"
"translation": "An error occurred extracting the plugin bundle."
},
{
"id": "app.plugin.filesystem.app_error",
@@ -3622,6 +3610,10 @@
"id": "app.plugin.install_id_failed_remove.app_error",
"translation": "Unable to install plugin. A plugin with the same ID is already installed and failed to be removed."
},
{
"id": "app.plugin.install_marketplace_plugin.app_error",
"translation": "Failed to install marketplace plugin."
},
{
"id": "app.plugin.invalid_id.app_error",
"translation": "Plugin Id must be at least {{.Min}} characters, at most {{.Max}} characters and match {{.Regex}}."
@@ -3638,6 +3630,10 @@
"id": "app.plugin.marketplace_client.app_error",
"translation": "Failed to create marketplace client."
},
{
"id": "app.plugin.marketplace_client.failed_to_fetch",
"translation": "Failed to get plugins from the marketplace server."
},
{
"id": "app.plugin.marketplace_disabled.app_error",
"translation": "Marketplace has been disabled. Please check your logs for details."
@@ -3646,14 +3642,14 @@
"id": "app.plugin.marketplace_plugin_request.app_error",
"translation": "Failed to decode the marketplace plugin request."
},
{
"id": "app.plugin.marketplace_plugins.app_error",
"translation": "Failed to get plugins from the marketplace server."
},
{
"id": "app.plugin.marketplace_plugins.not_found.app_error",
"translation": "Could not find the requested marketplace plugin."
},
{
"id": "app.plugin.marketplace_plugins.signature_not_found.app_error",
"translation": "Could not find the requested marketplace plugin signature."
},
{
"id": "app.plugin.marshal.app_error",
"translation": "Failed to marshal marketplace plugins."