-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BI-671,BI-679] - Create new trait - Scale class 'ordinal scale' and Scale class 'nominal class' #60
Conversation
39c6d6a
to
a952806
Compare
85f43b3
to
2b0cf29
Compare
<template v-if="trait.scale && trait.scale.dataType === DataType.Nominal"> | ||
<CategoryTraitForm | ||
v-on:update="trait.scale.categories = $event" | ||
v-bind:type="DataType.Nominal" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This element and Ordinal
could be combined. The type
passed to CategoryTraitForm
can be the value of trait.scale.dataType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. This is changed in one of the next PR's I have open.
v-bind:type="DataType.Ordinal" | ||
/> | ||
</template> | ||
<template v-if="trait.scale && trait.scale.dataType === DataType.Text"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a method to do a case insensitive comparison for the DataType in the Scale class. Not important here since it's a new trait but may be for edit where that info could possibly come in differently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that might be good to check. I was thinking that those data types got transformed into the enum values which is why I didn't worry about case matching. I'll leave that for the edit form card if that is cool with you?
No description provided.