Repository navigation
refactor: Break out endpoint's business logic - #2676
Merged
hampuslavin merged 30 commits intoAug 30, 2024
Merged
Conversation
hampuslavin
force-pushed
the
hl_test_framework_part1
branch
from
August 27, 2024 12:40
46b6267 to
7c85c9f
Compare
hampuslavin
marked this pull request as ready for review
August 27, 2024 13:36
Isakdl
reviewed
Aug 27, 2024
Isakdl
left a comment
Collaborator
There was a problem hiding this comment.
Always nice to break things out! :) Very nice improvements for the code base.
I have a few thoughts and comments.
SandPod
reviewed
Aug 27, 2024
SandPod
left a comment
Contributor
There was a problem hiding this comment.
A couple of comments and questions.
Overall, it looks good!
Leaving the session logging thoughts to Isak since he has been reworking that a bit.
hampuslavin
force-pushed
the
hl_test_framework_part1
branch
from
August 28, 2024 09:09
ab90839 to
5aa316c
Compare
hampuslavin
force-pushed
the
hl_test_framework_part1
branch
from
August 28, 2024 09:10
5aa316c to
dd04aa9
Compare
hampuslavin
commented
Aug 28, 2024
4 of 6 tasks
hampuslavin
commented
Aug 28, 2024
SandPod
reviewed
Aug 28, 2024
SandPod
left a comment
Contributor
There was a problem hiding this comment.
A couple of additional comments.
Most importantly we need to remember to close the session in all cases if a call fails.
The idea is that these should be able to validate an arbitrary amount of things and own all business logic for endpoints. Therefore it is clearer and more future proof to be intentionally opaque. Together with the new return type `MethodCallContext`, it should be clear to the user of this function what the intent is.
hampuslavin
force-pushed
the
hl_test_framework_part1
branch
from
August 29, 2024 14:36
e2874a9 to
0644420
Compare
SandPod
reviewed
Aug 29, 2024
SandPod
left a comment
Contributor
There was a problem hiding this comment.
One last critical thing around the session.
SandPod
approved these changes
Aug 30, 2024
SandPod
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
Left two minor non blocking NIT suggestions you are free to discard if you don't agree with them.
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
Endpoint:handleStreamMessagemethod (to-be deprecated at some point)Changes
Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.