Skip to content

fix(sqlquery):查询页面根据表名搜索实例功能优化 - #3233

Open
zhuatuzilo wants to merge 4 commits into
hhyo:masterfrom
zhuatuzilo:patch-6
Open

fix(sqlquery):查询页面根据表名搜索实例功能优化#3233
zhuatuzilo wants to merge 4 commits into
hhyo:masterfrom
zhuatuzilo:patch-6

Conversation

@zhuatuzilo

Copy link
Copy Markdown
Contributor

基本不存在需要通过遍历所有实例来搜索表名的情况
添加一个可以选择数据库类型的下拉框,搜索之前先选择数据库类型
image

如果未选择数据库类型,就填了表名,弹出alert
image

@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: cbeb459279

ℹ️ 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 sql_api/serializers.py
Comment on lines +1641 to +1645
var dbType = $("#table-locator-db-type").val();
if (!dbType) {
alert("请选择数据库类型");
return;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里的数据库类型要改成可选, 这里设计的是你有需要可以替换实现, 比如我们企业内部是换成了 prometheus 作为数据源, 那个很快, 你们如果有关于表的元数据服务, 也可以自己实现

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

公司目前的基建还没做到元数据管理这块,当前这种实现我觉得还挺好的

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

需要改成可选, 不能做强制检查

@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: 3c5ca6be3c

ℹ️ 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 sql/templates/sqlquery.html
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.

2 participants