Skip to content

GDB-14762: Fix query abort handling#3004

Open
boyan-tonchev wants to merge 1 commit into
masterfrom
GDB-14762-fix-query-aborting-on-logout
Open

GDB-14762: Fix query abort handling#3004
boyan-tonchev wants to merge 1 commit into
masterfrom
GDB-14762-fix-query-aborting-on-logout

Conversation

@boyan-tonchev

@boyan-tonchev boyan-tonchev commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

What

When the Logout action was triggered while a query was executing, the application started the logout process immediately. This caused the header and sidebar to disappear before the user confirmed the action. Additionally, the running query was not aborted correctly.

Why

There was no mechanism to prevent event execution once an action was triggered. As a result, events such as Logout were emitted immediately, even when additional confirmation or asynchronous processing was required before executing the action.

How

Extended the EventService subscription mechanism with optional cancellation handlers.
Before an event is emitted, all registered cancellation handlers are evaluated. If any handler requests cancellation, the event is not emitted and the associated action is not executed.

Implemented cancellation handlers for query-related actions in the SPARQL editor. These handlers display the running query confirmation dialog, abort the running query when the user confirms the action, and prevent the action when the user cancels it.

Additional work

Fixes Operations links to open views in a new tab.

Checklist

  • Branch name
  • Target branch
  • Commit messages
  • Squash commits
  • MR name
  • MR Description
  • Tests
  • Browser support verified

@boyan-tonchev boyan-tonchev force-pushed the GDB-14762-fix-query-aborting-on-logout branch 2 times, most recently from 3ec2efd to beec066 Compare June 19, 2026 09:04
## What
When the Logout action was triggered while a query was executing, the application started the logout process immediately. This caused the header and sidebar to disappear before the user confirmed the action. Additionally, the running query was not aborted correctly.

## Why
There was no mechanism to prevent event execution once an action was triggered. As a result, events such as Logout were emitted immediately, even when additional confirmation or asynchronous processing was required before executing the action.

## How
Extended the EventService subscription mechanism with optional cancellation handlers.
Before an event is emitted, all registered cancellation handlers are evaluated. If any handler requests cancellation, the event is not emitted and the associated action is not executed.

Implemented cancellation handlers for query-related actions in the SPARQL editor. These handlers display the running query confirmation dialog, abort the running query when the user confirms the action, and prevent the action when the user cancels it.

## Additional work
Fixes Operations links to open views in a new tab.
@boyan-tonchev boyan-tonchev force-pushed the GDB-14762-fix-query-aborting-on-logout branch from beec066 to 451f0a3 Compare June 19, 2026 10:29
@sonarqubecloud

Copy link
Copy Markdown

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