Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stop changing null to empty string when reading empty title #8878

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Nov 28, 2024

About the changes

When you don't specify title on strategy create you get null stored in a DB.

However when reading it back for edit you get:
Screenshot 2024-11-28 at 11 09 14
This is confusing since null got changed to empty string.

It also affects change request diffs:
Screenshot 2024-11-28 at 10 48 05
I haven't changed the title but diff shows null to "" change

After this change when you edit strategy you get:
Screenshot 2024-11-28 at 11 50 59

I was also considering turning nulls into removed fields in the read strategy response but current solution seems to be ok.

Important files

Discussion points

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 10:50am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 10:50am

Copy link
Contributor

github-actions bot commented Nov 28, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@kwasniew kwasniew merged commit 61cb218 into main Nov 28, 2024
7 checks passed
@kwasniew kwasniew deleted the stop-changing-null-to-empty-string branch November 28, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants