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

fix(inbound): invalid inbound connector definitions are not stored #2504

Merged

Conversation

chillleader
Copy link
Member

@chillleader chillleader commented May 7, 2024

Description

This PR introduces an additional mechanism for capturing errors related to invalid connector configuraitons that happen before creating inbound connector executables (for example, when multiple connectors that have different properties are combined using the same deduplication ID).

Instead of discarding such errors, they are now captured in an InvalidInboundConnectorDetails object. The InboundConnectorDetails class became a sealed interface. The new sealed hierarchy is needed because invalid inbound connector details won't have the same fields as the valid ones (e.g. properties will be missing, as they might be different for connector elements in an invalid group).

Additionally, this PR changes the validation error message in the element templates that support deduplication. The reason behind this change is that the properties panel shows an error in the following format: <property label> <error message>, so the new message fits more naturally.

Related issues

closes https://github.com/camunda/team-connectors/issues/762

@chillleader chillleader self-assigned this May 7, 2024
@chillleader chillleader changed the title fix(inbound): invalid definitions are not stored for user convenience fix(inbound): invalid inbound connector definitions are not stored May 7, 2024
@chillleader chillleader force-pushed the fix-invalid-definition-handling-in-executable-registry branch from 963ed9b to be760af Compare May 7, 2024 19:07
@chillleader chillleader marked this pull request as ready for review May 7, 2024 19:09
@chillleader chillleader requested a review from a team as a code owner May 7, 2024 19:09
Copy link
Contributor

@ev-codes ev-codes left a comment

Choose a reason for hiding this comment

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

@chillleader Thanks for turning this around good work so quickly!

I left a few comments - feel free to answer the non-blocking ones post-merge (or create a new issue for them if you'd like).

I'd appreciate another teammate (@sbuettner or @johnBgood perhaps?) giving the final approval, as I haven't worked with inbound connector code that much yet!

sbuettner
sbuettner previously approved these changes May 8, 2024
Copy link
Contributor

@ev-codes ev-codes left a comment

Choose a reason for hiding this comment

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

Thank you!

One last little comment, then feel free to merge!

@chillleader chillleader added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit 2866c41 May 8, 2024
4 checks passed
@chillleader chillleader deleted the fix-invalid-definition-handling-in-executable-registry branch May 8, 2024 12:25
Copy link
Contributor

github-actions bot commented May 8, 2024

Backport failed for release/8.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release/8.6
git worktree add -d .worktree/backport-2504-to-release/8.6 origin/release/8.6
cd .worktree/backport-2504-to-release/8.6
git switch --create backport-2504-to-release/8.6
git cherry-pick -x 2866c41afbac4846315400a616e10bcd4a96941a

chillleader added a commit that referenced this pull request May 8, 2024
…2504)

* fix(inbound): invalid definitions are not stored for user convenience

* fix polling connector test

* address review suggestions

* rewrite a condition that's impossible to read

(cherry picked from commit 2866c41)
chillleader added a commit that referenced this pull request May 8, 2024
…2504)

* fix(inbound): invalid definitions are not stored for user convenience

* fix polling connector test

* address review suggestions

* rewrite a condition that's impossible to read

(cherry picked from commit 2866c41)
chillleader added a commit that referenced this pull request May 8, 2024
…2504)

* fix(inbound): invalid definitions are not stored for user convenience

* fix polling connector test

* address review suggestions

fix test
chillleader added a commit that referenced this pull request May 8, 2024
…2504)

* fix(inbound): invalid definitions are not stored for user convenience

* fix polling connector test

* address review suggestions

fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants