Skip to content

ref(flask): Drop send_default_pii support - #7832

Open
pabloDeputter wants to merge 2 commits into
major/3.0from
pablo/flask-drop-pii-support
Open

pabloDeputter wants to merge 2 commits into
major/3.0from
pablo/flask-drop-pii-support

Conversation

@pabloDeputter

Copy link
Copy Markdown
Member

Description

Remove send_default_pii support from Flask.

Issues

Resolves #7590

login_manager = LoginManager()
login_manager.init_app(app)

# install `LoginManager` with user loader to avoid Flask-Login's

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise data_collection={} would resolve to {"user_info": True} meaning that it will try to access flask_login.current_user and raise an exception.

We could also do data_collection={"user_info": False} for all tests except test_flask_login_not_configured and test_flask_login_partially_configured

@pabloDeputter
pabloDeputter marked this pull request as ready for review October 2, 2026 11:37
@pabloDeputter
pabloDeputter requested a review from a team as a code owner October 2, 2026 11:37
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 57276 passed | ⏭️ 2727 skipped | Total: 60003 | Pass Rate: 95.46% | Execution Time: 160m 60s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -79316
Passed Tests 📉 -74822
Failed Tests 📉 -1
Skipped Tests 📉 -4493

➖ Removed Tests (1)

View removed tests
  • test_cache_spans_item_size[True]
    • File: tests.integrations.django.test_cache_module

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2078 uncovered lines.
❌ Project coverage is 90.03%. Comparing base (ffb9c2b) to head (e099a93).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.34%    90.03%    -0.31%
==========================================
  Files          202       185       -17
  Lines        26551     20849     -5702
  Branches      9856      7234     -2622
==========================================
+ Hits         23988     18771     -5217
- Misses        2563      2078      -485
- Partials      1487      1207      -280

Generated by Codecov Action

This branch has not been deployed

No deployments
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.

1 participant