Closed BlitzJB closed 2 years ago
Merging #397 (4e13d4c) into main (b25e5cb) will decrease coverage by
0.18%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #397 +/- ##
==========================================
- Coverage 93.52% 93.33% -0.19%
==========================================
Files 35 35
Lines 1066 1096 +30
==========================================
+ Hits 997 1023 +26
- Misses 69 73 +4
Impacted Files | Coverage Δ | |
---|---|---|
flask_dance/contrib/atlassian.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/authentiq.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/azure.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/digitalocean.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/discord.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/dropbox.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/facebook.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/fitbit.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/github.py | 100.00% <100.00%> (ø) |
|
flask_dance/contrib/gitlab.py | 96.00% <100.00%> (+0.16%) |
:arrow_up: |
... and 16 more |
:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more
To comment on the failing checks, they are all depreciation warnings on _app_ctx_stack
which i imported from flask.global
to use in flask_dance.utils._lookup_app_object
, I couldn't think of a more graceful way to achieve the same. If there seem to be, please do let me know and I'll make the changes
This was in response to #396
Thanks for sending this pull request, but I ended up solving this problem a different way. According to the release notes for Flask 2.2.0, we can and should store information on the flask.g
object instead of the _app_ctx_stack
object. This also makes the change backwards-compatible for all versions of Flask that Flask-Dance supports.
I implemented that change in #398, so I'm closing this pull request. However, if your goal is compatibility with the latest version of Flask, try installing Flask-Dance 6.1.0, which I just released today with this change. If you have problems, let me know!
Due to changes from
flask 2.2.0
,_lookup_app_object
which is commonly used across all contrib modules is now depreciated. So i mimicked_lookup_app_object
fromflask 2.1.3
inflask_dance.utils
and changed imports in all contrib modules to import_lookup_app_object
fromflask_dance.utils
instead