Skip to content

Add StatusResult type alias for consistent naming#372

Merged
ubettigole merged 1 commit into
mainfrom
abettigole/status_result
Jul 15, 2026
Merged

Add StatusResult type alias for consistent naming#372
ubettigole merged 1 commit into
mainfrom
abettigole/status_result

Conversation

@ubettigole

@ubettigole ubettigole commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Currently, the Land and Cancel controllers return a LandResult and CancelResult, respectively. The StatusResult is returning a request.CurrentState struct, which causes inconsistency in the naming convention. I'm adding a StatusResult type alias for request.CurrentState in the status controller, matching the naming convention used by other controllers.

I'm choosing to do this, rather than creating a separate entity.StatusResult struct with the same fields as request.CurrentState to avoid the duplication and boilerplate mapping code that would be required. If the desired fields in the request.CurrentState struct and Status() response diverge in the future, we can create a separate entity.StatusResult, like the other endpoints/controllers have.

Test Plan

Unit tests

Add StatusResult as a type alias for request.CurrentState in the gateway
controller, matching the naming convention used by LandResult and other
controller return types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ubettigole ubettigole requested review from a team, behinddwalls and sbalabanov as code owners July 15, 2026 00:19
@ubettigole ubettigole changed the title refactor(gateway): add StatusResult type alias for consistent naming Add StatusResult type alias for consistent naming Jul 15, 2026
@ubettigole ubettigole added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit d1a5548 Jul 15, 2026
15 checks passed
@behinddwalls behinddwalls deleted the abettigole/status_result branch July 15, 2026 00:57
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