Bulk removal of MCP clients: filter before the transaction per client, and skip only a foreign key refusal
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 58/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C#
- Sterne
- 567
- Forks
- 107
- Ø Merge
- 1 Std. 19 Min.
- Gemergte PRs (30 T.)
- 353
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus fluentcms/FluentCMS
-
area:localization plugin type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:storage type:bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:testing type:bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:api area:publishing type:feature
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
fluentcms/FluentCMS#3473 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:storage plugin type:bug
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in fluentcms/FluentCMS
Ähnliche Issues
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently offOffenbug regression threading
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
CryptoHives/Foundation#362 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: 本地歌词翻译显示错误Offenbug need-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQEvtl. vergeben @spuddeh hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag