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 ConditionRefresh2 #1353

Conversation

Archie-Miller
Copy link
Contributor

No description provided.

@lgtm-com
Copy link

lgtm-com bot commented Apr 7, 2021

This pull request introduces 2 alerts when merging a870980 into cb1abb1 - view on LGTM.com

new alerts:

  • 2 for Dereferenced variable may be null

@lgtm-com
Copy link

lgtm-com bot commented Apr 7, 2021

This pull request fixes 1 alert when merging a71e649 into cb1abb1 - view on LGTM.com

fixed alerts:

  • 1 for Dereferenced variable may be null

@mregen
Copy link
Contributor

mregen commented Apr 12, 2021

Hi @Archie-Miller , I guess there is some CTT tests which cover test cases for this functionality?

@Archie-Miller
Copy link
Contributor Author

Hello Martin,

There are ConditionRefresh and ConditionRefresh2 tests, however I only ran a subset. This pull request should wait until I have a chance to run all the existing tests.

I’m out of the office and should be able to run the tests during our next call on Thursday.

Archie

@mregen mregen marked this pull request as draft April 12, 2021 18:37
@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2021

This pull request fixes 1 alert when merging 8720ee4 into 558c395 - view on LGTM.com

fixed alerts:

  • 1 for Dereferenced variable may be null

@Archie-Miller
Copy link
Contributor Author

Hello @mregen

I have confirmed the operation of ConditionRefresh and ConditionRefresh2.

I have also refactored the section that I believe you found most problematic.

@mregen mregen marked this pull request as ready for review April 16, 2021 06:50
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.

looks great, :shipit:

/// <summary>
/// Refreshes the conditions. Works for both ConditionRefresh and ConditionRefresh2
/// </summary>
public void ConditionRefresh(List<IEventMonitoredItem> monitoredItems, uint monitoredItemId )
Copy link
Contributor

Choose a reason for hiding this comment

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

This method should be marked as private since it should only be called by ConditionRefresh() or ConditionRefresh2(uint monitoredItemId)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated as requested

ConditionRefresh(monitoredItems, 0);
}


Copy link
Contributor

Choose a reason for hiding this comment

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

extra empty line here...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Line Deleted

Libraries/Opc.Ua.Server/Subscription/Subscription.cs Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Apr 16, 2021

This pull request fixes 1 alert when merging defd09c into 0c735eb - view on LGTM.com

fixed alerts:

  • 1 for Dereferenced variable may be null

@lgtm-com
Copy link

lgtm-com bot commented Apr 16, 2021

This pull request fixes 1 alert when merging a91db15 into 0c735eb - view on LGTM.com

fixed alerts:

  • 1 for Dereferenced variable may be null

@AlinMoldovean AlinMoldovean merged commit 88b16b3 into OPCFoundation:master Apr 19, 2021
@Archie-Miller Archie-Miller deleted the ImplementConditionRefresh2 branch April 19, 2021 14:42
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

3 participants