Dbms::spec panics if a preset key names no engine

Open Beginner friendly
#583 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cli, databases

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

internal

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 Dbms word has an engine spec, or have the lookup answer None and fall back to the defaults.
  • Pin it with a test, so that adding a Dbms word 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

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.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.