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 HStreamDB bridge to connector and action #12512

Merged

Conversation

kjellwinblad
Copy link
Contributor

@kjellwinblad kjellwinblad commented Feb 14, 2024

This commit also upgrades the hstreamdb_erl driver library and change the action/bridge to use the new hstreamdb_erl.

Much of the code for the new API is copied from:
https://github.com/emqx/emqx-enterprise/blob/be1a1604dd5c4c06ea6be15b702f35d9bdec48a7/lib-ee/emqx_rule_actions/src/emqx_backend_hstreamdb_actions.erl

Fixes:
https://emqx.atlassian.net/browse/EMQX-11458
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

This commit also upgrades the hstreamdb_erl driver library and change
the action/bridge to use the new hstreamdb_erl.

Much of the code for the new API is copied from:
https://github.com/emqx/emqx-enterprise/blob/be1a1604dd5c4c06ea6be15b702f35d9bdec48a7/lib-ee/emqx_rule_actions/src/emqx_backend_hstreamdb_actions.erl

Fixes:
https://emqx.atlassian.net/browse/EMQX-11458
@kjellwinblad kjellwinblad force-pushed the kjell/refactor/hstreamdb/EMQX-11458 branch from 8b1eda3 to 4e8dfb4 Compare February 14, 2024 16:51
@kjellwinblad kjellwinblad force-pushed the kjell/refactor/hstreamdb/EMQX-11458 branch from 03bc2b5 to 0bf7a12 Compare February 15, 2024 12:25
@kjellwinblad kjellwinblad marked this pull request as ready for review February 15, 2024 12:26
@kjellwinblad kjellwinblad requested review from JimMoen and a team as code owners February 15, 2024 12:26
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
rel/i18n/emqx_bridge_hstreamdb.hocon Outdated Show resolved Hide resolved
@kjellwinblad kjellwinblad merged commit 86c85f3 into emqx:master Feb 20, 2024
166 checks passed
@@ -1,15 +1,17 @@
%%--------------------------------------------------------------------
%--------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

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

nit

end.

client_options(Config = #{url := ServerURL, ssl := SSL}) ->
GRPCTimeout = maps:get(<<"grpc_timeout">>, Config, ?DEFAULT_GRPC_TIMEOUT),
Copy link
Member

Choose a reason for hiding this comment

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

    GRPCTimeout = maps:get(grpc_timeout, Config, ?DEFAULT_GRPC_TIMEOUT),

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.

3 participants