-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(plugin): avro config schema store and encode/decode #12910
feat(plugin): avro config schema store and encode/decode #12910
Conversation
d5e1b72
to
e7fdaf2
Compare
91bea75
to
d62c5e0
Compare
apps/emqx_management/src/proto/emqx_mgmt_api_plugins_proto_v2.erl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also a new (optional) callback to be added to the template plugins to handle config changes.
e.g.
on_config_change(OldConfig, NewConfig) -> ...
36256d3
to
6713777
Compare
A reminder: update templates https://github.com/emqx/emqx-plugin-template and https://github.com/emqx/emqx-elixir-plugin |
6713777
to
bf7f5a0
Compare
bf7f5a0
to
5ff4e76
Compare
write_avro_bin(NameVsn, AvroBin) -> | ||
ok = file:write_file(avro_config_file(NameVsn), AvroBin). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the old configuration file for backup.
Similar to cluster.hocon
Fixes EMQX-12187
Release version: v/e5.7.0
Summary
PR Checklist
Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:
changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md
filesChecklist for CI (.github/workflows) changes
changes/
dir for user-facing artifacts update