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

LIU-96 Add initial support for Branch drops #41

Merged
merged 1 commit into from
Jul 8, 2021
Merged

LIU-96 Add initial support for Branch drops #41

merged 1 commit into from
Jul 8, 2021

Conversation

rtobar
Copy link
Contributor

@rtobar rtobar commented Jul 8, 2021

Branch drops are a special type of application drops that must implement
an additional condition function, returning true or false, and thus
triggering one branch of execution down the rest of the graph, or the
other. The current implementation requires these applications
to have exactly two outputs, mainly because the information of which
branch should continue executing is transmitted through the output drop
onto its corresponding consumers instead of trying to contact the
consumers directly.

To support this new functionality we require a new SKIPPED state, which
automatically propagates through the graph. Unit tests check that this
propagation works through multiple levels, both for data and application
drops, such that their respective states change correctly (which is
important for the UI to display them correctly too).

The Web UI has also been updated to display skipped branches of
execution with a different color. Examples of these can be found in https://icrar.atlassian.net/browse/LIU-96

Signed-off-by: Rodrigo Tobar rtobar@icrar.org

Branch drops are a special type of application drops that must implement
an additional condition function, returning true or false, and thus
triggering one branch of execution down the rest of the graph, or the
other. The current implementation requires these applications
to have exactly two outputs, mainly because the information of which
branch should continue executing is transmitted through the output drop
onto its corresponding consumers instead of trying to contact the
consumers directly.

To support this new functionality we require a new SKIPPED state, which
automatically propagates through the graph. Unit tests check that this
propagation works through multiple levels, both for data and application
drops, such that their respective states change correctly (which is
important for the UI to display them correctly too).

The Web UI has also been updated to display skipped branches of
execution with a different color.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
@coveralls
Copy link

coveralls commented Jul 8, 2021

Coverage Status

Coverage decreased (-0.3%) to 76.614% when pulling fd85ba0 on LIU-96 into e12f29d on master.

@awicenec
Copy link
Contributor

awicenec commented Jul 8, 2021

Looks great. Will merge it now and get the rest of the integration underway as well.

@awicenec awicenec merged commit 9289e74 into master Jul 8, 2021
@awicenec awicenec deleted the LIU-96 branch July 8, 2021 13:38
awicenec added a commit that referenced this pull request May 19, 2022
LIU-96 Add initial support for Branch drops
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.

3 participants