-
Notifications
You must be signed in to change notification settings - Fork 1
Add Middleware Support for OperationHandlers #33
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
7ee50fd
Add abstract base class and a no op implementation to enable task can…
VegetarianOrc dbaca99
fix some linter errors
VegetarianOrc 847d9cb
Some PR feedback. Up min python version to 3.10
VegetarianOrc 13fde5b
Update some docs to more clearly highlight expected behavior of opera…
VegetarianOrc b18edcc
Simple logging interceptor working with an InterceptedOperationHandle…
VegetarianOrc 0f76a23
Update test to confirm interceptors are applied in the order provided…
VegetarianOrc 40b4eb3
Do some renaming. Add some doc strings. remove type aliases that woun…
VegetarianOrc 139173b
Remove request_deadline as that's part of a different PR
VegetarianOrc 6561cd3
remove some unused imports
VegetarianOrc 0c8100e
Use public export in tests
VegetarianOrc 0d37c34
Fix some linter errors
VegetarianOrc 60ef746
use cancellation in tests after rebasing to support new python
VegetarianOrc be5d42a
fix docstring errors
VegetarianOrc e66c5fc
merge main
VegetarianOrc 2935dbc
rename interceptor to middleware. Expose operation context to middleware
VegetarianOrc 74ca843
fix formatting and linter errors
VegetarianOrc 835d43d
Remove return repetitive types in OperationHandler.start. Make Operat…
VegetarianOrc 4205c93
Move deploy-docs to it's own workflow that runs on push to main
VegetarianOrc d933f83
Fix workflow name in deploy-docs
VegetarianOrc 96ddecf
export LazyValueT and Serializer from _serializer.py
VegetarianOrc 59c96d8
remove the work 'docs' from the 'lint-test' job
VegetarianOrc 5f2a399
Rename AwaitableOperationHandler to MiddlewareSafeOperationHandler
VegetarianOrc ae3b58f
Run formatter
VegetarianOrc e880657
Merge branch 'main' into interceptors
VegetarianOrc b42c0e9
remove generic args in MiddlewareSafeOperationHandler since it by def…
VegetarianOrc 0f37ce8
Finish removing generic args from MiddlewareSafeOperationHandler
VegetarianOrc bde8337
Update old reference from 'interceptors' -> 'middleware'
VegetarianOrc 875e2ea
Remove _all_ reference to interceptors
VegetarianOrc 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Deploy Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| deploy-docs: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| python-version: '3.10' | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync | ||
|
|
||
| - name: Build API docs | ||
| run: uv run poe docs | ||
|
|
||
| - name: Upload docs to GitHub Pages | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: apidocs | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| uses: actions/deploy-pages@v4 |
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.