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

Add validation on process node to check reference to non-task node #1567

Merged
merged 2 commits into from
Dec 19, 2019

Conversation

antho1404
Copy link
Member

#1558 introduced the use of refKey in addition to nodeKey, this is overkill and makes it really complicated where we only need validation and keep a simple (yet already complex) key to reference a node.

This adds a check to only allow a refKey to reference a task node or only the parent node.

It is not possible to reference a node other than a task that is not a direct parent

This way we are sure that data are always available when we do a mapping.

@antho1404 antho1404 self-assigned this Dec 18, 2019
@antho1404 antho1404 mentioned this pull request Dec 18, 2019
@NicolasMahe NicolasMahe added this to the v0.18.0 milestone Dec 18, 2019
@antho1404 antho1404 merged commit b7d5c3c into dev Dec 19, 2019
@antho1404 antho1404 deleted the feature/check-parent-for-non-task-ref branch December 19, 2019 14:40
@NicolasMahe NicolasMahe added the release:add Pull requests that add something label Dec 23, 2019
@NicolasMahe NicolasMahe changed the title Check parent for non task reference Add validation on process node to check reference to non-task node Dec 23, 2019
@NicolasMahe NicolasMahe mentioned this pull request Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:add Pull requests that add something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants