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(gateway): deprecate the contactPoint property and introduce the initialContactProperties #9508

Merged

Conversation

aivinog1
Copy link
Contributor

@aivinog1 aivinog1 commented Jun 5, 2022

Description

Replace the contactPoint property with the initialContactPoints property. So, there now could be an array of broker connections on the start.

Related issues

closes #4856

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/1.3) to the PR, in case that fails you need to create backports manually.

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement
  • If the PR changes how BPMN processes are validated (e.g. support new BPMN element) then the Camunda modeling team should be informed to adjust the BPMN linting.

Please refer to our review guidelines.

@aivinog1 aivinog1 changed the title fix(gateway): deprecate the contactPoint property and introduce the initialContactProperties feat(gateway): deprecate the contactPoint property and introduce the initialContactProperties Jun 5, 2022
@aivinog1 aivinog1 force-pushed the 4856_initial_contact_point_list branch from 65e8377 to f006950 Compare June 5, 2022 13:15
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2022

Unit Test Results

   777 files  ±  0     777 suites  ±0   1h 28m 33s ⏱️ - 4m 57s
5 573 tests +97  5 566 ✔️ +97  7 💤 ±0  0 ±0 
5 743 runs  +97  5 736 ✔️ +97  7 💤 ±0  0 ±0 

Results for commit f006950. ± Comparison against base commit 5a1571c.


// when
final GatewayCfg gatewayCfg =
new GatewayCfg().setCluster(new ClusterCfg().setContactPoint(contactPoint));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [ClusterCfg.setContactPoint](1) should be avoided because it has been deprecated.
@saig0
Copy link
Member

saig0 commented Jun 22, 2022

@Zelldon can you have a look at the PR?

@Zelldon Zelldon self-requested a review June 22, 2022 04:17
Copy link
Member

@Zelldon Zelldon left a comment

Choose a reason for hiding this comment

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

Awesome @aivinog1 thanks for your contribution!

I have just some smaller comments, nothing major! After fixing these we can merge it. 🚀

dist/src/main/config/gateway.yaml.template Outdated Show resolved Hide resolved
dist/src/main/config/gateway.yaml.template Outdated Show resolved Hide resolved
@aivinog1 aivinog1 force-pushed the 4856_initial_contact_point_list branch from f006950 to fe2200a Compare June 27, 2022 06:21
Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
@aivinog1
Copy link
Contributor Author

Hey @Zelldon! It's done :)

@aivinog1 aivinog1 requested a review from Zelldon June 27, 2022 06:23
Copy link
Member

@Zelldon Zelldon left a comment

Choose a reason for hiding this comment

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

Thanks @aivinog1 🚀

bors r+

@zeebe-bors-camunda
Copy link
Contributor

Build succeeded:

@zeebe-bors-camunda zeebe-bors-camunda bot merged commit 52adfaf into camunda:main Jun 27, 2022
@aivinog1 aivinog1 deleted the 4856_initial_contact_point_list branch June 27, 2022 07:05
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.

Support mutliple cluster contact points on the standalone Gateway
3 participants