Move CallCancelled from core and all RPC constants into an enum#12940
Merged
michaelDCurran merged 5 commits intoOct 20, 2021
Merged
Conversation
Contributor
Author
|
Given development cycle for 2022.1 has began I'm marking this as ready for review. |
michaelDCurran
approved these changes
Oct 20, 2021
michaelDCurran
approved these changes
Oct 20, 2021
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Keeping as a draft until development cycle for 2022.1 starts.
Link to issue number:
None
Summary of the issue:
Currently various RPC constants we use are scattered through out the code base. Also some stuff is defined in core but is not related to core in any way.
Description of how this pull request fixes the issue:
CallCancelledis moved to the newexceptionsmodulecoreand fromlogHandlerare moved into an enum .Testing strategy:
Made sure that logging still works and that
CallCancelledis raised when appropriate.Known issues with pull request:
This breaks backwards compatibility - while these moves are nice from the code layout perspective I don't think they are important enough to justify providing backwards compat.
Change log entries:
For Developers
core.CallCancelledbecomesexceptions.CallCancelledRPCfromcoreandlogHandlerare moved intoRPCConstants.RPCenum.Code Review Checklist: