Repository navigation
refactor(fabric)!: remove unused placeholder types from services/state - #2092
Conversation
Delete EndorseTransaction, Bytes, QueryIteratorInterface and CommonIteratorInterface. No module in the repository references them and no implementation of either iterator interface exists. Document the remaining state interfaces and Vault.GetStateCertification. Closes hyperledger-labs#2015 BREAKING CHANGE: state.EndorseTransaction, state.Bytes, state.QueryIteratorInterface and state.CommonIteratorInterface are removed. Use any or *endorser.Transaction for EndorseTransaction and []byte for Bytes; the iterator interfaces have no replacement. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
|
Hey @mbrandenburger 👋 thanks for the PR! This comment updates automatically as you push changes -- think of it as your PR's live scoreboard! PR Checks✅ DCO Sign-off -- All commits have valid sign-offs. Nice work! ❌ GPG Signature -- Heads up! The following commits don't have a verified GPG signature:
You'll need to sign your commits with GPG (e.g. ✅ Merge Conflicts -- No merge conflicts detected. Smooth sailing! ✅ Issue Link -- Linked to #2015 (assigned to you). ⏳ All checks must pass before this PR can be reviewed. You've got this! |
SaidAltury-ibm
left a comment
There was a problem hiding this comment.
Thank you @mbrandenburger , LGTM
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Summary
state.EndorseTransaction,state.Bytes,state.QueryIteratorInterfaceandstate.CommonIteratorInterfacefromplatform/fabric/services/state. No module in the repo references them, and neither iterator interface has an implementation.Serializable,State,AutoLinearState,EmbeddingState,LinearState.SetLinearID) and toVault.GetStateCertification.Closes #2015
Delete or deprecate
The types are deleted now (
refactor(fabric)!:with aBREAKING CHANGE:footer) rather than deprecated first. #2081 removed unused types the same way, and no downstream use exists: Panurus importsfabric/services/stateonly inintegration/token/common/sdk/fxdlog/sdk.go, and that file uses onlystate.VaultService.CommonIteratorInterfacegoes in this PR as well, since nothing references it onceQueryIteratorInterfaceis removed.Migration: use
anyor*endorser.TransactionforEndorseTransactionand[]byteforBytes. The iterator interfaces have no replacement.Test plan
go vet ./...in all four modules (root,integration, libp2p host,cc/query)go test ./platform/fabric/services/state/...make checks