-
Notifications
You must be signed in to change notification settings - Fork 534
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: Remove update_time and create_time from ServerInfo entity #1192
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1192 +/- ##
==========================================
- Coverage 42.38% 42.33% -0.06%
==========================================
Files 31 31
Lines 1930 1930
==========================================
- Hits 818 817 -1
- Misses 1001 1002 +1
Partials 111 111
Continue to review full report at Codecov.
|
ExpectCode int | ||
ExpectMessage string | ||
ExpectBody string | ||
UnexpectedBody 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.
To make it more clear, I just added a new field UnexpectedBody
here, which reformatted the alignment.
Yes, a better solution is to separate create_time, update_time and ID. In the next version, we will remove the consumer ID: It will need create_time and update_time but no ID. |
9d021b2
to
f525336
Compare
Signed-off-by: imjoey <majunjiev@gmail.com>
f525336
to
5da99da
Compare
@liuxiran @nic-chen Thanks for your advice. While unfortunately, for now |
Please answer these questions before submitting a pull request
Why submit this pull request?
Bugfix
New feature provided
Improve performance
Related issues
Fixes #1176 .
Bugfix
The empty values of
create_time
andupdate_time
should not be returned from server_info interface provided by manager-api . Please see #1176 for details.This PR is going to set
create_time
andupdate_time
asomitempty
to disable JSON serialization when returning back to frontend. In addition, adding the relevant test case for changes.