Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(status-bar): 'Running query…' stays after a successful SELECT (plain row-count status line)

オープン 初心者向け
#1,556 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
79/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, flutter
領域
database, desktop

調査の方向性

まず QueryaShellStatus.reportQueryResult と、処理中メッセージの動作に関するユニットテストを読みます。issueにはメソッド名と失敗する手順が記載されています。次に GenericSqlWorkspace の結果公開経路を調べ、単純な行数メッセージが null になる仕組みを確認します。単純な行数の結果で処理中メッセージが消え、スクリプトまたは影響を受けた行のステータステキストが表示されたままになり、指定されたユニットテストが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug frontend P2 ui
Problem

After a successful SELECT the status bar keeps showing "Running query…" until the next query. It is stuck, not just late: seen 4 s after the grid had been shown.

Cause

GenericSqlWorkspace publishes the result with message: _shellMessage(session.statusLine), and _shellMessage deliberately returns null for a plain "N row(s)." status line (the counts are already on the right of the bar). QueryaShellStatus.reportQueryResult then does:

if (message != null) _statusMessage = message;   // null: keeps the old "Running query…"
_messageIsBusy = false;                          // ...and now it is no longer dropped by endBusy()

So the busy message set by beginBusy survives and is re-labelled as a normal message.

Reproduction

Demo Playground -> SQL -> SELECT * FROM orders LIMIT 200; -> F5. The grid shows 12 rows, the bar shows Running query…, 1 ms, 12 rows, 8 cols.

Fix

In reportQueryResult, take the message as given (_statusMessage = message;), or drop the busy message when message == null (if (_messageIsBusy) _statusMessage = null before the assignment). Add a unit test: beginBusy(message: 'Running query…') then reportQueryResult(message: null) leaves statusMessage == null.

Acceptance
  • Plain-count results leave no message in the bar.
  • Results with a script / affected-rows status still show their text.
  • Unit test for the sequence above.

Related: #714 (live status-bar metrics), #1481.

主要言語
Dart
スター
23
フォーク
1
平均マージ
31分
マージ済み PR(30日)
570

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QueryaHub/Querya-Desktop のほかの issue

QueryaHub/Querya-Desktop の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。