Skip to content

Create endpoint to get specific policy by type and active_from date#1210

Merged
rosalieper merged 2 commits into
mainfrom
T432339
Jul 20, 2026
Merged

Create endpoint to get specific policy by type and active_from date#1210
rosalieper merged 2 commits into
mainfrom
T432339

Conversation

@rosalieper

Copy link
Copy Markdown
Contributor

Bug: T432339

@tarrow tarrow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine to me; paired with @rosalieper on this; took a short look away and then back again.

I was happy that we reused the Resource; this feels like exactly what we intended to be possible to do.

I was also happy with our decisions to use the Validator and its safe() function.

I'm slightly less happy with the global abort(). I feel like it would have been nicer to call this on an injected Request but this does follow the very terse advice on Error Handling.

We also read about Resource Controllers and wondered if this is a pattern we ought to adopt in the future. For now we decided not to look at this further and inject another interesting but inconsistent pattern.

@rosalieper
rosalieper merged commit 365a84e into main Jul 20, 2026
4 of 5 checks passed
@rosalieper
rosalieper deleted the T432339 branch July 20, 2026 12:27
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.

2 participants