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

GO-4246 change value of bool relations in existing object #1838

Conversation

AnastasiaShemyakinskaya
Copy link
Member

@AnastasiaShemyakinskaya AnastasiaShemyakinskaya commented Nov 19, 2024

add custom sort for bool relations, so null value is considered as false

Signed-off-by: AnastasiaShemyakinskaya <[email protected]>
Signed-off-by: AnastasiaShemyakinskaya <[email protected]>
Signed-off-by: AnastasiaShemyakinskaya <[email protected]>
Copy link

github-actions bot commented Nov 20, 2024

New Coverage 50.5% of statements
Patch Coverage 93.5% of changed statements (29/31)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

return p.isSuitableRelation(link) && pbtypes.Get(s.Details(), link.Key) == nil
}

func (p *Page) isSuitableRelation(link *model.RelationLink) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

isSuitableRelation method name is ambiguous in the context of sb Page

@AnastasiaShemyakinskaya AnastasiaShemyakinskaya merged commit aa990e0 into main Jan 16, 2025
5 checks passed
@AnastasiaShemyakinskaya AnastasiaShemyakinskaya deleted the go-4246-change-value-of-bool-relations-in-existing-object branch January 16, 2025 12:10
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants