ynput / ayon-backend

Server codebase with API access to AYON
Apache License 2.0
22 stars 17 forks source link

Tools: Enhancements for hierarchy dump/restore #373

Closed martastain closed 1 month ago

martastain commented 1 month ago

Story

hierarchy_dump and hiererchy_restore works, but while implementing the first tools using it, i figured out certain limitations. This issue covers enhancements that should be implemented:

Anatomy

Hierarchy dump should contain a copy of project anatomy (or at least aux tables) so in the case there's for example a folder with a folderType that is not present in the target project, target project anatomy could be updated.

Include root

Additional --include-root boolean flag, that would include the folder specified with root argument in the dump (in the case it is not null)

Option to use target folder instead of zip file (for debugging)