Changed annotation from app.oam.dev/autoRevision to
policy.oam.dev/autoRevision to better indicate its purpose and
prevent misuse in other areas of the codebase.
This annotation specifically controls whether application-scoped
policy transforms should create new ApplicationRevisions.
Updated:
- labels.go: Changed constant value
- devlogs: Updated all references in documentation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
When policies retrigger with autoRevision=true, components were not
redeploying even though new ApplicationRevisions were created. The
dispatcher was comparing component properties against the NEW revision
(which already had policy transforms) instead of the PREVIOUS revision.
Changes:
- generator.go: Pass latestAppRev to generateDispatcher()
- dispatcher.go: Add previousAppRev parameter and conditional comparison
logic based on autoRevision annotation
- When autoRevision=true: Compare against previous revision to detect
policy-driven changes
- When autoRevision=false (default): Use existing logic for backward
compatibility
Added documentation noting that the default comparison logic seems
unclear and may need future simplification.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>