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

[#307] Axon plugin gives false highlights about non existing properties when they are defined in a superclass #306

Conversation

guymahieu
Copy link
Contributor

@guymahieu guymahieu commented Oct 12, 2024

In our project we get warnings on SagaEventHandlers that rely on an associationProperty from a superclass of the messsage. This works in Axon but is indicated as a problem by the plugin.

This PR fixes that for the SagaEventHandlers, but there are probably other cases where this applies (routingKeys?). We do not have this case in our project at the moment, so I did not change that.

This pull request resolves #307.

…avoid false positives // improved test assertions so failures are detected.
@smcvb smcvb requested a review from CodeDrivenMitch October 14, 2024 08:59
@smcvb smcvb changed the title Axon plugin gives false highlights about non existing properties when they are defined in a superclass. [#307] Axon plugin gives false highlights about non existing properties when they are defined in a superclass Oct 14, 2024
Copy link
Member

@smcvb smcvb left a comment

Choose a reason for hiding this comment

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

This changes seem fine to me, nice work, @guymahieu!

@smcvb
Copy link
Member

smcvb commented Oct 14, 2024

@CodeDrivenMitch, I think what @guymahieu provided is fine. Would you mind giving your opinion as well?

Copy link
Member

@CodeDrivenMitch CodeDrivenMitch left a comment

Choose a reason for hiding this comment

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

Looks like a good fix to me, thank you for the contibution!
And awesome work on adding tests for it as well

@CodeDrivenMitch CodeDrivenMitch merged commit 114c4af into AxonFramework:master Oct 14, 2024
3 checks passed
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.

Axon plugin gives false highlights about non existing properties when they are defined in a superclass
3 participants