-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor bot management and introduce caching mechanism #7
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
Open
m-xim
wants to merge
34
commits into
main
Choose a base branch
from
develop
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.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
4ec2bac
refactor(base): deprecate _get_bot_from_request and introduce _get_bo…
m-xim 0374ace
refactor(BotConfig): enable slots in BotConfig
m-xim 0c6dc2d
refactor(token): replace direct access to _bots with bots property
m-xim 5fa99cc
fix(bot): deprecate get_bot method and introduce caching in bot manag…
m-xim 10e2aad
fix(base): update _verify_security call to be async
m-xim 8cb0e5d
fix(bot): bot caching and security verification logic
m-xim a6647ef
refactor(bot): _ensure_bot_cached
m-xim 68ca610
refactor(token): remove docstring from _ensure_bot_cached method
m-xim 6689cd8
fix(base): add warning for unconfigured security in _verify_security …
m-xim 95d5367
fix(bot): avoid creating a new Bot for each request
m-xim e2a555f
refactor(base): move warning about security in __init__
m-xim d3c776f
fix(base): _get_bot_from_request
m-xim a82ab3c
Potential fix for pull request finding
m-xim 8db5918
refactor(token): return a read-only bots using MappingProxyType
m-xim 5b6c783
fix(token): clear internal bot storage on shutdown
m-xim 849cee2
fix(base, token): handle None token case and correct bot storage refe…
m-xim 02b1096
feat!(routing): add webhook_path (ex self.path), rename webhook_point…
m-xim c1f41e3
feat(ci): add type checking step with ty
m-xim 968f654
fix(token): remove redundant bot clearing on shutdown
m-xim 425cbab
refactor!(token, base): remove deprecated methods
m-xim 66ecb5d
refactor(secret_token)!: change SecretToken from ABC to Protocol
m-xim 72d3264
fix(token): handle TokenValidationError in bot retrieval
m-xim 70a7ff5
refactor(token): use _bots attribute
m-xim dc83170
refactor(routing)!: convert methods to async
m-xim ad90c33
refactor(token): convert _get_bot_by_token to async
m-xim f2431c0
docs(README): update routing section for clarity and consistency
m-xim 8a5302c
refactor(security): rename token parameter to bot_token for clarity
m-xim 0fad9c3
Potential fix for pull request finding
m-xim 5f8ba1a
Potential fix for pull request finding
m-xim 26f04cd
refactor(secret_token): convert secret_token method to async
m-xim 9b6df43
fix(warnings): set stacklevel in security warning
m-xim b890b86
refactor(FastAPI): rename FastAPI classes to FastApi for consistency
m-xim f56c164
refactor(security): update verify method to include dispatcher for se…
m-xim 8ef42bf
refactor: standardize terminology in docstrings and update response h…
m-xim 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.