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

Deprecate Conditions and Triggers Saved in handler Callable; Save Condition in signal.extra Instead #2608

Merged
merged 8 commits into from Dec 15, 2022

Conversation

ChihweiLHBird
Copy link
Member

@ChihweiLHBird ChihweiLHBird commented Nov 27, 2022

closes #2581

The change in last version of this PR is authored by @ahopkins. Thank you!

sanic/signals.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Base: 88.467% // Head: 88.548% // Increases project coverage by +0.081% 🎉

Coverage data is based on head (e2c3d0e) compared to base (b276b91).
Patch coverage: 71.428% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2608       +/-   ##
=============================================
+ Coverage   88.467%   88.548%   +0.081%     
=============================================
  Files           81        81               
  Lines         6694      6698        +4     
  Branches      1143      1143               
=============================================
+ Hits          5922      5931        +9     
+ Misses         531       529        -2     
+ Partials       241       238        -3     
Impacted Files Coverage Δ
sanic/signals.py 91.489% <71.428%> (-1.212%) ⬇️
sanic/server/websockets/impl.py 38.479% <0.000%> (+0.691%) ⬆️
sanic/app.py 89.799% <0.000%> (+0.728%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ChihweiLHBird ChihweiLHBird marked this pull request as ready for review December 13, 2022 23:28
@ChihweiLHBird ChihweiLHBird requested a review from a team as a code owner December 13, 2022 23:28
ahopkins
ahopkins previously approved these changes Dec 14, 2022
@ahopkins
Copy link
Member

need to fix the linting issues

@ChihweiLHBird ChihweiLHBird changed the title Save Conditions and Triggers in Dictionaries for Signal Router Deprecate Conditions and Triggers Saved in handler Function; Save Condition in signal.extra Instead Dec 15, 2022
@ChihweiLHBird ChihweiLHBird changed the title Deprecate Conditions and Triggers Saved in handler Function; Save Condition in signal.extra Instead Deprecate Conditions and Triggers Saved in handler Callable; Save Condition in signal.extra` Instead Dec 15, 2022
@ChihweiLHBird ChihweiLHBird changed the title Deprecate Conditions and Triggers Saved in handler Callable; Save Condition in signal.extra` Instead Deprecate Conditions and Triggers Saved in handler Callable; Save Condition in signal.extra Instead Dec 15, 2022
@ahopkins ahopkins merged commit 71d3d87 into main Dec 15, 2022
@ahopkins ahopkins deleted the zhiwei/method-signal-handler branch December 15, 2022 10:32
@ChihweiLHBird
Copy link
Member Author

I forgot the test case... Will add it in another PR.

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.

A signal handler cannot be a method on an object
3 participants