-
Notifications
You must be signed in to change notification settings - Fork 448
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
Conversation
525123d
to
cf341cc
Compare
/assign @YujiOshima @hougangliu @johnugeorge |
pkg/db/interface.go
Outdated
@@ -46,8 +46,10 @@ type VizierDBInterface interface { | |||
DBInit() | |||
SelectOne() error | |||
|
|||
GetStudyConfig(string) (*api.StudyConfig, error) | |||
GetStudyMetrics(string) ([]string, error) |
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.
do GetStudyMetrics really need be exposed in VizierDBInterface? it seems for internal use
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.
I think, this is just for Select metrics from studies table.
We use it here:
Line 885 in 869fdf2
metrics, err := d.GetStudyMetrics(studyId) |
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 it's only in need in pkg/db/interface.go, you can remove line 49
/retest |
2 similar comments
/retest |
/retest |
/lgtm |
/approve |
[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 |
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