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

change isclosed from **bool to bool to treat nil and false the same #288

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

cdworak
Copy link
Contributor

@cdworak cdworak commented Sep 23, 2022

No description provided.

@@ -776,6 +776,99 @@ func TestEntityDiff(t *testing.T) {
newNilIsEmpty: true,
isDiff: false,
},
diffTest{
name: "Hours: base is IsClosed: nil, new is IsClosed: false. Should not have diff because will result in API error ",
Copy link

Choose a reason for hiding this comment

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

this name could be updated since isClosed can no longer be nil

},
IsClosed: false,
})}),
////newNilIsEmpty: true,

Choose a reason for hiding this comment

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

delete comments?

Copy link

@nsiskind nsiskind left a comment

Choose a reason for hiding this comment

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

lgtm

@cdworak cdworak merged commit 379d11f into entities Sep 26, 2022
@cdworak cdworak deleted the hours-is-closed branch September 26, 2022 18:15
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.

3 participants