-
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
46
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
46 commits
Select commit
Hold shift + click to select a range
108ef4f
wip
abbiemery be1c4f1
client wip
abbiemery 344f868
use normal iter
abbiemery 7f55bcc
close ws
abbiemery b1d09a7
add some trys
abbiemery 176487c
unpipe
abbiemery 8d15f23
Move websocket handling into BlueapiRestClient
tpoliaw 07078e2
Send all events through websocket
tpoliaw 01384ac
Split pipe subscribe handles
tpoliaw d23a5c9
Re-use run subcommand for websockets
tpoliaw 787a81a
Raise for connection closing pre plan completed
abbiemery 166582f
Remove run blocking from cli
abbiemery f1fa7e3
Catch plan key error in run_plan
abbiemery 0df0c43
Refactor event pipe handling into context manager and iterable
tpoliaw ecbf7aa
Testing auth tokens
tpoliaw d491229
Re-use existing auth dependency for websocket endpoint
tpoliaw 860710d
Add user auth token in websocket client
tpoliaw 309472e
Read authorization from cookie as well as header
tpoliaw 4da76dd
Add user agent to websocket request
tpoliaw abf7054
Add user agent to all requests
tpoliaw 117bbf9
Use new fedid dependency for user name
tpoliaw 42ff1ec
Test auth from cookie
tpoliaw c093afe
Fix CLI event handler test
tpoliaw 373e08d
Reinstate _valid_return check
tpoliaw 3118ea5
Use versioned api for websockets
tpoliaw d9631ea
Add type annotation to unpipe
tpoliaw d881acd
Move ws endpoint to v2 api
tpoliaw 4d03ec3
Use Depends for header and cookie
tpoliaw 7d1dd18
Add sub-protocol to ws communication
tpoliaw ceba3f7
Used configured host for websockets
tpoliaw 0c9aab0
Add debug logging of all websocket traffic
tpoliaw d795d6c
Include connection info in logging
tpoliaw 87aeb4c
Split receive logging by type
tpoliaw 918347f
Correct typing in rest run_blocking
tpoliaw 2cf666a
Use rstrip instead of removesuffix to remove multiple trailing slashes
tpoliaw 7651f02
Redact auth tokens in websocket logging
tpoliaw 63f5c26
Use send_text instead of send json
tpoliaw dacd184
Improve error handling
tpoliaw d3dedce
Check for active task before running task
tpoliaw 9a5e461
Filter events to only relevant ones
tpoliaw e8d53d9
Logging adjustments
tpoliaw fbd145e
Exclude all private methods from blueapi_rest_client_get_methods
tpoliaw 313d183
Move ws_address method to config and deal with empty paths
tpoliaw 337c907
Add tests for websocket tracing
tpoliaw 6e0bfbe
Handle pydantic's messing up of URL paths
tpoliaw bac37dc
Extract cookies/headers from connection manually
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
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.