Change Code Env while duplicating the project

lucifer20
lucifer20 Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 4

Hello,

We'd like to duplicate projects and with the duplication we want to change the code env in project. I'm using a python code to automate this process. The duplication of the projects works as desired by using the project.duplicate() function, but the remapping of the code envs is not performed.

  • remapping (dict) – dict of connections to be remapped for the new project (defaults to {})

is one of the parameters of the function. How can we remap the Code Envs using this parameter?

Answers

  • importthepandas
    importthepandas Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 115 Neuron

    The duplicate method doesn't support this AFAIK. But you could easily build into your project duplication routine the change of the project's default code envs through the Python API and project settings.

Setup Info
    Tags
      Help me…