Skip to content

Conversation

@keesvanbemmel
Copy link

This is a basic implementation for partial content extraction.

This gives the ability to exclude collections from extraction, so that large collections or sensitive collections can be excluded by the user.

@bryantgillespie bryantgillespie self-assigned this Jan 15, 2025
@bryantgillespie bryantgillespie self-requested a review January 15, 2025 12:34
@bryantgillespie
Copy link
Collaborator

Hey @keesvanbemmel - sorry it's been a minute on this. Going to dive into it this week!

directusUrl: customFlags.directusUrl,
excludeCollections: Flags.string({
char: 'e',
delimiter: ',', // Will split on commas and return an array
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delimiter solves programmatic mode

@bryantgillespie
Copy link
Collaborator

@keesvanbemmel Looks pretty solid - made a few changes and did some quick testing locally.

Published a beta for this for testing purposes...
directus-template-cli@0.6.0-beta.2

@alexvdvalk
Copy link
Collaborator

I'm seeing an issue when applying the template after i've excluded some collections. The cli still looks for those files, so we should perhaps still create the json file on extraction, but just write an empty array to it.

This also crashes if there are any relationals on the excluded collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants