Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Project duplication mode - UI vs. API

Solved!
Marlan
Neuron
Neuron
Project duplication mode - UI vs. API

Hi all,

I'm using the API to duplicate projects (project_handle.duplicate()). There is a duplication mode argument for the duplicate method. I am trying to understand how options passed in this argument correspond to those provided in the UI.

Here's what seems clear in terms of API values for each UI option:

DSS UIDSS API
Flow onlyNONE
Uploaded files???
Required inputs???
Full duplicationFULL
Input sharingSHARING

 

According the the documentation, duplication_mode can be one of the following values: MINIMAL, SHARING, FULL, NONE. 

Does anyone know which UI option MINIMAL corresponds to? And is there another duplication mode that is not not documented (UI provides 5, doc for API lists 4)?

Thanks!

Marlan


Operating system used: Linux Red Hat

0 Kudos
1 Solution
ZachM
Dataiker
Dataiker

Hi @Marlan ,

Here's the complete list of duplication modes:

DSS UI DSS API
Flow only NONE
Uploaded files UPLOADS_ONLY
Required inputs MINIMAL
Full duplication FULL
Input sharing SHARING

 

For reference, I determined this by watching the DATA_DIR/run/backend.log file while I duplicated a project in the UI. The duplication mode that the UI uses is logged.

 

Thanks,

Zach

View solution in original post

2 Replies
ZachM
Dataiker
Dataiker

Hi @Marlan ,

Here's the complete list of duplication modes:

DSS UI DSS API
Flow only NONE
Uploaded files UPLOADS_ONLY
Required inputs MINIMAL
Full duplication FULL
Input sharing SHARING

 

For reference, I determined this by watching the DATA_DIR/run/backend.log file while I duplicated a project in the UI. The duplication mode that the UI uses is logged.

 

Thanks,

Zach

Marlan
Neuron
Neuron
Author

This is great, @ZachM - thank you!

Marlan

0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku