databricks-cli icon indicating copy to clipboard operation
databricks-cli copied to clipboard

Added new 'AUTO' format to workspace CLI to allow importing extra files types

Open osuleiman opened this issue 2 years ago • 10 comments

This is a minimalistic update to allow the new format 'AUTO' to be used which is available on the [REST API](https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/workspace#notebookexportformat:~:text=Description-,AUTO,-(Public%20Preview) as part of the release of workspace files.

This update will allow the importing of all file formats and not only the initial list of files (SOURCE, HTML, JUPYTER, DBC).

Introduced the addition of the flag "are_workspace_files" or "wf" for import_dir command to help switch between current functionality, and the importing files within a directory using their original extension.

image

osuleiman avatar May 17 '23 10:05 osuleiman

Man, great PR! This will help a lot users that wants to keep .py module files with their own extension.

gdaiha avatar May 22 '23 15:05 gdaiha

+1 This PR is needed ! Thanks :)

adminsoyhuce avatar May 30 '23 13:05 adminsoyhuce

Thanks !

MathisFasolo1 avatar May 31 '23 07:05 MathisFasolo1

Yep I need this as well.

rboyes avatar Jun 23 '23 16:06 rboyes

This is really important. Trying to move init-scripts files from DBFS to Workspace, but can't do it programmatically. Have several scripts that are uploaded from an automated pipeline, which are now being uploaded manually. Not optimal at all.

wagnerbsouza avatar Jul 06 '23 12:07 wagnerbsouza

hello @infarejf any chances to have this PR reviewed ? :) Thanks

adminsoyhuce avatar Aug 02 '23 15:08 adminsoyhuce

hello @infarejf any chances to have this PR reviewed ? :) Thanks

Hi, I see that I approved the changes on July 6th, but that was not intentional and I was not aware of this. Can you please defer the review to someone else? Thanks. Br Jesper

infarejf avatar Aug 07 '23 07:08 infarejf

@pietern Would you be able to help with the reviewal of this PR?

osuleiman avatar Aug 10 '23 13:08 osuleiman