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
windows: Use stdtime for hcsshimtypes.ProcessDetails.CreatedAt #1649
windows: Use stdtime for hcsshimtypes.ProcessDetails.CreatedAt #1649
Conversation
caf4829
to
f5be894
Compare
rebase? |
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
f5be894
to
e7ea7b5
Compare
rebased |
rebased! |
Codecov Report
@@ Coverage Diff @@
## master #1649 +/- ##
=======================================
Coverage 49.06% 49.06%
=======================================
Files 27 27
Lines 4080 4080
=======================================
Hits 2002 2002
Misses 1663 1663
Partials 415 415 Continue to review full report at Codecov.
|
LGTM |
@@ -16,7 +16,7 @@ message CreateOptions { | |||
// ProcessDetails is made of the same fields as found in hcsshim.ProcessListItem | |||
message ProcessDetails { | |||
string image_name = 1; | |||
google.protobuf.Timestamp created_at = 2; | |||
google.protobuf.Timestamp created_at = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; |
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.
how did you figure out that this needed to be added?
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.
and is the conversion from ProcessListItem type time.Time
to CreatedAt type google.protobuf.Timestamp
now done for you?
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.
That's what we use in the other proto files, it indeed permits us not to deal with the google.protobuf.Timestamp
conversion as it is done by the generated code now.
One of the advantages of gogoproto
. I think we have @stevvooe to thank for using these options originally.
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.
LGTM
Signed-off-by: Kenfe-Mickael Laventure mickael.laventure@gmail.com
--
/cc @jessvalarezo