Skip to content

fix(integrations): allow blank overview on sentry app form#114946

Merged
priscilawebdev merged 1 commit into
masterfrom
priscila/fix/sentry-app-overview-blank
May 7, 2026
Merged

fix(integrations): allow blank overview on sentry app form#114946
priscilawebdev merged 1 commit into
masterfrom
priscila/fix/sentry-app-overview-blank

Conversation

@priscilawebdev
Copy link
Copy Markdown
Member

@priscilawebdev priscilawebdev commented May 6, 2026

Fixes the issue below that occurs when clearing the field and attempting to save. Since the field is optional, saving without a value should be allowed.

Screen.Recording.2026-05-06.at.12.41.38.mov

Note: this form is not yet migrated to the tanstack form

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.44%

The overview field on the sentry app integration form is documented as
optional (required=False, allow_null=True), but DRF's CharField defaults
to allow_blank=False. The form submits an empty string for an empty
textarea, which the serializer rejected with "This field may not be
blank." Sending null instead is not viable: SentryAppUpdater._update_overview
treats None as "no change" and skips the write, so users could not clear
an existing description.

Add allow_blank=True so an empty string is accepted and persisted, which
matches the behavior of the neighboring webhookUrl and redirectUrl fields.
@priscilawebdev priscilawebdev force-pushed the priscila/fix/sentry-app-overview-blank branch from 57f4abe to 46e0676 Compare May 6, 2026 10:28
@priscilawebdev priscilawebdev changed the title fix(integrations): send null for empty overview field fix(integrations): allow blank overview on sentry app form May 6, 2026
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 6, 2026
@priscilawebdev priscilawebdev removed the Scope: Frontend Automatically applied to PRs that change frontend components label May 6, 2026
@priscilawebdev priscilawebdev marked this pull request as ready for review May 6, 2026 10:43
@priscilawebdev priscilawebdev requested review from a team as code owners May 6, 2026 10:43
@priscilawebdev priscilawebdev enabled auto-merge (squash) May 6, 2026 10:43
@priscilawebdev priscilawebdev requested review from a team and shellmayr and removed request for shellmayr May 6, 2026 10:43
@priscilawebdev priscilawebdev merged commit 8b22139 into master May 7, 2026
64 checks passed
@priscilawebdev priscilawebdev deleted the priscila/fix/sentry-app-overview-blank branch May 7, 2026 09:02
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.

2 participants