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

Database APIs for NAS updated #394

Merged
merged 7 commits into from
Feb 21, 2019
Merged

Conversation

Akado2009
Copy link
Contributor

@Akado2009 Akado2009 commented Feb 20, 2019

This PR introduces a distinct set of API functions to save/get NAS jobs into the mysql databases. For now it creates a separate table, but after new update we're gonna use studies table, just increase the number of columns in that one. This one should be merged after: #327.

New version of #328 with squashing


This change is Reviewable

@andreyvelich
Copy link
Member

/assign @YujiOshima @hougangliu @johnugeorge
We passed all tests, I think we can, finally, merge this PR.

@@ -46,8 +46,10 @@ type VizierDBInterface interface {
DBInit()
SelectOne() error

GetStudyConfig(string) (*api.StudyConfig, error)
GetStudyMetrics(string) ([]string, error)
Copy link
Member

Choose a reason for hiding this comment

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

do GetStudyMetrics really need be exposed in VizierDBInterface? it seems for internal use

Copy link
Member

Choose a reason for hiding this comment

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

I think, this is just for Select metrics from studies table.
We use it here:

metrics, err := d.GetStudyMetrics(studyId)

Copy link
Member

Choose a reason for hiding this comment

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

if it's only in need in pkg/db/interface.go, you can remove line 49

@andreyvelich
Copy link
Member

/retest

2 similar comments
@andreyvelich
Copy link
Member

/retest

@andreyvelich
Copy link
Member

/retest

@hougangliu
Copy link
Member

/lgtm

@hougangliu
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hougangliu

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 d6a67ea into kubeflow:master Feb 21, 2019
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.

6 participants