Replies: 8 comments 14 replies
-
|
One question that is not entirely clear to me, does this plan (after the breaking changes in
|
Beta Was this translation helpful? Give feedback.
-
|
Agree with the proposed changes :) |
Beta Was this translation helpful? Give feedback.
-
|
I agree with the changes. I just want to ask a clarification question: am I right in thinking that the |
Beta Was this translation helpful? Give feedback.
-
|
agree with the changes! |
Beta Was this translation helpful? Give feedback.
-
|
Agreed! |
Beta Was this translation helpful? Give feedback.
-
|
In general, agreed that it would be good to remove the longer modular pipeline import and consolidate the functionality. However, I have a few thoughts and/or questions:
|
Beta Was this translation helpful? Give feedback.
-
|
I don't think this is a good idea for multiple reasons:
Before we go with this suggestion, can we get a few valid reasons why this is necessary? In general it will be a good practice to always discuss breaking changes (or preludes to breaking changes), especially major ones like this one, to be reasoned from the principle: It's a no, until you prove that yes is worthwhile. At this point, after nearly 7 years of history using lowercase, I think it's a bit too late to vote entirely based on preference (as none of the benefits listed are real benefits or explained concretely enough, so the only reason I see for this change is personal preferences). PS: My argument mainly focuses on |
Beta Was this translation helpful? Give feedback.
-
|
Closing this discussion as the changes have been implemented and released in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal: Unifying
modular_pipelines.pyandpipeline.pySummary
This proposal suggests merging the functionality of
modular_pipelines.pyintopipeline.pyto align with the design pattern used innodes.py. Innodes.py, theNodeclass and thenode()function coexist, wherenode()simply creates an instance ofNode.Proposed Changes
pipeline()function intopipeline.py, ensuring it instantiates aPipelineobject directly.Pipelineto accept the same arguments aspipeline(), includingnamespace,inputs,outputs, andparameters._map_nodes()as a helper function to handle namespace mapping forinputs,outputs, andparameters, maintaining clarity and separation of concerns.Note
After discussing further, it was decided not to remove the
pipeline()andnode()functions. While these methods aren't doing much more than instantiating the class objects, removing them will be a completely unnecessary breaking change and something that will affect a lot of users.Benefits
Pipelinewith the existingNodedesign pattern, improving consistency.Context
#2805
POC/Spike
#4563
(this is not meant to be merged as is, but to show what the proposal will approximately look like)
Deprecation plan
Non breaking changes on main
modular_pipelines.pytopipeline.pyPipelineclassmodular_pipelinesmodule and it's methodsBreaking changes on develop
modular_pipelines.pypipebecomesnodes)ModularPipelineErrortoPipelineError11 votes ·
Beta Was this translation helpful? Give feedback.
All reactions