fix(archetype): Add EXCLUDED_* constants to ForeignKeyIndexAuditIT an… - #19
Conversation
…d PrimaryKeyPresenceAuditIT * Give both generated ITs the same customization point every other example audit IT already has, instead of calling the no-exclusion overload directly. * PrimaryKeyPresenceAuditIT's EXCLUDED_TABLES is seeded with PrimaryKeyPresenceAudit.LIQUIBASE_BOOKKEEPING_TABLES rather than empty, since that default was previously applied silently by the no-arg overload. * Update CLAUDE.md so SchemaEntityValidationAuditIT is correctly named as the sole remaining example with no EXCLUDED_* constant. Refs: 18 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GgdNwS2yafWHbv3Hb425P9
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's GuideThis PR updates the generated catalog audit integration tests so they expose explicit EXCLUDED_* customization points like the other example audits, and adjusts documentation to explain the new defaults and the one remaining exception. Sequence diagram for PrimaryKeyPresenceAuditIT using explicit EXCLUDED_TABLESsequenceDiagram
participant PrimaryKeyPresenceAuditIT
participant PrimaryKeyPresenceAudit
PrimaryKeyPresenceAuditIT->>PrimaryKeyPresenceAudit: assertClean(schema, EXCLUDED_TABLES)
opt [EXCLUDED_TABLES seeded]
PrimaryKeyPresenceAuditIT->>PrimaryKeyPresenceAudit: EXCLUDED_TABLES includes LIQUIBASE_BOOKKEEPING_TABLES
end
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe archetype audit examples now use explicit exclusion sets. Foreign-key audits use an empty set, while primary-key audits exclude Liquibase bookkeeping tables. ChangesAudit exclusion configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider making
EXCLUDED_TABLESandEXCLUDED_CONSTRAINTSnon-empty examples (e.g., commented-out sample values) or clarifying in the Javadoc thatSet.of()produces an immutable set that should be replaced, not mutated, to avoid confusion for consumers of the archetype. - If these exclusion sets are intended to be reused across multiple tests in generated projects, consider making the constants package-private or public and centralizing them to avoid duplication when additional audits are added.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider making `EXCLUDED_TABLES` and `EXCLUDED_CONSTRAINTS` non-empty examples (e.g., commented-out sample values) or clarifying in the Javadoc that `Set.of()` produces an immutable set that should be replaced, not mutated, to avoid confusion for consumers of the archetype.
- If these exclusion sets are intended to be reused across multiple tests in generated projects, consider making the constants package-private or public and centralizing them to avoid duplication when additional audits are added.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
…d PrimaryKeyPresenceAuditIT
Refs: 18
Claude-Session: https://claude.ai/code/session_01GgdNwS2yafWHbv3Hb425P9
Summary by Sourcery
Introduce explicit exclusion configuration constants for primary key and foreign key index audit integration tests in the archetype, and document the intended defaults and remaining no-exclusion example.
New Features:
Enhancements:
Summary by CodeRabbit