Bulk removal of MCP clients: filter before the transaction per client, and skip only a foreign key refusal
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 58/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C#
- Estrelas
- 567
- Forks
- 107
- Merge médio
- 1h 19min
- PRs com merge (30d)
- 353
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de fluentcms/FluentCMS
-
area:localization plugin type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area:storage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
Mantenedores costumam responder em até 1 dia
-
area:testing type:bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
area:api area:publishing type:feature
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
fluentcms/FluentCMS#3473 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:storage plugin type:bug
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
Todas as issues de fluentcms/FluentCMS
Issues semelhantes
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently offAbertabug regression threading
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
CryptoHives/Foundation#362 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: 本地歌词翻译显示错误Abertabug need-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
Mantenedores costumam responder em até 1 dia
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQTalvez já em andamento @spuddeh assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia