Skip to content

fix: CA1848 no ContractImportsController via LoggerMessage - #61

Merged
devmnsoft merged 1 commit into
codex/s00-foundationfrom
fix/ca1848-contract-imports-logger
Sep 17, 2026
Merged

devmnsoft merged 1 commit into
codex/s00-foundationfrom
fix/ca1848-contract-imports-logger

Conversation

@devmnsoft

Copy link
Copy Markdown
Owner

Motivation

O Visual Studio aponta dois erros ativos (CA1848) em src/Odca.Api/Controllers/ContractImportsController.cs linhas 44 e 51. Com TreatWarningsAsErrors=true, esses logger.LogError quebram o build da API.

O PR #60 já continha a mesma correção, mas está dirty em relação a codex/s00-foundation e mistura Worker/lockfiles. Esta entrega isola só o CA1848.

Description

  • Controller passou a partial.
  • logger.LogError(...) substituído por source generator [LoggerMessage]:
    • EventId 2101 — fuso indisponível (TimeZoneConfigurationException.Error)
    • EventId 2102 — limite local inválido (InvalidOperationException)
  • Templates, nível Error, Exception e respostas HTTP 503/422 permanecem iguais.
  • Sem mudança de rota, DTO, SQL, RLS ou permissão.
  • Sem log de conteúdo de documento.

Testing

  • Alteração cirúrgica no controller.
  • Após o merge: git pull no branch codex/s00-foundation e rebuild da API no Visual Studio.
  • O SDK não estava disponível neste ambiente remoto para dotnet build.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@devmnsoft
devmnsoft merged commit bbc5899 into codex/s00-foundation Sep 17, 2026
1 of 2 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-17T13:40:40.490946Z 36936ca PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

1 participant