<#7470 refactor(actions): remove GetLatestState RP...
# flyte-github
a
#7470 refactor(actions): remove GetLatestState RPC and UpdateRequest.state Pull request opened by SVilgelm Tracking issue N/A Why are the changes needed?
ActionsService.GetLatestState
and
UpdateRequest.state
were placeholders for a JSON-blob state persistence model that has since been replaced by
PluginStateService
. All callers are on the new path; the existing surface is dead code that still has to be implemented (or stubbed
Unimplemented
) by every backend. What changes were proposed in this pull request? • `flyteidl2/actions/actions_service.proto`: • Remove
GetLatestState
RPC,
GetLatestStateRequest
,
GetLatestStateResponse
. • Reserve
UpdateRequest
field tag
4
(formerly
state
) so it can't be silently reused for an incompatible field later. • `actions/service`: • Remove
GetLatestState
handler. • Drop
GetState
from `ActionsClientInterface`; rename
PutState
→
PutStatus
and drop the
stateJSON
parameter. • `actions/k8s/client.go`: remove
GetState
, simplify
PutStatus
to just update
Attempts
+
CacheStatus
(the CRD's
Status.StateJSON
field is left intact since the executor controller still writes it for observability). • Regenerate Go/Python/Rust/TS bindings and mocks. How was this patch tested? •
go build ./...
clean. •
go test ./actions/... -count=1
passes. •
golangci-lint run --fix ./actions/...
reports 0 issues. Labels • removed Setup process N/A Screenshots N/A Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs • unionai/cloud#16310 (consumer-side cleanup; will rebase on this once merged) Docs link N/A flyteorg/flyte