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

Add async support to middleware #1147

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

Taikono-Himazin
Copy link
Contributor

Added middleware Async support.
I tried using it at hand, and it seems to have no problems. The existing pytest is also passing.

However, I wasn't sure how to add documentation and tests.
I would like to know if you know how to switch between Django's Async mode and Sync mode, and how to run pytest while switching between Async mode and Sync mode.

Related issue

@krystofbe
Copy link

I've tested this in my async views and it works like a charm!

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (2ee7ea1) 94.35% compared to head (6f2584b) 93.56%.
Report is 6 commits behind head on master.

Files Patch % Lines
axes/middleware.py 33.33% 8 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1147      +/-   ##
==========================================
- Coverage   94.35%   93.56%   -0.80%     
==========================================
  Files          35       35              
  Lines        1151     1165      +14     
  Branches      211      215       +4     
==========================================
+ Hits         1086     1090       +4     
- Misses         49       57       +8     
- Partials       16       18       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aleksihakli aleksihakli merged commit 9550785 into jazzband:master Dec 27, 2023
19 of 20 checks passed
@aleksihakli
Copy link
Member

Thank you for the PR @Taikono-Himazin

This has been released as part of version 6.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants