Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#1,556 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
570

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

QueryaHub/Querya-Desktop 的其他 Issue

查看 QueryaHub/Querya-Desktop 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。