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

Persistent accessory identifier for subflows #395

Merged
merged 2 commits into from Apr 27, 2021
Merged

Persistent accessory identifier for subflows #395

merged 2 commits into from Apr 27, 2021

Conversation

kevinkub
Copy link
Contributor

As outlined in #393, this pull request fixes the issue of changing identifiers in subflows. This is a non-breaking change, as identifiers for top level flows remain persistent. All existing nrchkb service nodes in subflows will create a new uuid for a last time and remain persistent afterwards.

It also resolves #298.

I also request to reject #236 as this pull request fixes the subflow issues without a breaking change and forcing users to use distinct serial numbers.

Enables the use of nrchkb nodes in subflows with backwards compatibility.
@Shaquu Shaquu added this to In progress in NRCHKB 1.4.0 via automation Apr 26, 2021
@Shaquu Shaquu self-requested a review April 26, 2021 15:03
NRCHKB 1.4.0 automation moved this from In progress to Review in progress Apr 26, 2021
Copy link
Member

@Shaquu Shaquu left a comment

Choose a reason for hiding this comment

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

In general it looks nice and clear.
I put a few small comments that do not change a functionality but would be good to be addressed.

src/lib/types/HAPServiceNodeType.ts Outdated Show resolved Hide resolved
src/lib/HAPServiceNode.ts Outdated Show resolved Hide resolved
src/lib/HAPServiceNode.ts Outdated Show resolved Hide resolved
Removing _flow and _alias from the HAP types and putting them into a generic node type, that just extends the node type of nodered.
Changed a description that I did not adjust, when I changed the code.
Made uniqueIdentifier a public property of HAPServiceNode.
NRCHKB 1.4.0 automation moved this from Review in progress to Reviewer approved Apr 27, 2021
@crxporter
Copy link
Member

Hey please flag me when it's ready to test so I remember.

Thanks!

@Shaquu Shaquu merged commit c73284f into NRCHKB:dev Apr 27, 2021
NRCHKB 1.4.0 automation moved this from Reviewer approved to Done Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
NRCHKB 1.4.0
  
Done
3 participants