โ04-27-2017 10:04 PM
Hi,
We have a common Error Handler pipeline which we are developing for use across all projects. When I create a new version of the Error Handler, I donโt want to just update it directly in our DEV environment as other developers will be inconvenienced if it breaks their pipelines.
I can create a separate copy (e.g. โError Handler Newโ) and then ask each project to migrate across to it - however then we end up with all projects pointing at โError Handler Newโ and there is no easy way to rename this back to โError Handlerโ without asking every project to repoint their pipelines again.
We could just incrementally name the common pipelines (e.g. โError Handler v1โ, โโฆv2โ, โโฆv3โ, etc.) however weโd prefer not to as weโd rather manage versions in our source code repository, not in Snaplogic.
Any suggestions of how to better manage the introduction of new versions of common pipelines?
Thanks,
C.J.
โ04-28-2017 11:22 AM
I would argue that using pipeline names with a version number (e.g. โError Handler v1โ) is a reasonable approach if you think about those pipelines as the released software and not the original source code. In other words, you would have an โError Handlerโ source pipeline where you made changes. Then, when you were satisfied with the state of the pipeline, you would make a copy and add the version number to the name.
To make it easier to consume common pipelines, you can put the version number in a pipeline parameter and then use an expression in the PipeExec to compute the path to the common pipeline. That way you would only have to change the pipeline parameter to do an upgrade. You could take it a bit further and leverage an expression library that contained the paths to the common pipelines so that configuring the PipeExec is just a matter of setting the path to โlib.common.error_handler_pathโ.
โ04-30-2017 05:34 PM
Thanks for your reply - some really good suggestions in there so weโll try some different approaches out.
โ06-06-2017 01:56 AM
Hello CJ,
Is it possible for you to share the common error handler pipeline ? Weโre also in the process of creating one for our project, we can leverage it as best practice suggestion ๐
Best,
Yashu Vyas
โ06-06-2017 03:35 PM
Yashu,
Iโve posted this in a separate topic for visibility, you can find it here: Common Error Handler
Cheers,
C.J.