fix(api): editing an SSO provider name returns 200 but keeps the old name
Maintainer thường phản hồi trong vòng 1 ngày
@officialasishkumar đang làm issue này rồi.
Từ ngày 7/11/2026.
- #8219 của @officialasishkumar — đang mở
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- postgresql, python
- Lĩnh vực
- authentication, backend
Hướng nghiên cứu
Bắt đầu từ OrganizationsService.update_provider trong api/ee/src/core/organizations/service.py, hàm này đặt name, slug và description lên đối tượng. Sau đó đọc OrganizationProvidersDAO.update trong api/ee/src/dbs/postgres/organizations/dao.py, hàm này chỉ ghi flags, secret_id và updated_at. Truyền ba trường đó qua và lưu chúng xuống đó. Hoàn thành khi sửa tên và đọc GET /api/organizations/providers/ trả về giá trị mới, được bao phủ bởi một bài test mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
An organization admin edits an SSO provider in Settings > Access and security and changes its name. The save succeeds with HTTP 200 and updated_at changes. But the provider list still shows the old name.
Found during the v0.128.3 staging QA in /m. The request body sent the new name, so the frontend is not the cause.
Steps to reproduce
- On an enterprise-plan organization, add an SSO provider.
- Edit it and change only the name. Save.
GET /api/organizations/providers/returns the old name.
Expected
The new name is saved and shown. The same likely applies to slug and description.
Likely cause
OrganizationsService.update_provider (api/ee/src/core/organizations/service.py) sets provider.name, provider.slug and provider.description on the object from dao.get_by_id. Then it calls OrganizationProvidersDAO.update (api/ee/src/dbs/postgres/organizations/dao.py), which loads the row again and writes only flags, secret_id and updated_at. So name, slug and description never reach the database.
Fix
Pass name, slug and description to OrganizationProvidersDAO.update and write them there. Add a test that edits the name and reads it back.
- Ngôn ngữ chính
- TypeScript
- Star
- 4.8k
- Fork
- 690
- Merge trung bình
- 23 giờ 26 phút
- Pull request đã merge (30 ngày)
- 507
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Agenta-AI/agenta
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Agenta-AI/agenta#7654 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
(bug) The Stop button disappears for a moment before an approval card showsCó thể làm lại được @rishu685 đã nhận 31 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Agenta-AI/agenta#7446 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Agenta-AI/agenta#7441 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
(bug) A failed trace summary request leaves a run duration blank until the page is reloadedCó thể làm lại được @HenryPazS đã nhận 24 ngày trước và không có pull request nào đang mở. Đang mởbug report frontend observability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Agenta-AI/agenta#7039 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug report ci/cd devops
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Agenta-AI/agenta#6967 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Agenta-AI/agenta
Issue tương tự
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openclaw/openclaw#195577 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: 对话界面点击右上角设备管理后,无法返回Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
EKKOLearnAI/ekko-studio#3729 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
Supportseal/SupportSeal-app#98 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eliasstravik/herdr-projects#845 ·
-
agents-sdk: webhooks-push.md handler reads the request body twice, so verified webhooks failĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
cloudflare/skills#279 ·
Maintainer thường phản hồi trong vòng 1 ngày