-
-
Notifications
You must be signed in to change notification settings - Fork 256
Revamp NetworkController RPC endpoint events #7166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mcmire
wants to merge
35
commits into
main
Choose a base branch
from
update-network-controller-rpc-endpoint-events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cca8f81
Extend createServicePolicy to support live network status
mcmire 6a3cff1
Fix tests
mcmire c08f398
Add more tests
mcmire 5e0e3e1
No need for getLastInnerFailureReason
mcmire e2eba7a
Fix an issue with onAvailable
mcmire 246b2b5
Reduce the diff
mcmire 199bb79
Fix tests
mcmire ff6d832
Use a quasi-enum for the availability status
mcmire fa66813
Fix test
mcmire 9d090e9
Revamp NetworkController RPC endpoint events
mcmire 0da865b
Remove this comment
mcmire b3909af
Add 'degraded' status
mcmire 6b628d7
Use similar terminology as in createServicePolicy
mcmire 4a3985a
Merge branch 'update-create-service-policy' into update-network-contr…
mcmire 2d38446
Adjust createServicePolicy as well
mcmire 3d8da80
Adjust createServicePolicy as well
mcmire 7860897
Merge branch 'update-create-service-policy' into update-network-contr…
mcmire f67839a
Update some of the terminology
mcmire 110cb0b
Update more of the terminology
mcmire b16597a
RpcEndpointUnvailable -> RpcEndpointUnavailable
mcmire 137c3d7
Merge branch 'main' into update-network-controller-rpc-endpoint-events
mcmire cb498e3
Address Cursor comment
mcmire cdd8491
Make the RPC endpoint event tests more realistic, and address Cursor …
mcmire 73017d1
Reword JSDoc for events, remove endpointUrl from chainUnavailable event
mcmire 7de4def
Merge branch 'main' into update-network-controller-rpc-endpoint-events
mcmire 026ce00
Use the primaryEndpointUrl from the Cockatiel event in the messenger …
mcmire 0e13332
Merge branch 'main' into update-network-controller-rpc-endpoint-events
mcmire 74d9d0f
Remove RpcService.getLastInnerFailureReason, use lastError directly
mcmire bbbfa9c
Remove redundant tag in log
mcmire 4f9d84b
data -> context
mcmire 1862024
Remove unused utility type
mcmire 2f29875
Tweak log statement
mcmire 827696f
Tweak comment
mcmire 72de1d6
Revert log change
mcmire 0f55384
Add comment for why we are ignoring 'isolated'
mcmire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing endpointUrl in chain unavailable event payload
The
NetworkController:rpcEndpointChainUnavailableevent payload type definition and usage omit theendpointUrlproperty. This is inconsistent with all other similar events (ChainDegraded,ChainAvailable,Unavailable) which include it, and contradicts the PR discussion implying uniform payloads. IncludingendpointUrlis useful for identifying the specific failover endpoint that caused the chain to break.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentional, as per the discussion above.