oxidecomputer / oxidecomputer/omicron
Enforce alignment between dbinit.sql and diesel schema.rs
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
The top of "schema.rs" says these two should be aligned but nothing is enforcing that right now.
Related to https://github.com/oxidecomputer/omicron/issues/9833
This can cause a lot of hard-to-diagnose issues, as the "schema" provides Diesel's view of the world, which can be out-of-date.
Contributor guide
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 reading dbinit.sql and schema.rs, including the note at the top of schema.rs, to understand the two database representations and where they are maintained. Identify the existing database or schema validation entry points, then define the check so changes that leave the files misaligned are detected; done means alignment is enforced and the failure is actionable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100