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(editing): set false attribute values on update #899

Merged
merged 2 commits into from
Oct 26, 2022

Conversation

ca-d
Copy link
Contributor

@ca-d ca-d commented Jul 20, 2022

Since we switched from Replace to Update, we now no longer set falsey attribute values (like the empty string '' or 0). This pull request fixes that issue.

@ca-d ca-d added Kind: Bug Something isn't working Difficulty: Good first issue Good for newcomers Status: Help wanted Extra attention is needed Reviewed: Prioritized Priority: Important Tackle eventually labels Jul 20, 2022
@ca-d
Copy link
Contributor Author

ca-d commented Jul 20, 2022

@JakobVogelsang this itty bitty buggy fixy again does not come with a regression test or a bug issue and is therefore still a draft. If nobody else finds the time to add those this week, I'll add them next week and turn the draft into a pull request then.

Since we switched from Replace to Update, we now no longer set falsey
attribute values (like the empty string `''` or `0`). This fixes that
issue.
@ca-d
Copy link
Contributor Author

ca-d commented Oct 25, 2022

I'll add them next week

Oh - my youthfully naive optimism from July is coming back to haunt me... 😅

@JakobVogelsang JakobVogelsang force-pushed the fix-editing-set-falsey-attributes branch from 1e6cc4e to 49d4d29 Compare October 25, 2022 18:19
@JakobVogelsang JakobVogelsang marked this pull request as ready for review October 25, 2022 18:19
@JakobVogelsang JakobVogelsang self-requested a review October 25, 2022 18:19
Copy link
Collaborator

@JakobVogelsang JakobVogelsang left a comment

Choose a reason for hiding this comment

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

LGTM

@JakobVogelsang JakobVogelsang merged commit 0b414e1 into main Oct 26, 2022
@JakobVogelsang JakobVogelsang deleted the fix-editing-set-falsey-attributes branch October 26, 2022 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Good first issue Good for newcomers Kind: Bug Something isn't working Priority: Important Tackle eventually Status: Help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants