-
Notifications
You must be signed in to change notification settings - Fork 460
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
feat: Show all experiments in monitor #835
Conversation
pkg/ui/v1alpha3/backend.go
Outdated
if experiment.Spec.NasConfig != nil { | ||
experimentLastCondition, err := experiment.GetLastConditionType() | ||
if err != nil { | ||
log.Printf("GetLastConditionType for HP failed: %v", err) |
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.
s/HP/NAS
pkg/ui/v1alpha3/backend.go
Outdated
|
||
el, err := k.katibClient.GetExperimentList(namespace) | ||
if err != nil { | ||
log.Printf("GetExperimentList for NAS failed: %v", err) |
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.
it seems the experiment list will include all kinds of experiment, not only NAS
pkg/ui/v1alpha3/backend.go
Outdated
jobs := make([]JobView, 0) | ||
|
||
el, err := k.katibClient.GetExperimentList() | ||
jobs, err := k.getExperimentList(consts.DefaultKatibNamespace) |
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.
why only consts.DefaultKatibNamespace?
pkg/ui/v1alpha3/backend.go
Outdated
http.Error(w, err.Error(), http.StatusInternalServerError) | ||
return | ||
} | ||
log.Printf("?????: %v", jobs) |
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.
????? by mistake?
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.
It is still WIP, some bugs are not fixed. Thus it is a WIP log.
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.
Missed WIP tag, please go ahead
pkg/ui/v1alpha3/backend.go
Outdated
log.Printf("?????: %v", jobs) | ||
response, err := json.Marshal(jobs) | ||
if err != nil { | ||
log.Printf("Marshal NAS jobs failed: %v", err) |
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.
NAS?
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.
/assign @hougangliu @johnugeorge
Signed-off-by: Ce Gao <[email protected]>
Signed-off-by: Ce Gao <[email protected]>
Signed-off-by: Ce Gao <[email protected]>
Signed-off-by: Ce Gao <[email protected]>
Signed-off-by: Ce Gao <[email protected]>
Signed-off-by: Ce Gao <[email protected]>
Signed-off-by: Ce Gao <[email protected]>
/retest |
Signed-off-by: Ce Gao <[email protected]>
/assign @johnugeorge |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note:
This change is