directus-labs / directus-template-cli

Apply "templates" to a new, empty Directus project.
MIT License
88 stars 15 forks source link

Granular selection of elements to grab. #39

Closed monomango-wieland-hilker closed 2 months ago

monomango-wieland-hilker commented 1 year ago

This PR implements a granular choise of which elements to extract from a project. They are grouped in to elements that do in fact make sense. i.E. Roles and Permissions should always be fetched together.

The adminRole will be fetched non the less, as there are several elements that do rely on it.

Updating settings might fail, when content (including files) is not fetched. Same should be true for users which rely on avatars or similiar. (User should not be pushed anyway imho.)

bryantgillespie commented 2 months ago

Closing this one in favor of #63 For now, we're only supporting partials on the apply. We may add support for extract in the future.