jamesplease / jamesplease/api-pls

Generate migrations from resource definition diffs

Open
#43 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.