Skip to content

Refactor route policies into the V3 action layer#5242

Open
philippthun wants to merge 1 commit into
cloudfoundry:mainfrom
sap-contributions:route-policies-follow-ups
Open

Refactor route policies into the V3 action layer#5242
philippthun wants to merge 1 commit into
cloudfoundry:mainfrom
sap-contributions:route-policies-follow-ups

Conversation

@philippthun

@philippthun philippthun commented Jun 29, 2026

Copy link
Copy Markdown
Member

Move notify_diego and audit-event recording out of the model and controller into RoutePolicyCreate/Update/Destroy actions, and move the cf:any exclusivity check into the model's validate. Collapse the controller's read round-trips with an eager-loaded fetch.

Tidy the presenters and include decorators, and expand spec coverage: authorization matrix, deep body assertions, transaction-rollback paths, and FactoryBot factories for the new models.

Correct the route-policy and domain V3 docs.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun
philippthun force-pushed the route-policies-follow-ups branch 4 times, most recently from 41f4eb4 to 1482488 Compare July 14, 2026 15:11
Move notify_diego and audit-event recording out of the model and
controller into RoutePolicyCreate/Update/Destroy actions, and move the
cf:any exclusivity check into the model's validate. Collapse the
controller's read round-trips with an eager-loaded fetch.

Tidy the presenters and include decorators, and expand spec coverage:
authorization matrix, deep body assertions, transaction-rollback paths,
and FactoryBot factories for the new models.

Correct the route-policy and domain V3 docs.
@philippthun
philippthun force-pushed the route-policies-follow-ups branch from 1b84481 to d8f09ba Compare July 14, 2026 16:21
@philippthun philippthun changed the title Route policies follow ups Refactor route policies into the V3 action layer Jul 21, 2026
@philippthun
philippthun marked this pull request as ready for review July 21, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant