-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fixes in support of configuration execution which call plugins directly (i.e. not via CLI) #2036
Conversation
@@ -26,25 +26,24 @@ def __init__(self, attributes: List): | |||
self.attributes = attributes | |||
|
|||
def process( | |||
self, *cubes: Union[Cube, CubeList], template_cube: Union[Cube, CubeList] | |||
) -> Union[Tuple[Union[Cube, CubeList]], Cube, CubeList]: | |||
self, *cubes: Union[Cube, CubeList]) -> Union[Cube, CubeList]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally I would define this as:
(template_cube, *cubes)
However, this would mean requiring people to swap the order of edges defined in their configurations - a cause of frustration for people migrating away from the CLI I'm sure.
4fb713e
to
be0031a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree the template cube might be better placed first in the args, but if that is harder for people to adopt, fair enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good. Tests pass.
Motivation
Summary of changes
CopyAttributes
bad arguments passing (template cube).Issues