Skip to content

fix(allowed-domains): preserve blank origin values - #129617

Draft
sentry-junior[bot] wants to merge 1 commit into
josh/typing-strict-types-onlyfrom
josh/typing-stack/origin-blank-value
Draft

sentry-junior[bot] wants to merge 1 commit into
josh/typing-strict-types-onlyfrom
josh/typing-stack/origin-blank-value

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Stacked on #129614 (strict mypy, types only). This is #129428 rebased onto it so the fix lands after the typing PR.

OriginField turned a blank origin into None after validation, so callers saw a different value than the one submitted. Keep the empty string and leave filtering out empty values to the storage layer. This also removes the # type: ignore[return-value] that #129614 kept for master's behavior.

Test: test_blank_origin_is_preserved.

via @joshuarli.

--

View Session [Sentry]

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 3, 2026
@sentry-junior
sentry-junior Bot force-pushed the josh/typing-strict-types-only branch from 9fda5d0 to 73fa505 Compare November 3, 2026 00:31
@sentry-junior
sentry-junior Bot force-pushed the josh/typing-stack/origin-blank-value branch from 6a5bc3b to 8e316fe Compare November 3, 2026 00:34
@sentry-junior
sentry-junior Bot force-pushed the josh/typing-stack/origin-blank-value branch from 8e316fe to cc38f83 Compare November 3, 2026 12:02

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

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant