Skip to content

Split collection content into own files #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Dominic-Marcelino opened this issue Feb 28, 2025 · 0 comments
Open

Split collection content into own files #157

Dominic-Marcelino opened this issue Feb 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Dominic-Marcelino
Copy link

Is your feature request related to a problem? Please describe.
The snapshot feature splits up the collections, fields and relations each into single files. This makes it easy to read, review and merge.
The collections content instead get's stored in a single file per collection, containing all entries. On growing content this makes it pretty hard to read and review changes.

Describe the solution you'd like
I think the collections content could be stored as a file per item (named by the id), grouped in a folders named by the collection. This would align well with the snapshots and create smaller, easier to maintain.

-- directus-config
  -- collections
    -- collection_name_1
      -- item_1.json
      -- item_2.json
   -- collection_name_2
      -- item_1.json
      -- ...
@EdouardDem EdouardDem added the enhancement New feature or request label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants