-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Run blocking plans via websockets #1413
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
Draft
tpoliaw
wants to merge
38
commits into
main
Choose a base branch
from
ws
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.
Draft
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
6077054
wip
abbiemery cdf023a
client wip
abbiemery a176322
use normal iter
abbiemery 477d81a
close ws
abbiemery afc87a8
add some trys
abbiemery 219b58a
unpipe
abbiemery 89a8c77
Move websocket handling into BlueapiRestClient
tpoliaw 0643d84
Send all events through websocket
tpoliaw 999784e
Split pipe subscribe handles
tpoliaw 01e5ae6
Re-use run subcommand for websockets
tpoliaw 2a119e3
Raise for connection closing pre plan completed
abbiemery 3b1d1f6
Remove run blocking from cli
abbiemery 98495ca
Catch plan key error in run_plan
abbiemery 4b7817e
Refactor event pipe handling into context manager and iterable
tpoliaw 6c9b021
Testing auth tokens
tpoliaw e89a46b
Re-use existing auth dependency for websocket endpoint
tpoliaw 154d8ae
Add user auth token in websocket client
tpoliaw 8bd4b65
Read authorization from cookie as well as header
tpoliaw 4408ecd
Add user agent to websocket request
tpoliaw 3049944
Add user agent to all requests
tpoliaw ff8d916
Use new fedid dependency for user name
tpoliaw 12d9623
Test auth from cookie
tpoliaw 4df7628
Fix CLI event handler test
tpoliaw 9e2658e
Reinstate _valid_return check
tpoliaw 23ed486
Use versioned api for websockets
tpoliaw 431332f
Add type annotation to unpipe
tpoliaw a25cd56
Move ws endpoint to v2 api
tpoliaw 793182d
Use Depends for header and cookie
tpoliaw f8db53d
Add sub-protocol to ws communication
tpoliaw de2fea2
Used configured host for websockets
tpoliaw d3db28a
Add debug logging of all websocket traffic
tpoliaw f22ea82
Include connection info in logging
tpoliaw 0fccf70
Split receive logging by type
tpoliaw 4bfad5e
Correct typing in rest run_blocking
tpoliaw b8bb5f9
Use rstrip instead of removesuffix to remove multiple trailing slashes
tpoliaw b73fc3e
Redact auth tokens in websocket logging
tpoliaw 8413977
Use send_text instead of send json
tpoliaw 11b43f8
Improve error handling
tpoliaw 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
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.
Uh oh!
There was an error while loading. Please reload this page.