-
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
44
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
44 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 3d44096
Use Depends for header and cookie
tpoliaw c97145e
Add sub-protocol to ws communication
tpoliaw a71cdc6
Used configured host for websockets
tpoliaw 0af53a0
Add debug logging of all websocket traffic
tpoliaw 1048a2f
Include connection info in logging
tpoliaw fe66f4c
Split receive logging by type
tpoliaw d946c94
Correct typing in rest run_blocking
tpoliaw 6f0ae35
Use rstrip instead of removesuffix to remove multiple trailing slashes
tpoliaw 763e1fb
Redact auth tokens in websocket logging
tpoliaw 3b29f8e
Use send_text instead of send json
tpoliaw baee854
Improve error handling
tpoliaw 82fb6e4
Check for active task before running task
tpoliaw 17d766a
Filter events to only relevant ones
tpoliaw 40cbd59
Logging adjustments
tpoliaw f81dcbd
Exclude all private methods from blueapi_rest_client_get_methods
tpoliaw 0298e7f
Move ws_address method to config and deal with empty paths
tpoliaw 935faaf
Add tests for websocket tracing
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
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.