Skip to content

refactor: cloud api refactor#885

Merged
dieppa merged 2 commits intomasterfrom
refactor/cloud_api_refactor
Apr 14, 2026
Merged

refactor: cloud api refactor#885
dieppa merged 2 commits intomasterfrom
refactor/cloud_api_refactor

Conversation

@dieppa
Copy link
Copy Markdown
Member

@dieppa dieppa commented Apr 14, 2026

  • refactor: cloud api
  • refactor: cloud api

@dieppa dieppa merged commit c057984 into master Apr 14, 2026
4 checks passed
@dieppa dieppa deleted the refactor/cloud_api_refactor branch April 14, 2026 15:28
dieppa added a commit that referenced this pull request Apr 15, 2026
Rename request/response/vo classes in flamingock-cloud-api so
naming is consistent and unambiguous at call sites (no more bare
TaskRequest / LockInfo that collide with internal types).

Renames (request):
- TaskRequest -> ChangeRequest
- ClientSubmission -> ClientSubmissionRequest

Renames (response):
- TaskResponse -> ChangeResponse
- ExecutionResponse -> ExecutionSummaryResponse
- ExecutionFullResponse -> ExecutionDetailResponse
- LogAuditEntryResponse -> AuditEntryResponse
- LogAuditEntryCreatedResponse -> AuditEntryCreatedResponse
- LogAuditEntryIdempotentResponse -> AuditEntryIdempotentResponse
- LockInfo -> LockInfoResponse

Renames (vo / error):
- ExecutionAction -> CloudExecutionAction
- LockStatus -> CloudLockStatus
- TargetSystemAuditMarkType -> CloudTargetSystemAuditMarkType
- TxStrategy -> CloudTxStrategy
- FlamingockError -> CloudFlamingockError

New value-object types (previously leaking from core):
- CloudAuditStatus
- CloudChangeType
- CloudRecoveryStrategy

Align request/response shapes with the new server contract
(AuditEntryRequest, ExecutionPlanRequest/Response, LockResponse,
StageRequest/Response) and drop the now-unused TaskRequest.

Add equals()/hashCode() to ClientSubmissionRequest, StageRequest,
ChangeRequest, StageResponse and ChangeResponse. These types are
transitively compared by ExecutionDetailResponse.equals(), which
delegates to Objects.equals() on its nested fields; without
structural equality on the children, server tests asserting
`responseBody shouldBe expected` failed on reference identity.
@dieppa dieppa restored the refactor/cloud_api_refactor branch April 15, 2026 22:10
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.

1 participant