diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-12-05 18:19:33 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-12-05 15:19:33 -0800 |
commit | 7cefef6d21fa76de0683d2fe9ff56a6e28816628 (patch) | |
tree | 3aff5d34a44bb65cfefa5e69084d2bd484d1dd51 /model | |
parent | 150de584c348d6317199fd619f0c144464b8f755 (diff) | |
download | chat-7cefef6d21fa76de0683d2fe9ff56a6e28816628.tar.gz chat-7cefef6d21fa76de0683d2fe9ff56a6e28816628.tar.bz2 chat-7cefef6d21fa76de0683d2fe9ff56a6e28816628.zip |
Hash key for plugin store and limit id length (#7933)
Diffstat (limited to 'model')
-rw-r--r-- | model/manifest.go | 5 | ||||
-rw-r--r-- | model/plugin_key_value.go | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/model/manifest.go b/model/manifest.go index 121d3e0d2..03d78f84e 100644 --- a/model/manifest.go +++ b/model/manifest.go @@ -102,8 +102,9 @@ type PluginSettingsSchema struct { // help_text: When true, an extra thing will be enabled! // default: false type Manifest struct { - // The id is a globally unique identifier that represents your plugin. Reverse-DNS notation - // using a name you control is a good option. For example, "com.mycompany.myplugin". + // The id is a globally unique identifier that represents your plugin. Ids are limited + // to 190 characters. Reverse-DNS notation using a name you control is a good option. + // For example, "com.mycompany.myplugin". Id string `json:"id" yaml:"id"` // The name to be displayed for the plugin. diff --git a/model/plugin_key_value.go b/model/plugin_key_value.go index ceb216c2a..b7a7731c4 100644 --- a/model/plugin_key_value.go +++ b/model/plugin_key_value.go @@ -9,8 +9,8 @@ import ( ) const ( - KEY_VALUE_PLUGIN_ID_MAX_RUNES = 100 - KEY_VALUE_KEY_MAX_RUNES = 100 + KEY_VALUE_PLUGIN_ID_MAX_RUNES = 190 + KEY_VALUE_KEY_MAX_RUNES = 50 ) type PluginKeyValue struct { |