Project duplication mode - UI vs. API

Solved!
Marlan
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

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

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
Author

This is great, @ZachM - thank you!

Marlan

0 Kudos

Labels

?

Setup info

?
A banner prompting to get Dataiku