Skip to content

refactor(maintenance): isolate plan mapping and share snapshot validation text - #564

Merged
DevSkyLex merged 1 commit into
developfrom
fix/maintenance-final-sonar
Oct 8, 2026
Merged

DevSkyLex merged 1 commit into
developfrom
fix/maintenance-final-sonar

Conversation

@DevSkyLex

Copy link
Copy Markdown
Owner

The current develop analysis still flags repeated target-snapshot error text and a Maintenance plan repository with 21 methods. Share the exact snapshot message in a private constant and move plan/occurrence storage conversion into a pure mapper. The repository retains SQL, organization scope, authority locks, transactions and its explicitly wired main connection.

All five mapping bodies are byte-for-byte identical to the analyzed commit. Historical values, nullable links, retry lineage, UTC storage and the frozen calendar timezone are preserved. The public constructor and HTTP contracts are unchanged. The repository now has 16 methods including its constructor; the mapper has five.

Validation: ServiceRequest Domain 107 tests/409 assertions; Maintenance unit 440/2,532, PostgreSQL repository 7/54 and HTTP 14/153; scoped style and PHPStan pass. Both Deptrac gates and container lint pass. Independent review retained no actionable regression. Fresh CI and integrated Sonar remain required before development deployment.

Confirmed Sonar findings: php:S1192 snapshot text, php:S1448 repository responsibility. No rule, profile, severity, exclusion, suppression or issue disposition was changed. Companion web: DevSkyLex/fireguard-web#310.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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
📝 Code Review ✅ Completed 2026-10-08T21:00:11.876629Z 1f84bd6 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.

@github-actions github-actions Bot added area:tests Test-only changes risk:database Database schema, migrations, or persistence risk size:l Large PR: under 800 changed lines state:ready Ready for review labels Oct 8, 2026
@DevSkyLex
DevSkyLex merged commit cce71cf into develop Oct 8, 2026
18 checks passed
@DevSkyLex
DevSkyLex deleted the fix/maintenance-final-sonar branch October 9, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests Test-only changes risk:database Database schema, migrations, or persistence risk size:l Large PR: under 800 changed lines state:ready Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant