-
Notifications
You must be signed in to change notification settings - Fork 850
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
api: omit empty fields in /experiments/detail #700
api: omit empty fields in /experiments/detail #700
Conversation
Signed-off-by: Yue Yang <[email protected]>
0a29c92
to
17e7896
Compare
Codecov Report
@@ Coverage Diff @@
## master #700 +/- ##
==========================================
- Coverage 55.78% 54.49% -1.30%
==========================================
Files 68 69 +1
Lines 4383 4652 +269
==========================================
+ Hits 2445 2535 +90
- Misses 1768 1927 +159
- Partials 170 190 +20
Continue to review full report at Codecov.
|
Signed-off-by: Yue Yang <[email protected]>
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
/merge |
/run-e2e-test |
please fix CI |
Signed-off-by: Yue Yang <[email protected]>
@fewdan Already fixed. Thx for mentioned! |
TimeChaos TimeChaosInfo `json:"time_chaos"` | ||
StressChaos StressChaosInfo `json:"stress_chaos"` | ||
Kind string `json:"kind" binding:"required,oneof=PodChaos NetworkChaos IoChaos KernelChaos TimeChaos StressChaos"` | ||
PodChaos *PodChaosInfo `json:"pod_chaos,omitempty"` |
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.
If we use the pointer here, we should check the nil
when using them.
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
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
/merge |
/run-all-tests |
* chore: omit empty fields Signed-off-by: Yue Yang <[email protected]> * fix: typo Signed-off-by: Yue Yang <[email protected]> * fix: ci Signed-off-by: Yue Yang <[email protected]> Co-authored-by: ti-srebot <[email protected]>
What problem does this PR solve?
This PR omits the empty fields in the
/experiments/detail
response.What is changed and how does it work?
For example, a NetworkChaos:
Check List
Code changes