Skip to content
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 studyJob status suggestionCount mismatch error #290

Merged
merged 1 commit into from
Dec 14, 2018
Merged

fix studyJob status suggestionCount mismatch error #290

merged 1 commit into from
Dec 14, 2018

Conversation

hougangliu
Copy link
Member

@hougangliu hougangliu commented Dec 13, 2018

Fixes: #289


This change is Reviewable

@hougangliu
Copy link
Member Author

/assign @richardsliu

@@ -73,7 +73,6 @@ func initializeStudy(instance *katibv1alpha1.StudyJob, ns string) error {
return err
}
instance.Status.SuggestionParameterID = sPID
instance.Status.SuggestionCount += 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SuggestionCount should record how many times the studyJob had called suggestion, and this value should += 1 every time after calling suggestion.
Here (initialize studyJob instance and no suggestion called before) instance.Status.SuggestionCount should be 0 (0 by default).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YujiOshima Is this the intended behavior? Should we update the API documentation instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, SuggestionParam["SuggestionCount"] in db change path is [0, 2, 3, ..., requestcount+1].
after this patch its path is [0,1,2,...,requestcount]

Copy link
Contributor

@YujiOshima YujiOshima Dec 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hougangliu Thanks.

SuggestionParam["SuggestionCount"] in db change path is [0, 2, 3, ..., requestcount+1].

This is not intended behavior, we may need to fix. I'm reviewing and testing this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@richardsliu
Copy link
Contributor

/lgtm

@YujiOshima
Copy link
Contributor

YujiOshima commented Dec 14, 2018

@hougangliu Thank you!

@YujiOshima
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: YujiOshima

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 5a7977d into kubeflow:master Dec 14, 2018
@hougangliu hougangliu deleted the suggestioncount branch December 17, 2018 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants