Skip to content

OceanBase Oracle 按输入搜索过程和函数 - #11535

Closed
efeire wants to merge 8 commits into
t8y2:mainfrom
efeire:feat/11423-ob-routine-completion
Closed

efeire wants to merge 8 commits into
t8y2:mainfrom
efeire:feat/11423-ob-routine-completion

Conversation

@efeire

@efeire efeire commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refs #11423。大 schema 的独立过程和函数补全原先需要读取整个 schema;新 Agent 返回合法空结果时还可能误触发全量回退。实际界面又复现两处问题:输入带引号的 Wild%_ 名称时,服务端有候选但菜单不显示;切换 schema 后,旧请求的迟到响应会重新弹出候选。

Agent 按输入、owner 和对象类型搜索可见的独立 PROCEDURE/FUNCTION,在服务端限制候选并报告是否完整。前端正确处理带引号名称的匹配和替换范围;connection、database、catalog 或 schema 变化时立即使旧请求失效,异步完成与异常分支都不再恢复旧结果。旧 Agent 的兼容回退仍保留,新 Agent 的合法空结果直接返回。

输入+owner+对象类型 → 服务端有界搜索 → 上下文变更使旧响应失效

Evidence

Before: 输入 quoted 名称时服务端有候选但菜单不显示;切换 schema 后旧响应到达,会重新弹出不属于当前上下文的候选。

After: 最新编辑器/SQL completion 313 项通过。真实普通账号候选、中文/quoted/字面通配符、上限和点击选入验证;精确暂停真实响应后切 schema,迟到响应已送达但不重弹,当前新请求仍正确。未执行生成 SQL,自有服务和拦截清理,fixture 保留。connection/database/catalog 只有单测,完整大 schema/表视图/Oracle 回归仍待。

回归与验收范围

恢复例程与序列混合请求中的 SEQUENCE 候选,避免 Agent 和 store 两层丢弃序列补全。

验证:前端 284 项、OceanBase Agent 87 项通过;完整前端类型检查、格式和差异检查通过。

Merge Danger

Door: two-way(代码),搜索和选入不调用过程或函数。

Blast Radius: 过程和函数补全。

迟到响应可能插入错误上下文的名称,切换时必须使旧请求失效。connection/database/catalog 切换仅有单测,完整大 schema、表视图和 Oracle 回归仍待。自有服务与拦截已清理,登记的 fixture 保留供后续验收。

自动化状态与界面预览

自动预览只代表对应提交和沙盒场景,不能替代目标数据库的实库验收。


🎬 界面预览

CI 用这个 PR 的前端构建并真实运行 dbx(沙盒环境,dbx-web 后端 + 本地 SQLite 种子数据),按改动自动操作、截图和录屏 · 2ed47bf · 运行记录

⏳ 正在录制这次提交的界面改动…

@github-actions github-actions Bot added area/agents Database agents and agent runtime area/core Shared DBX core runtime area/desktop Desktop application or Tauri shell db/oceanbase-oracle Database: OceanBase Oracle Mode ui-change Changes user-visible interface, text, or visual assets labels Oct 9, 2026
@github-actions github-actions Bot added area/multiple Touches more than three repository areas and removed area/desktop Desktop application or Tauri shell area/core Shared DBX core runtime area/agents Database agents and agent runtime labels Oct 9, 2026
@efeire efeire changed the title OceanBase Oracle 独立过程函数服务端筛选补全 OceanBase Oracle 按输入搜索过程和函数 Oct 9, 2026
@efeire
efeire deployed to ui-preview October 9, 2026 18:56 — with GitHub Actions Active
github-actions Bot added a commit that referenced this pull request Oct 9, 2026
@efeire
efeire deployed to ui-preview October 9, 2026 23:24 — with GitHub Actions Active
github-actions Bot added a commit that referenced this pull request Oct 10, 2026
@efeire
efeire marked this pull request as ready for review October 10, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/multiple Touches more than three repository areas db/oceanbase-oracle Database: OceanBase Oracle Mode ui-change Changes user-visible interface, text, or visual assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant