Просмотр исходного кода

feat: hide shared_subscription_group,rpc,slow_subs

Zhongwen Deng 2 лет назад
Родитель
Сommit
be35ae2132

+ 3 - 1
apps/emqx/src/emqx_schema.erl

@@ -1498,12 +1498,14 @@ fields("broker") ->
                 ref("broker_perf"),
                 ref("broker_perf"),
                 #{importance => ?IMPORTANCE_HIDDEN}
                 #{importance => ?IMPORTANCE_HIDDEN}
             )},
             )},
+        %% FIXME: Need new design for shared subscription group
         {"shared_subscription_group",
         {"shared_subscription_group",
             sc(
             sc(
                 map(name, ref("shared_subscription_group")),
                 map(name, ref("shared_subscription_group")),
                 #{
                 #{
                     example => #{<<"example_group">> => #{<<"strategy">> => <<"random">>}},
                     example => #{<<"example_group">> => #{<<"strategy">> => <<"random">>}},
-                    desc => ?DESC(shared_subscription_group_strategy)
+                    desc => ?DESC(shared_subscription_group_strategy),
+                    importance => ?IMPORTANCE_HIDDEN
                 }
                 }
             )}
             )}
     ];
     ];

+ 4 - 1
apps/emqx_conf/src/emqx_conf_schema.erl

@@ -98,7 +98,10 @@ roots() ->
             {"rpc",
             {"rpc",
                 sc(
                 sc(
                     ?R_REF("rpc"),
                     ?R_REF("rpc"),
-                    #{translate_to => ["gen_rpc"]}
+                    #{
+                        translate_to => ["gen_rpc"],
+                        importance => ?IMPORTANCE_HIDDEN
+                    }
                 )}
                 )}
         ] ++
         ] ++
         emqx_schema:roots(medium) ++
         emqx_schema:roots(medium) ++

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

@@ -1,7 +1,7 @@
 {application, emqx_slow_subs, [
 {application, emqx_slow_subs, [
     {description, "EMQX Slow Subscribers Statistics"},
     {description, "EMQX Slow Subscribers Statistics"},
     % strict semver, bump manually!
     % strict semver, bump manually!
-    {vsn, "1.0.4"},
+    {vsn, "1.0.5"},
     {modules, []},
     {modules, []},
     {registered, [emqx_slow_subs_sup]},
     {registered, [emqx_slow_subs_sup]},
     {applications, [kernel, stdlib, emqx]},
     {applications, [kernel, stdlib, emqx]},

+ 2 - 1
apps/emqx_slow_subs/src/emqx_slow_subs_schema.erl

@@ -22,7 +22,8 @@
 
 
 namespace() -> "slow_subs".
 namespace() -> "slow_subs".
 
 
-roots() -> ["slow_subs"].
+roots() ->
+    [{"slow_subs", ?HOCON(?R_REF("slow_subs"), #{importance => ?IMPORTANCE_HIDDEN})}].
 
 
 fields("slow_subs") ->
 fields("slow_subs") ->
     [
     [