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

Fixed filtering desired properties signals. #1599 #1602

Conversation

kyberpunk
Copy link
Contributor

@kyberpunk kyberpunk commented Mar 19, 2023

This PR is fixing a bug which caused that signal filtering did not work for desired properties changes. There was missing implementation of mapping to Thing model for such events. More details described in #1599.

I've added few unit tests covering new code and the bug itself. Also tested it manually with my K8s deployment with Kafka and it works as expected now.

I didn't want to change a code too much but maybe would worth to move the conversion function to ThingEvent interface an use polymorphism; so no one will forget to implement it anymore in case of new events.

fixes #1599

Signed-off-by: Vit Holasek <xvh@seznam.cz>
@thjaeckle thjaeckle added this to the 3.2.1 milestone Mar 19, 2023
@kyberpunk
Copy link
Contributor Author

I've did wrong by mixing my test with parametrized tests. Will fix it.

Signed-off-by: Vit Holasek <xvh@seznam.cz>
Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

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

Thanks so much @kyberpunk

I reviewed and your changes look great 👍

I didn't want to change a code too much but maybe would worth to move the conversion function to ThingEvent interface an use polymorphism; so no one will forget to implement it anymore in case of new events.

Indeed, that would have been and would still be way more cleaner to do it that way.
Noted for the next model changes ;)

@thjaeckle thjaeckle merged commit 4667ef9 into eclipse-ditto:master Mar 20, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Change notification filtering doesn't work for desired properties changes
2 participants