jamesplease / jamesplease/api-pls
Generate migrations from resource definition diffs
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Eventually, I'll need to generate migrations from changes to the resource model. Resource models can be represented by JSON, so this is a two step process:
1. Have both old and new resource model
2. Diff them
3. Interpret diff, creating migration file from it
4. Eventually, applying the migration
Some tools that may help with this:
https://github.com/chbrown/rfc6902
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
Start by locating the resource-model representation and migration entry points, then review the referenced rfc6902 library for comparing old and new JSON definitions. Done means a defined resource diff can be interpreted into a migration file; applying migrations is explicitly a later step.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100