Test: the SQLite plan snapshot can be taken before the explorer has loaded

Open Beginner friendly
#659 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
79/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust, sqlite
Domain
cli, database, testing

Research direction

Start with crates/tui/tests/integration_sqlite.rs::a_plan_is_asked_as_explain_query_plan_and_shown_as_a_tree and compare how other flows wait for or drive the explorer catalogue event before capturing a snapshot. Ensure the catalogue has loaded before taking sqlite_plan_120x40; done means the snapshot consistently shows ▸ main instead of Loading….

Written by the indexing model from the issue text.

Description

internal

crates/tui/tests/integration_sqlite.rs::a_plan_is_asked_as_explain_query_plan_and_shown_as_a_tree failed once on tests (ubuntu-latest) (PR #657, a change that touches no SQLite or explorer code): the snapshot sqlite_plan_120x40 was taken while the explorer still showed Loading… under the connection, where the stored snapshot has ▸ main.

The screen is captured before the catalogue read that fills the explorer has answered, so the test depends on timing. Plan: wait for the explorer's catalogue event (or drive it) before the snapshot, as the other flows do, so the screen is the same on every run.

Seen: run of PR #657, job tests (ubuntu-latest), 2026-12-01.

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.