Skip to content

feat: enhance query history#20554

Merged
d-bytebase merged 7 commits into
bytebase:mainfrom
ecmadao:chore/BYT-9402
Jun 10, 2026
Merged

feat: enhance query history#20554
d-bytebase merged 7 commits into
bytebase:mainfrom
ecmadao:chore/BYT-9402

Conversation

@ecmadao

@ecmadao ecmadao commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator
  • Close BYT-9402
  • Close BYT-9673
  • Close BYT-9672
  • Close BYT-9690
CleanShot 2026-06-09 at 14 46 55@2x

@ecmadao ecmadao requested a review from zchpeter June 9, 2026 06:47
@ecmadao ecmadao requested review from a team, RainbowDashy and d-bytebase as code owners June 9, 2026 06:47
@cla-bot cla-bot Bot added the cla-signed label Jun 9, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

if (await prepareQueryHistory()) return;

P2 Badge Handle query-history route changes

When a query-history URL is navigated to while SQLEditorRouteShell is already mounted (for example via an in-app router navigation to /sql-editor/projects/.../queryHistories/...), this new prepareQueryHistory branch is only reached from the mount-only bootstrap effect above. The route changes but no history is fetched and no draft tab is opened; the later URL-sync effect can then replace the deep link with the currently selected tab route. Add route-change handling for this module or otherwise force this preparation to run for query-history navigations after initial mount.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

}) => `${tab.statement}${tab.connection.instance}${tab.connection.database}`;

P2 Badge Escape the fingerprint delimiter

This template literal embeds two literal NUL bytes in the .tsx source, which makes Git and other text-processing tools classify SQLEditorRouteShell.tsx as binary (the commit diff for this file is already hidden as Bin ...). That makes future reviews, patches, and some scanners brittle; use an escaped delimiter such as \u0000 (or a structured key) so the source stays a normal text file while preserving the fingerprint behavior.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ecmadao ecmadao requested a review from boojack June 9, 2026 10:06
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
11 New issues

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0932b05979

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread frontend/src/react/components/sql-editor/SQLEditorRouteShell.tsx
@d-bytebase d-bytebase merged commit 01491ae into bytebase:main Jun 10, 2026
17 of 18 checks passed
@ecmadao ecmadao deleted the chore/BYT-9402 branch June 10, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants