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

Implement a common method for creating branches #1603

Merged
merged 4 commits into from
Jan 25, 2022

Conversation

Archie-Miller
Copy link
Contributor

Implement a mechanism to create Alarm Branches, store them, allow AddComment, Acknowledge, and Confirm them.

Updates the Retain flag automatically.
Cleans up branches on Ack/Confirm

Allows servers to retrieve branches to clear them all if necessary.

@lgtm-com
Copy link

lgtm-com bot commented Nov 19, 2021

This pull request introduces 2 alerts when merging 11e458a into 31e4a2b - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable

Copy link
Contributor

@mregen mregen left a comment

Choose a reason for hiding this comment

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

Hi @Archie-Miller , technically this is an API update so we may have to wait for the next version (aka.368, no worries, we switch likely very soon)
second, is there sample code how to use this? Even better were a alarm namespace in the ref sample server and/or test cases. There are now client/server fixtures.

/// <returns></returns>
public Dictionary< string, ConditionState >GetBranches()
{
if (m_branches == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

makes me wonder if the access to the Dictionary needsto be synchronized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure of the reason why this might be necessary, but I'm ready to discuss your concerns!

@mregen mregen added this to the 1.4.368 milestone Nov 24, 2021
@mregen mregen marked this pull request as draft December 8, 2021 17:54
@mregen mregen added the enhancement API or feature enhancement label Dec 16, 2021
@mregen mregen marked this pull request as ready for review January 25, 2022 06:44
@mregen mregen merged commit 5d33c16 into OPCFoundation:master Jan 25, 2022
@Archie-Miller Archie-Miller deleted the AM_BranchFeature branch January 28, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement API or feature enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants