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

extend alarm list to support basic and sitewise alarm extensions #92

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

haweston
Copy link
Collaborator

We PR 84 for how to test alarm configuration (#84).

Current TwinMaker API only allows for direct child to be search for by list-component-types API when using the extendsFrom. Thus to enable finding extensions of both the basic alarm and the new sitewise 1p alarm we need to do two queries even though the sitewise 1P alarm component type is extended from the twinmaker basic alarm component type.

This was testing using entities that have 2 alarms of the same componentType on the same entity which exposed an issue with an extra 'break' in the utils.go that caused the search to exit on the first matching componentType even if the externalId didn't match.

Copy link
Collaborator

@TheEvilDev TheEvilDev left a comment

Choose a reason for hiding this comment

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

I assume we're not currently unit testing our go code?

@mukeshsahay mukeshsahay self-requested a review August 23, 2022 21:36
@haweston haweston merged commit c8604c0 into alarmConfigurationFeature Aug 24, 2022
@mukeshsahay mukeshsahay deleted the listSitewiseAlarms branch January 24, 2023 06:26
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.

None yet

4 participants