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 ma/mpc usecase to validate the correct actor type #107

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

sthelen-enqs
Copy link
Contributor

The ma/mpc usecase should filter for actors of type MonitoredUnit but was filtering for actors of type MonitoringAppliance which lead to the uc never finding any entities.

This PR also adds a commit which adjusts the string representation of the ma/mpc UseCaseSupportUpdate EventType from "ma-mpc-oscev-UseCaseSupportUpdate" to "ma-mpc-UseCaseSupportUpdate" as it isn't relevant here. This is technically an API-breaking change, but all subscribers should be using the constant mpc.UseCaseSupportUpdate instead of its string representation and therefore automatically always use the correct variant for their version of eebus-go. I could, however, drop the commit from this PR if preferred.

The actor in this use case should be a MonitoringAppliance, but it
should connect to actors of type MonitoredUnit.
@DerAndereAndi
Copy link
Member

Nice catch @sthelen-enqs . Thank you!

@DerAndereAndi DerAndereAndi merged commit 22e8d65 into enbility:dev Aug 29, 2024
4 checks passed
@sthelen-enqs sthelen-enqs deleted the push-xwstvmssylru branch September 27, 2024 08:50
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.

2 participants