Prechádzať zdrojové kódy

chore: make plugins config to low level

Zhongwen Deng 2 rokov pred
rodič
commit
bcc8f4313b

+ 9 - 6
apps/emqx_plugins/src/emqx_plugins_schema.erl

@@ -29,7 +29,7 @@
 
 namespace() -> "plugin".
 
-roots() -> [?CONF_ROOT].
+roots() -> [{?CONF_ROOT, ?HOCON(?R_REF(?CONF_ROOT), #{importance => ?IMPORTANCE_LOW})}].
 
 fields(?CONF_ROOT) ->
     #{
@@ -73,16 +73,19 @@ states(type) -> ?ARRAY(?R_REF(state));
 states(required) -> false;
 states(default) -> [];
 states(desc) -> ?DESC(states);
+states(importance) -> ?IMPORTANCE_HIGH;
 states(_) -> undefined.
 
 install_dir(type) -> string();
 install_dir(required) -> false;
-%% runner's root dir
+%% runner's root dir todo move to data dir in 5.1
 install_dir(default) -> <<"plugins">>;
-install_dir(T) when T =/= desc -> undefined;
-install_dir(desc) -> ?DESC(install_dir).
+install_dir(desc) -> ?DESC(install_dir);
+install_dir(importance) -> ?IMPORTANCE_LOW;
+install_dir(_) -> undefined.
 
 check_interval(type) -> emqx_schema:duration();
 check_interval(default) -> <<"5s">>;
-check_interval(T) when T =/= desc -> undefined;
-check_interval(desc) -> ?DESC(check_interval).
+check_interval(desc) -> ?DESC(check_interval);
+check_interval(deprecated) -> {since, "5.0.24"};
+check_interval(_) -> undefined.

+ 1 - 1
apps/emqx_rule_engine/src/emqx_rule_engine.app.src

@@ -2,7 +2,7 @@
 {application, emqx_rule_engine, [
     {description, "EMQX Rule Engine"},
     % strict semver, bump manually!
-    {vsn, "5.0.14"},
+    {vsn, "5.0.15"},
     {modules, []},
     {registered, [emqx_rule_engine_sup, emqx_rule_engine]},
     {applications, [kernel, stdlib, rulesql, getopt, emqx_ctl]},

+ 3 - 0
changes/ce/feat-10458.en.md

@@ -0,0 +1,3 @@
+Set the level of plugin configuration options to low level,
+in most cases, users only need to manage plugins on the dashboard
+without the need for manual modification, so we lowered the level.

+ 1 - 1
lib-ee/emqx_ee_connector/src/emqx_ee_connector.app.src

@@ -1,6 +1,6 @@
 {application, emqx_ee_connector, [
     {description, "EMQX Enterprise connectors"},
-    {vsn, "0.1.10"},
+    {vsn, "0.1.11"},
     {registered, []},
     {applications, [
         kernel,