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

Annotations branch fix #255

Merged
merged 10 commits into from
Nov 19, 2020
Merged

Annotations branch fix #255

merged 10 commits into from
Nov 19, 2020

Conversation

EngHabu
Copy link
Collaborator

@EngHabu EngHabu commented Nov 16, 2020

TL;DR

Ensure that inputs variables to a branch node have unique names instead of copying the name from the promise as is.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Tracking Issue

flyteorg/flyte#602

@EngHabu EngHabu changed the base branch from master to annotations November 16, 2020 19:04
@EngHabu EngHabu requested a review from kumare3 November 19, 2020 16:58
@EngHabu EngHabu marked this pull request as ready for review November 19, 2020 16:58
@@ -292,7 +304,7 @@ def transform_to_conj_expr(expr: ConjunctionExpression) -> (_core_cond.Conjuncti

def transform_to_operand(v: Union[Promise, Literal]) -> (_core_cond.Operand, Optional[Promise]):
if isinstance(v, Promise):
return _core_cond.Operand(var=v.var), v
return _core_cond.Operand(var=create_branch_node_promise_var(v.ref.node_id, v.var)), v
Copy link
Contributor

Choose a reason for hiding this comment

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

so indeed this was the only change needed on flytekit side?

@kumare3
Copy link
Contributor

kumare3 commented Nov 19, 2020

lgtm

@EngHabu EngHabu merged commit cc9bb01 into annotations Nov 19, 2020
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