Bulk removal of MCP clients: filter before the transaction per client, and skip only a foreign key refusal
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Start with src/FluentCMS.Core/Identity/Oidc/McpClients.cs and trace RemoveOpenApprovedAsync and RemoveUnusedAsync, focusing on where the span and open-approved filter are applied and how save failures are handled. Add tests that count which clients the query touches and confirm only a foreign key refusal is skipped; other save failures should propagate. Done when both behaviors are covered and the bulk removal still respects the 100-client ceiling.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-ups of the bulk removal of self-registered MCP clients (#3397, #3434), found in its second review. src/FluentCMS.Core/Identity/Oidc/McpClients.cs.
- The span is applied after a transaction is opened per client.
RemoveOpenApprovedAsyncopens anIdentityChangestransaction and reads again every client the open policy approved, those outside the span included. The ceiling of 100 bounds the deletes, not the scan: a call costs up tomaxClients(which can be set to 100000) empty transactions. A cost, not a wrong answer. - Any save failure is taken as "a consent arrived".
catch (DbUpdateException)in the bulk removal and inRemoveUnusedAsynctakes every failure of the save, a failed outbox write included, as the foreign key refusal it was written for. A failure that lasts would answer 200 with{ removed: 0, more: false }and one warning 9009 per client.
Wanted
- The span and the open-approved filter applied in the query, so that a call touches only its candidates, with a test that counts.
- Only a foreign key refusal skipped; another failure thrown, with a test.
Bundle 26.
- Ngôn ngữ chính
- C#
- Star
- 567
- Fork
- 107
- Merge trung bình
- 1 giờ 19 phút
- Pull request đã merge (30 ngày)
- 353
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 fluentcms/FluentCMS
-
area:localization plugin type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:testing type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:api area:publishing type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
fluentcms/FluentCMS#3473 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage plugin type:bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently offĐang mởbug regression threading
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
CryptoHives/Foundation#362 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: 本地歌词翻译显示错误Đang mởbug need-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQCó thể đã có người làm @spuddeh đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày