Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hello,
Please, I need a plugin that renames all my final files of my project DSS stored in managed filesytem and put them under this name "old name-file_today"
For example, if the name of a file is "Output-dataset", the new name will be "Output-dataset_17_02_2022"
Thank you in advance for your return,
Best regards,
Yasmine
@Yasmine ,
Iโm not clear if there is a plugin that exists that does exactly what you are trying to do. That said the Dataiku API should be able to do this with a few lines of code.
below is the documentation
https://doc.dataiku.com/dss/latest/python-api/managed_folders.html
there are a number of conversations here in the community on similar topics.
Hi Yasmine,
Renaming Datasets is not often seen as a good practice since it will break other parts of the Flow (see for example this post where a similar question was raised).
If your use-case is to somehow tag the "leaf nodes" of your Flow with the current date, you can follow the advice from the previously linked post and rely on Tags. Traversing the Flow programmatically is also possible using the corresponding Flow API.
The final result could come in the form of a Macro that would update the tags of all relevant Datasets when executed. If needed, you can automate its execution through a Scenario, e.g. to run every day.
Hope this helps!
Best,
Harizo
Hi @Yasmine
FYI dataset renaming is now natively (and safely!) supported ๐
As of version 11.2, you can rename a dataset either by right clicking on the dataset, or clicking on the dataset, and then "rename" from actions tab of the flow right panel (see screenshot)
Best,
Katie