Replies: 6 comments 13 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.
-
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.
-
Proposal: Unifying
modular_pipelines.py
andpipeline.py
Summary
This proposal suggests merging the functionality of
modular_pipelines.py
intopipeline.py
to align with the design pattern used innodes.py
. Innodes.py
, theNode
class and thenode()
function coexist, wherenode()
simply creates an instance ofNode
.Proposed Changes
pipeline()
function intopipeline.py
, ensuring it instantiates aPipeline
object directly.Pipeline
to 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
Pipeline
with the existingNode
design 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.py
topipeline.py
Pipeline
classmodular_pipelines
module and it's methodsBreaking changes on develop
modular_pipelines.py
pipe
becomesnodes
)ModularPipelineError
toPipelineError
11 votes ·
Beta Was this translation helpful? Give feedback.
All reactions