• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

datatug / datatug-cli / 38857180357
100%

Build:
DEFAULT BRANCH: main
Ran 16 Oct 2026 05:49AM UTC
Jobs 1
Files 528
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Oct 2026 05:42AM UTC coverage: 99.999%. Remained the same
38857180357

push

github

web-flow
feat(ui): open a stored query result with datatug ui --result (#412)

Stacked on #411, which is stacked on #409. This branch contains their commits, so review only the commits after #411's head.

`datatug ui --result <id>` opens a result of `query run --result-id <id>` in the unified terminal workspace with the rows already loaded. Nothing is run to open it.

- `queryresults.Store.Load` reads the two files with the same checks as `Locate`: the id grammar, no link, the owner, completeness, expiry and the recorded size of `data.json`. It refuses a format version it does not know (`unsupported-version`).
- `ui --result` builds a chat RecordSet:
  - the rows come from `data.json`;
  - the DTQL comes from `meta.json`; a saved query instead uses its id, and the saved text for a saved DTQL query;
  - the parameters come from `meta.json`.
- The project comes from the result's own `db.project`, looked up only as a registered project id, at its absolute registered folder. A folder of that name in the current directory is never used. So the command works from any folder.
- `Store.Load` refuses, as `incomplete` (exit 3), a recordset without `$key` first or with a row that is not as long as its columns, and a parameter that is neither a scalar nor a set.
- Opening a result does not overwrite the saved last chat choices.
- Opening the same result twice makes two "Query result" sessions; this is left as is.
- It puts the RecordSet in a new chat session of that project, under one user line saying it was loaded from its files, and the workspace opens on it. JOIN candidates come from the source's schema, as for any chat result.
- `--as/--role/--group` name the principal for a project with policies.
- If the workspace cannot open the project, the error is shown, not the setup screen.
- Exit codes:
  - exit 3, with one path-free line: a missing, expired, incomplete or unknown-version result, or a project that is no longer registered;
  - exit 2: a result of a database op... (continued)

67248 of 67249 relevant lines covered (100.0%)

1.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38857180357.1 16 Oct 2026 05:49AM UTC 528
100.0
GitHub Action Run
Source Files on build 38857180357
  • Tree
  • List 528
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0e87de15 on github
  • Prev Build on main (#38855936804)
  • Next Build on main (#38857978601)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc