Ignore a stale Dashboards load failure after a reset

Open Beginner friendly
#263 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
71/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
frontend

Research direction

Start with the Dashboards definitions loader and the reset logic implicated by the issue; trace how an aborted load reaches fatal() and how a newer load is started. Make the cancelled load's later failure harmless to the current load. Done means a failure from a load aborted by reset neither displays an error nor cancels the newer load.

Written by the indexing model from the issue text.

Description

area:dashboards bug priority:low

As a homelab operator,
I want a Dashboards load that was already cancelled to have no effect,
so that signing out and back in quickly never breaks the fresh load.

Acceptance criteria

  • Given a Dashboards definitions load that was aborted by a reset, when it then fails, then it does not show an error or cancel the newer load.

Success signal: no spurious Dashboards error after a quick sign-out and sign-in.
Out of scope: other loaders.
Open questions: none.

Technical notes

Found during #188 (PR #262): the aborted definitions loader can still call fatal(), which aborts the controller of the newer load.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
40m
Merged PRs (30d)
91

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.