Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(cli/cliui): handle typed nil and null time in tables#15984

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedDec 31, 2024
edited
Loading

This PR fixes an issue where if a nil value of a type that implementsfmt.Stringer is used in the table data, we gettyped(nil) != nil == true and a nil pointer deref.

Also adds support forcodersdk.NullTime.

Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

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

stamp 👍 ... although I'm wondering if we can add a short golden test file for CLI UI Table.

@mafredri
Copy link
MemberAuthor

@mtojek thanks for the suggestion, noticed there were more bases to cover thanks to the tests 👍🏻

@mafredrimafredrienabled auto-merge (squash)December 31, 2024 14:31
@mafredrimafredri merged commit23b1c2d intomainDec 31, 2024
30 checks passed
@mafredrimafredri deleted the mafredri/fix-cli-cliui-table-handle-more-types branchDecember 31, 2024 14:36
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 31, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@mtojekmtojekmtojek approved these changes

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mafredri@deansheather@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp