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

feat(coderd): add last_seen_at and version to provisioner_daemons table#11033

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
johnstcn merged 5 commits intomainfromcj/provisionerd-last-seen-at-version
Dec 5, 2023

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedDec 5, 2023
edited
Loading

Related to#10676

@johnstcnjohnstcn self-assigned thisDec 5, 2023
@johnstcnjohnstcn changed the base branch frommain tocj/offlinedocs-protocDecember 5, 2023 11:47
@johnstcnjohnstcnforce-pushed thecj/provisionerd-last-seen-at-version branch froma05e8ae to546e211CompareDecember 5, 2023 11:52
@johnstcnjohnstcn marked this pull request as ready for reviewDecember 5, 2023 12:02
Base automatically changed fromcj/offlinedocs-protoc tomainDecember 5, 2023 12:03
@johnstcnjohnstcnforce-pushed thecj/provisionerd-last-seen-at-version branch from546e211 to1c7c901CompareDecember 5, 2023 12:04
typeProvisionerDaemonstruct {
ID uuid.UUID`json:"id" format:"uuid"`
CreatedAt time.Time`json:"created_at" format:"date-time"`
UpdatedAt sql.NullTime`json:"updated_at" format:"date-time"`
Copy link
Member

Choose a reason for hiding this comment

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

nit: just spotted, if this issql.NullTime, then the property should haveomitempty.

johnstcn reacted with thumbs up emoji
Copy link
Member

@mafredrimafredriDec 5, 2023
edited
Loading

Choose a reason for hiding this comment

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

Just a note here thatomitempty isn't actually relevant. Sincesql.NullTime is a struct, it can't be omitted even when the struct is "zero".

https://go.dev/play/p/SGmN64SRt8F

Omitemptycan be relevant in e.g. codersdk when we usecodersdk.NullTime that implementsMarshalJSON. In that case it might help with generation of TypeScript types (unless we handle the type specifically in gen).

mtojek reacted with eyes emoji
Copy link
Member

Choose a reason for hiding this comment

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

I just realized that usingformat here is wrong, too (it'd be OK forcodersdk.NullTime).

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@mafredri sounds likeUpdatedAt should be acodersdk.NullTime then in the API struct?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah@johnstcn, I think that would be better 👍🏻

johnstcn reacted with thumbs up emoji
Copy link
MemberAuthor

@johnstcnjohnstcnDec 5, 2023
edited
Loading

Choose a reason for hiding this comment

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

@johnstcnjohnstcnforce-pushed thecj/provisionerd-last-seen-at-version branch from52dffd9 todf18a13CompareDecember 5, 2023 13:23
@johnstcnjohnstcn merged commit5fad611 intomainDec 5, 2023
@johnstcnjohnstcn deleted the cj/provisionerd-last-seen-at-version branchDecember 5, 2023 13:54
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 5, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@mafredrimafredrimafredri approved these changes

@mtojekmtojekmtojek approved these changes

Assignees

@johnstcnjohnstcn

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@johnstcn@mafredri@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp