Repository navigation
refactor(view): remove unused view service surface - #2426
SaidAltury-ibm merged 1 commit into
Conversation
Remove exported symbols and sentinels in the public view packages that have no references in FSC or Panurus: - view.ErrPanic and view.ErrInvalidConfig: unused sentinels in errors.go. - client.MSPInfo: unused struct in client/config.go. - server.SigningIdentity (and server.Identity): unused interface in grpc/server/identity.go; server signs through sig.Signer. - server.GetService: legacy lookup function in grpc/server/service.go that panics because the service is registered via dig. (Note: web.ViewClient was already removed in hyperledger-labs#2222). BREAKING CHANGE: view.ErrPanic, view.ErrInvalidConfig, client.MSPInfo, server.SigningIdentity, server.Identity, and server.GetService are removed from the public API surface. Fixes hyperledger-labs#2020 Signed-off-by: Surbhi Agarwal <SurbhiAgarwal1@users.noreply.github.com>
|
Hey @SurbhiAgarwal1 👋 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 -- All commits have verified GPG signatures. Locked and loaded! ✅ Merge Conflicts -- No merge conflicts detected. Smooth sailing! ✅ Issue Link -- Linked to #2020 (assigned to you). 🎉 All checks passed! Your PR is ready for review. Great job! |
SaidAltury-ibm
left a comment
There was a problem hiding this comment.
Thank you @SurbhiAgarwal1 for working on this. 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. |
v0.27.0 is tagged at hyperledger-labs#2415, so everything merged after it ships in v0.28.0. The drain on shutdown (hyperledger-labs#2417) merged after the tag but was documented in the v0.26 to v0.27 guide; its operator section, metric, developer note and checklist rows move to the v0.27 to v0.28 guide, and the v0.26 to v0.27 guide is back to its state at the tag. The v0.27 to v0.28 guide gains what it left out: - the view service symbols removed in hyperledger-labs#2426 - the websocket keepalive (hyperledger-labs#2428) - channel keys on transactions sent between nodes and their routing to the local network, with driver.Channel.ChannelKey, RequireChannelKey and NewTransactionFromEnvelopeBytesOn (hyperledger-labs#2466) - Fabric-x proposal responses without namespaces being refused, and session IDs kept apart per sender (hyperledger-labs#2419) - views that stop waiting for a reply when their context ends, and session.ReadMessageWithContext (hyperledger-labs#2471) - the vault keeping a Valid status on a Busy write (hyperledger-labs#2420) - node migrate --forget-opener, exit 12 with --check --contract, which stores node migrate reaches, and the limits of queryTimeout and migrationLockTimeout It also corrects claims that did not match the code: which endorse transactions stay JSON after the contract step (keyless Fabric rows convert), that stores keep bytes they cannot convert, gob metadata the protobuf form cannot carry, SQLite locking during a step, the error a recipient responder without a signer sends, how nwo starts nodes, the connection state component on Fabric-x, and the default channel RequestRecipientIdentity verifies on. Fabric-only and Fabric-x-only items are marked as such, and the warning about new stores during a mixed-version window is stated once. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
v0.27.0 is tagged at #2415, so everything merged after it ships in v0.28.0. The drain on shutdown (#2417) merged after the tag but was documented in the v0.26 to v0.27 guide; its operator section, metric, developer note and checklist rows move to the v0.27 to v0.28 guide, and the v0.26 to v0.27 guide is back to its state at the tag. The v0.27 to v0.28 guide gains what it left out: - the view service symbols removed in #2426 - the websocket keepalive (#2428) - channel keys on transactions sent between nodes and their routing to the local network, with driver.Channel.ChannelKey, RequireChannelKey and NewTransactionFromEnvelopeBytesOn (#2466) - Fabric-x proposal responses without namespaces being refused, and session IDs kept apart per sender (#2419) - views that stop waiting for a reply when their context ends, and session.ReadMessageWithContext (#2471) - the vault keeping a Valid status on a Busy write (#2420) - node migrate --forget-opener, exit 12 with --check --contract, which stores node migrate reaches, and the limits of queryTimeout and migrationLockTimeout It also corrects claims that did not match the code: which endorse transactions stay JSON after the contract step (keyless Fabric rows convert), that stores keep bytes they cannot convert, gob metadata the protobuf form cannot carry, SQLite locking during a step, the error a recipient responder without a signer sends, how nwo starts nodes, the connection state component on Fabric-x, and the default channel RequestRecipientIdentity verifies on. Fabric-only and Fabric-x-only items are marked as such, and the warning about new stores during a mixed-version window is stated once. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
Summary
Removes exported symbols and sentinels in public view packages that have no references in FSC or Panurus, as detailed in #2020.
Decision per Symbol:
Verification
git grep -E 'ErrPanic|ErrInvalidConfig|MSPInfo|server.SigningIdentity|server.GetService|viewgrpcserver.GetService'
BREAKING CHANGE: �iew.ErrPanic, �iew.ErrInvalidConfig, client.MSPInfo, server.SigningIdentity, server.Identity, and server.GetService are removed from the public API surface.
Fixes #2020