-
Notifications
You must be signed in to change notification settings - Fork 5.7k
fix: session timestamps #4913
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
fix: session timestamps #4913
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3590,7 +3590,8 @@ | |
| "nullable": true | ||
| }, | ||
| "created_at": { | ||
| "type": "string" | ||
| "type": "string", | ||
| "format": "date-time" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this not require client side changes
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is just an openapi annotation. If it changed the generated code we'd see that in this diff, but it seems that it does not: https://github.com/block/goose/blob/12f7ef5900be42a48445e757bc2a444a193f6b86/ui/desktop/src/api/types.gen.ts#L712-L713
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fair enough, you'd think it would turn into js Dates though those have their own issues I remember
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. turns out it's a plugin: https://heyapi.dev/openapi-ts/plugins/transformers#dates |
||
| }, | ||
| "description": { | ||
| "type": "string" | ||
|
|
@@ -3633,7 +3634,8 @@ | |
| "nullable": true | ||
| }, | ||
| "updated_at": { | ||
| "type": "string" | ||
| "type": "string", | ||
| "format": "date-time" | ||
| }, | ||
| "working_dir": { | ||
| "type": "string" | ||
|
|
||
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 could cause flakiness in tests. probably they would catch something then though
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.
would it? DateTime::default() returns unix epoch 0, not now()