Dbms::spec panics if a preset key names no engine
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by reading the Dbms::spec lookup and the preset settings code moved in #582; the issue does not name file paths or tests. Check how Dbms words and engine specs are defined, then add a conformance test that fails when any word lacks a spec, or make the lookup return None and fall back to defaults. Done when the missing-spec case is covered by a test and fails in CI instead of panicking at runtime.
Written by the indexing model from the issue text.
Description
Every preset key names an engine today, so nothing panics now. But a future Dbms word without an engine spec would make Dbms::spec panic when the preset settings are read.
Plan
- Check in the conformance tests that every
Dbmsword has an engine spec, or have the lookup answerNoneand fall back to the defaults. - Pin it with a test, so that adding a
Dbmsword without a spec fails in CI, not at run time.
History
- Found while moving the preset settings into the session rules (#582, part of #353).
- Dominant language
- Rust
- Stars
- 174
- Forks
- 8
- Avg merge
- 4h 30m
- Merged PRs (30d)
- 308
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from DokaDev/datarig
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
internal
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 77/100
DokaDev/datarig#610 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/q2#1446 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ProvableHQ/snarkOS#4817 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
facebookexperimental/reverie#193 ·
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pbakaus/impeccable#1748 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
farion1231/cc-switch#10196 ·
Maintainers usually reply within 1 day