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

show NULL when nullable and default is null #1336

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

paulr34
Copy link
Collaborator

@paulr34 paulr34 commented Jun 10, 2024

when default value is null and the attribute isNullable then the defaultValue is NULL not empty

:model-value="
props.row.isNullable &&
defaultValueCheck(props.row.id, selectedCluster.id) === null
? 'NULL'
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not happy that we hardcode "NULL" here. This is mixing up the C concept of "NULL" with a concept of "nil" from the spec.

What if we're not generating for C, so we don't have "NULL"?

@@ -211,11 +216,6 @@ limitations under the License.
color="secondary"
label="Null"
size="sm"
:disabled="
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this change needed?

@paulr34 paulr34 merged commit b832bdc into project-chip:master Jun 12, 2024
13 checks passed
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