Skip to content
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

Update ASGI router #644

Merged
merged 4 commits into from
Oct 23, 2022
Merged

Update ASGI router #644

merged 4 commits into from
Oct 23, 2022

Conversation

Goldziher
Copy link
Contributor

PR Checklist

  • Have you followed the guidelines in CONTRIBUTING.md?
  • Have you got 100% test coverage on new code?
  • Have you updated the prose documentation?
  • Have you updated the reference documentation?

This PR removes the dependency on Starlette to handle "lifespan" events. Its part of #612

@Goldziher Goldziher added Enhancement This is a new feature or request starlette-migration labels Oct 22, 2022
@Goldziher Goldziher added this to the starlette-migration milestone Oct 22, 2022
@Goldziher
Copy link
Contributor Author

related to #634

* added cookie parser

* address review comments

* Replace get name (#646)

* add get_name helper

* added helper to handle enum

* update enum safeguard

* Removed starlette HTTPException as code dependency (#647)

* removed starlette HTTPException as code dependency

* address review comments
@Goldziher Goldziher merged commit 6beddd2 into replace-response Oct 23, 2022
@Goldziher Goldziher deleted the update-asgi branch October 23, 2022 11:13
@lgtm-com
Copy link

lgtm-com bot commented Oct 23, 2022

This pull request introduces 1 alert when merging 62c0b69 into e76e6fd - view on LGTM.com

new alerts:

  • 1 for Missing call to `__init__` during object initialization

Goldziher added a commit that referenced this pull request Oct 23, 2022
* removed starlette dependency for lifespan events

* updated tests

* fix async callable

* added cookie parser (#645)

* added cookie parser

* address review comments

* Replace get name (#646)

* add get_name helper

* added helper to handle enum

* update enum safeguard

* Removed starlette HTTPException as code dependency (#647)

* removed starlette HTTPException as code dependency

* address review comments
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

99.5% 99.5% Coverage
0.0% 0.0% Duplication

Goldziher added a commit that referenced this pull request Oct 23, 2022
* removed starlette dependency for lifespan events

* updated tests

* fix async callable

* added cookie parser (#645)

* added cookie parser

* address review comments

* Replace get name (#646)

* add get_name helper

* added helper to handle enum

* update enum safeguard

* Removed starlette HTTPException as code dependency (#647)

* removed starlette HTTPException as code dependency

* address review comments
Goldziher added a commit that referenced this pull request Oct 23, 2022
* removed starlette dependency for lifespan events

* updated tests

* fix async callable

* added cookie parser (#645)

* added cookie parser

* address review comments

* Replace get name (#646)

* add get_name helper

* added helper to handle enum

* update enum safeguard

* Removed starlette HTTPException as code dependency (#647)

* removed starlette HTTPException as code dependency

* address review comments
Goldziher added a commit that referenced this pull request Oct 23, 2022
* removed starlette dependency for lifespan events

* updated tests

* fix async callable

* added cookie parser (#645)

* added cookie parser

* address review comments

* Replace get name (#646)

* add get_name helper

* added helper to handle enum

* update enum safeguard

* Removed starlette HTTPException as code dependency (#647)

* removed starlette HTTPException as code dependency

* address review comments
Goldziher added a commit that referenced this pull request Oct 23, 2022
* initial

* updated folder structure

* add file response

* added tests

* add anyio

* cleanup tests

* cleanup

* finished test coverage

* added docstrings

* updated reference docs

* updated docs

* Update docs/usage/16-templating/2-template-functions.md

Co-authored-by: Peter Schutt <[email protected]>

* Update starlite/response/base.py

Co-authored-by: Peter Schutt <[email protected]>

* addressed review comments

* cleanup imports

* updated response containers

* addressed review comment

* updated response containers missing args

* updated tests

* fix bound variable

* fixed typing

* fix bound variable

* removed constraint

* update docstrings

* update coverage

* Update ASGI router (#644)

* removed starlette dependency for lifespan events

* updated tests

* fix async callable

* added cookie parser (#645)

* added cookie parser

* address review comments

* Replace get name (#646)

* add get_name helper

* added helper to handle enum

* update enum safeguard

* Removed starlette HTTPException as code dependency (#647)

* removed starlette HTTPException as code dependency

* address review comments

* Replace background tasks (#652)

* updated background tasks

* updated test and docs

* address review comment

* fix lgtm issues and cleanup

* addressed review comments

* updated tests

Co-authored-by: Peter Schutt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This is a new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants