Skip to content
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

Merged
merged 4 commits into from Jan 25, 2024

Conversation

kjellwinblad
Copy link
Contributor

@kjellwinblad kjellwinblad commented Jan 23, 2024

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:

  • [] Added tests for the changes
  • [] Added property-based tests for code which performs user input validation
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • [] Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

@kjellwinblad kjellwinblad marked this pull request as ready for review January 24, 2024 17:37
@kjellwinblad kjellwinblad requested review from JimMoen and a team as code owners January 24, 2024 17:37
Copy link
Contributor

@thalesmg thalesmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@kjellwinblad kjellwinblad merged commit 5bf37cb into emqx:master Jan 25, 2024
165 checks passed
fields(kinesis_action) ->
emqx_bridge_v2_schema:make_producer_action_schema(
hoconsc:mk(
hoconsc:ref(?MODULE, action_parameters),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will introduce a duplicated field local_topic for actions creating. e.g:
image

emqx_connector_schema:api_fields(
Field,
?CONNECTOR_TYPE,
connector_config_fields()
Copy link
Member

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
image

e.g:

fields("config_connector") ->
emqx_connector_schema:common_fields() ++
fields("connection_fields") ++
emqx_connector_schema:resource_opts_ref(?MODULE, connector_resource_opts);

kjellwinblad added a commit to kjellwinblad/emqx that referenced this pull request Jan 29, 2024
This commit fixes problems in schema found by @HJianBo here:

emqx#12376 (review)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants