Skip to content

ref(asgi): Drop send_default_pii support in _get_request_data - #7768

Merged
ericapisani merged 4 commits into
major/3.0from
py-2798-update-asgi-get-request-data
Oct 1, 2026
Merged

ericapisani merged 4 commits into
major/3.0from
py-2798-update-asgi-get-request-data

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Always filter the query string through the data_collection
url_query_params setting. The legacy send_default_pii path is
resolved into an equivalent data_collection default, so the raw
query string is no longer passed through.

Update the Django ASGI and FastAPI tests to configure
data_collection instead of send_default_pii.

Refs PY-2798
Refs #7566

Always filter the query string through the `data_collection`
`url_query_params` setting. The legacy `send_default_pii` path is
resolved into an equivalent `data_collection` default, so the raw
query string is no longer passed through.

Update the Django ASGI and FastAPI tests to configure
`data_collection` instead of `send_default_pii`.

Refs PY-2798
Refs #7566
…uest_data`

Read `REMOTE_ADDR` from `data_collection["user_info"]` only. The client
already resolves `send_default_pii` into `data_collection` at init, so
the legacy `should_send_default_pii()` fallback is redundant.

Update the ASGI and Django ASGI tests to configure `data_collection`
instead of `send_default_pii`, and remove the legacy `send_default_pii`
parametrized cases.
@linear-code

linear-code Bot commented Sep 29, 2026

Copy link
Copy Markdown

PY-2798

@ericapisani
ericapisani marked this pull request as ready for review September 29, 2026 17:14
@ericapisani
ericapisani requested a review from a team as a code owner September 29, 2026 17:14
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 58521 passed | ⏭️ 2727 skipped | Total: 61248 | Pass Rate: 95.55% | Execution Time: 156m 52s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -75808
Passed Tests 📉 -71313
Failed Tests 📉 -2
Skipped Tests 📉 -4493

➖ Removed Tests (1)

View removed tests
  • test_binary_content_encoding_image_url[True-False]
    • File: tests.integrations.litellm.test_litellm

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2054 uncovered lines.
❌ Project coverage is 90.19%. Comparing base (776ace5) to head (72e8214).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.36%    90.19%    -0.17%
==========================================
  Files          199       183       -16
  Lines        26526     20946     -5580
  Branches      9866      7326     -2540
==========================================
+ Hits         23971     18892     -5079
- Misses        2555      2054      -501
- Partials      1495      1216      -279

Generated by Codecov Action

@ericapisani
ericapisani changed the base branch from major/3.0 to master September 29, 2026 17:25
@ericapisani
ericapisani added this pull request to stack #7770 September 29, 2026 17:25
@ericapisani
ericapisani removed this pull request from stack #7770 September 29, 2026 17:26
@ericapisani
ericapisani changed the base branch from master to major/3.0 September 29, 2026 17:26
@ericapisani
ericapisani added this pull request to stack #7771 September 29, 2026 17:26

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6cf7784. Configure here.

Comment thread tests/integrations/asgi/test_asgi.py Outdated
@ericapisani
ericapisani merged commit 8a896b6 into major/3.0 Oct 1, 2026
147 checks passed
@ericapisani
ericapisani deleted the py-2798-update-asgi-get-request-data branch October 1, 2026 13:09
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.

2 participants