Skip to content

Fix regression preventing users from emptying their profile text#2100

Merged
Oaphi merged 2 commits into
developfrom
0valt/2099/empty-profile-fix
Jul 23, 2026
Merged

Fix regression preventing users from emptying their profile text#2100
Oaphi merged 2 commits into
developfrom
0valt/2099/empty-profile-fix

Conversation

@Oaphi

@Oaphi Oaphi commented Jul 16, 2026

Copy link
Copy Markdown
Member

closes #2099

@Oaphi
Oaphi force-pushed the 0valt/2099/empty-profile-fix branch 2 times, most recently from af2784f to d68a8ba Compare July 16, 2026 23:16
@Oaphi
Oaphi requested review from a team and trichoplax July 16, 2026 23:23
@Oaphi
Oaphi force-pushed the 0valt/2099/empty-profile-fix branch from d68a8ba to 592359f Compare July 16, 2026 23:24
@Oaphi
Oaphi requested a review from ArtOfCode- July 18, 2026 16:45

@trichoplax trichoplax left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think there's an edge case where this will still fail (leaving the profile text rendered as if there were no change, while leaving the profile field in the "Edit" tab still appearing empty to the user). I've suggested an extra test to catch this.

Comment thread test/controllers/users_controller_test.rb Outdated
@Oaphi
Oaphi requested a review from trichoplax July 19, 2026 15:21
@Oaphi
Oaphi force-pushed the 0valt/2099/empty-profile-fix branch from 826259e to 46419fd Compare July 19, 2026 15:21
@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.94%. Comparing base (1aa4379) to head (46419fd).
⚠️ Report is 11 commits behind head on develop.

Additional details and impacted files
Components Coverage Δ
controllers 76.75% <100.00%> (+0.02%) ⬆️
helpers 85.47% <ø> (ø)
jobs 77.43% <ø> (ø)
models 93.14% <ø> (ø)
tasks 61.11% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@trichoplax trichoplax left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, and saving the profile works now, for empty, whitespace, and text.

@Oaphi
Oaphi requested a review from cellio July 23, 2026 18:49

@cellio cellio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested and confirmed fix. LGTM.

@Oaphi
Oaphi merged commit 07446a5 into develop Jul 23, 2026
14 checks passed
@Oaphi
Oaphi deleted the 0valt/2099/empty-profile-fix branch July 23, 2026 20:55
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.

Emptying profile text fails but claims success

3 participants