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: refactor kinesis bridge to connector and action #12376
Conversation
6003ae9
to
fa84273
Compare
apps/emqx_bridge_kinesis/src/emqx_bridge_kinesis_action_info.erl
Outdated
Show resolved
Hide resolved
apps/emqx_bridge_kinesis/src/emqx_bridge_kinesis_impl_producer.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.
🚀
fields(kinesis_action) -> | ||
emqx_bridge_v2_schema:make_producer_action_schema( | ||
hoconsc:mk( | ||
hoconsc:ref(?MODULE, action_parameters), |
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.
emqx_connector_schema:api_fields( | ||
Field, | ||
?CONNECTOR_TYPE, | ||
connector_config_fields() |
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.
Missing the resource_opts
configuration
e.g:
emqx/apps/emqx_bridge_mongodb/src/emqx_bridge_mongodb.erl
Lines 53 to 56 in dbe2baa
fields("config_connector") -> | |
emqx_connector_schema:common_fields() ++ | |
fields("connection_fields") ++ | |
emqx_connector_schema:resource_opts_ref(?MODULE, connector_resource_opts); |
This commit fixes problems in schema found by @HJianBo here: emqx#12376 (review)
Fixes:
https://emqx.atlassian.net/browse/EMQX-11461
Release version: v/e5.?
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
files