Repository navigation
Refactor: Break out stream auth handling from transport layer - #2763
Merged
hampuslavin merged 19 commits intoSep 27, 2024
Merged
hampuslavin merged 19 commits into
hampuslavin merged 19 commits into
Conversation
SandPod
reviewed
Sep 24, 2024
SandPod
reviewed
Sep 24, 2024
SandPod
reviewed
Sep 24, 2024
hampuslavin
force-pushed
the
hl_move_stream_auth_to_endoint_dispatch
branch
2 times, most recently
from
September 25, 2024 11:29
9ad723e to
1f21dd6
Compare
hampuslavin
marked this pull request as ready for review
September 25, 2024 11:31
hampuslavin
force-pushed
the
hl_move_stream_auth_to_endoint_dispatch
branch
3 times, most recently
from
September 25, 2024 12:41
b29d11c to
69a8437
Compare
SandPod
requested changes
Sep 26, 2024
SandPod
left a comment
Contributor
There was a problem hiding this comment.
Great work!
Thanks for separating the stream manager from the protocol layer. Makes total sense 👍
I have a couple of questions and suggestions for you.
hampuslavin
force-pushed
the
hl_move_stream_auth_to_endoint_dispatch
branch
from
September 26, 2024 12:31
26d3653 to
9463b55
Compare
refactor: break out method stream manager
…d have cleaner main library
hampuslavin
force-pushed
the
hl_move_stream_auth_to_endoint_dispatch
branch
from
September 26, 2024 13:49
a5e4316 to
19b8d80
Compare
8 tasks done
SandPod
reviewed
Sep 27, 2024
SandPod
reviewed
Sep 27, 2024
SandPod
left a comment
Contributor
There was a problem hiding this comment.
Much improved code and I love how small the TestStreamManager is now thanks to this refactor.
A couple of last questions for you.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
Breaks out the revoked authentication handling of streams from the transport layer. This enables the tests to leverage the same logic and ensures the behavior is authentic in the test environment. This expanded a bit in scope when we realized it's best to refactor out the entire
_MethodStreamManagerso that the test tools can use it as well.Fixes #2739.
Changes
_MethodStreamManagerinto a public one that is uncoupled from Web Socketsserverpod_testpackage, it's tagged as@internal(which gives linter warnings) plus a comment that states it should only be used in Serverpod packages._RevokedAuthenticationHandlerto make the code more readableTestStreamManagerthat glues the generated test code together with the newMethodStreamManagerPre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.