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

Board: Fix labels model #1405

Merged
merged 5 commits into from
Apr 16, 2022
Merged

Board: Fix labels model #1405

merged 5 commits into from
Apr 16, 2022

Conversation

annano
Copy link
Contributor

@annano annano commented Apr 14, 2022

No description provided.

annano added 3 commits April 14, 2022 18:23
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com>
attachedTo: Ref<Board>

title: string
title?: string
Copy link
Member

Choose a reason for hiding this comment

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

It really can be undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, system labels have only color by default, user defined labels may also have texts.

Copy link
Member

Choose a reason for hiding this comment

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

It will be better to use title: string | null, since we do not support undefined for model fields, because mongo doesn't :-)

Copy link
Member

Choose a reason for hiding this comment

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

Let's make it not optional and empty if empty/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@haiodo haiodo merged commit 16e3ae5 into main Apr 16, 2022
@haiodo haiodo deleted the ano/fix-labels-model branch April 16, 2022 02:56
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