directus-labs / directus-labs/directus-template-cli
processCollections doesn't update existing fields
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 191
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Inside the processCollections function, there is only logic to addNewFieldsToExistingCollection, not to update fields. It therefore doesn't allow to modify existing fields, eg their position and display/interface values.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the processCollections entry point and its existing addNewFieldsToExistingCollection path. Trace how existing collection fields are represented, then verify that template application also updates their position and display/interface values. Done means existing fields change as specified while new fields continue to be added; run the relevant repository tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100