Skip to content

Fix query status not persisting when switching between queries#293

Merged
morishin merged 1 commit intomasterfrom
fix-query-status
Dec 18, 2025
Merged

Fix query status not persisting when switching between queries#293
morishin merged 1 commit intomasterfrom
fix-query-status

Conversation

@morishin
Copy link
Copy Markdown
Collaborator

Fix query status not persisting when switching between queries

Fixed an issue where query execution status was lost when switching between queries during execution.

Problem

When executing Query A and switching to Query B, then back to Query A, the execution status was lost (Cancel button reverted to Execute button, working status disappeared).

Root Cause

QueryAction.selectQuery() reloaded query data from the database on every switch. Runtime state (status: "working" and executor object) only exists in memory, so database data overwrote the running state.

Solution

Modified QueryStore.selectQuery reducer to preserve runtime state (status and executor) from memory while updating other data from database.

This ensures:

  • Query results are loaded fresh from database
  • Runtime status persists across query switches
  • Cancel button works correctly when returning to running queries

Load query data from database but preserve runtime state (status and executor) from memory store to maintain execution state across query switches.
@morishin morishin merged commit 81d4d09 into master Dec 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant