Skip to content

🐛 Improved logic for single join model modification #1083 - #1116

Merged
Phinease merged 10 commits into
developfrom
bwq/0902_edit_model
Sep 4, 2025
Merged

Phinease merged 10 commits into
developfrom
bwq/0902_edit_model

Conversation

@Bavichi

@Bavichi Bavichi commented Sep 2, 2025 •

Copy link
Copy Markdown
Contributor

🐛 Improved logic for single join model modification #1083

  1. When modifying a single added model, the model name here should refer to the display name, as the actual model name is not allowed to be modified.
  2. After the modification is completed, add a connectivity verification button.
image image image

@Bavichi
Bavichi changed the base branch from main to develop September 2, 2025 11:49
Comment thread backend/apps/model_managment_app.py Outdated
if existing_model_by_display and existing_model_by_display["model_id"] != model_data["model_id"]:
return ModelResponse(
code=409,
message=f"Name {model_data['display_name']} is already in use, please choose another display name",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

409魔法数字,使用HTTPStatus

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

碰到了就顺手改了吧😆

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.

已修改

@@ -235,23 +235,19 @@ async def update_single_model(request: dict, authorization: Optional[str] = Head
try:
user_id, tenant_id = get_current_user_id(authorization)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

为啥测试用例里头会有接口定义,develop分支中这段代码没有地方调用,可以考虑删除

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.

已删除

@codecov

codecov Bot commented Sep 2, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread backend/apps/model_managment_app.py Outdated
Comment thread backend/apps/model_managment_app.py Outdated
Comment thread frontend/app/[locale]/setup/modelSetup/components/model/ModelAddDialog.tsx Outdated
@Jasonxia007

Copy link
Copy Markdown
Contributor
image 这里的信息有些重复了,是不是考虑去掉一些?比如绿色的状态检测结果直接显示icon?

Comment thread frontend/lib/utils.ts
Comment thread backend/apps/model_managment_app.py Outdated
@Bavichi
Bavichi requested a review from Jasonxia007 September 3, 2025 06:19
# Conflicts:
#	frontend/app/[locale]/setup/modelSetup/components/model/ModelAddDialog.tsx
#	frontend/app/[locale]/setup/modelSetup/components/model/ModelEditDialog.tsx
@Phinease
Phinease merged commit 1802400 into develop Sep 4, 2025
9 of 10 checks passed
@Bavichi
Bavichi deleted the bwq/0902_edit_model branch September 4, 2025 02:58
@Jasonxia007 Jasonxia007 linked an issue Sep 4, 2025 that may be closed by this pull request
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.

[Improvement] 前端国际化组件应取消动态拼接

6 participants