Skip to content

Conversation

@romain-intel
Copy link
Contributor

No description provided.

@romain-intel
Copy link
Contributor Author

Has a purposeful bug to test something :)

metaflow/cli.py Outdated
# We can now set the the CONFIGS value in the flow properly. This will overwrite
# anything that may have been passed in by default and we will use exactly what
# the original flow had. Note that these are accessed through the parameter name
# We need to save the "plane-ness" flag to carry it over
Copy link
Collaborator

Choose a reason for hiding this comment

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

plain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The term felt a bit flat ... :). I'll fix :)

Flow decorators were not properly merged in the case of multiple
inheritance. For example:

@project(name="foobar")
class A(FlowSpec):
  pass

class B(A):
  pass

class C(B):
  pass

Would result in the `project` decorator being included twice.

This PR fixes this behavior and should support any arbitrary inheritance
pattern. It also cleans up _flow_state (moving _flow_decorators into it)
and fixes some other corner cases (I think). In particular, configs are now
no longer merged as they are naturally inherited.
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