Commit Graph

172 Commits

Author SHA1 Message Date
Chen Sun 3e734ed191
fix(backend): Update API RuntimeConfig to use protobuf.Value. Fixes #7119 (#7231)
* Update api runtimeConfig to use protobuf.Value

* fix test
2022-02-10 10:22:15 +00:00
capri-xiyue 073539a50a
chore: change owner (#7113) 2021-12-24 01:26:42 +00:00
Yuan Gong ca9b9444ac chore(release): bumped version to 1.8.0-alpha.0 2021-12-01 00:49:31 +00:00
James Liu e094b0aa4b
chore(release): bump version to 1.7.1 on master branch (#6842) 2021-11-01 21:39:59 -07:00
capri-xiyue 2e945750cb
feat(v2): V2 create run api (#6689)
* added draft of create v2 pipeline run

* fixed broken UT and added UT for parsing template

* modified run apis to support v2 IR spec

* remove temporary patch

* fixed dependency

* fixed build failure

* finished draft

* finished create job and run

* refactor template and fixed broken UT

* updated go license

* fixed build failure

* fixed build

* added UT

* modified UT

* fixed build failure

* fixed license
2021-10-28 21:53:51 -07:00
Gerard Casas Saez 19b3de4dd0
feat(frontend): Add to UI pipeline version description. Part of #6256 (#6393)
* add description to upload_pipeline_description http endpoint

* add test for pipeline upload server description

* add description to new pipeline version

* show pipeline version in pipeline detail page

* make description optional on UI + show version descriptio or pipeline description

* remove unused reference

* revert wrong change of ref

* updated on should be pipeline version

* add more versions to mock-backend

* show pipeline and version description at the same time

* add tests for UI

* show pipeline version always
2021-09-06 20:55:38 -07:00
Yuan Gong 6ccf5bcd0b chore(release): bumped version to 1.7.0 2021-08-25 06:44:50 +00:00
Yuan Gong 78491d12b8 chore(release): bumped version to 1.7.0-rc.4 2021-08-19 05:04:29 +00:00
Joshua Carp 0511983a5f
chore: fix broken links (#6386) 2021-08-18 21:50:53 -07:00
Gerard Casas Saez 943dc128e1
feat(backend): Add pipeline version description to backend. Part of #6256 (#6261)
* start adding description to version

* add description to resource manager

* remove description from pipeline default version

* update pipeline_store

* add some tests to ensure its being passed around

* update frontend generated api

* run auto formatter

* add comment to frontend readme about running npm run format

* add missing api converter step
2021-08-18 20:59:53 -07:00
Yuan Gong 3c6d1285a0 chore(release): bumped version to 1.7.0-rc.3 2021-08-06 07:13:16 +00:00
Yuan Gong cc920c761c chore(release): bumped version to 1.7.0-rc.2 2021-07-22 12:23:43 +00:00
Yuan Gong f8ce345863 chore(release): bumped version to 1.7.0-rc.1 2021-07-15 11:23:40 +00:00
Yuan Gong 27c558e4ea chore(release): bumped version to 1.7.0-rc.0 2021-07-15 09:29:15 +00:00
capri-xiyue a1a98772b7
chore(v2): fixed task api comment (#6043) 2021-07-14 12:59:49 -07:00
Yuan (Bob) Gong b653ea244c
feat: pipeline spec as a separate go module (#6000)
* feat: pipeline spec as a separate go module

* use api-generator image & update release image

* clean up & update licenses

* go mod tidy
2021-07-12 20:51:16 -07:00
XiyueYu e6f498d4b5 chore(release): bumped version to v1.7.0-alpha.3 2021-07-12 16:57:12 -07:00
capri-xiyue fd973f714a
chore(v2): updated protoc version, fixed task BE (#5983)
* updated protoc version, fixed task BE

* fixed be test

* updated api generator image and readme
2021-07-06 20:54:21 -07:00
Yuan Gong bd6350dc27 chore(release): bumped version to 1.7.0-alpha.2 2021-07-03 13:29:11 +00:00
capri-xiyue b7d4b1ba7c
chore(v2): DB and API for creating/querying cache entries (#5857)
* added model and storage layer for task

* added create task api

* added api to list tasks

* modified task proto and fixed nits

* renamed variable

* fixed ut

* fixed UT

* added UT for api_converter and resource manager

* added UT for api_converter and resource manager

* fixed BE UT

* added task storage layer UT

* changed UT

* fixed foreign key typo

* fixed typo and added comments
2021-06-30 11:30:22 -07:00
Yuan Gong a1d513eb41 chore(release): bumped version to 1.7.0-alpha.1 2021-06-28 13:19:50 +00:00
Yuan Gong 1c66f93f51 chore(release): bumped version to 1.6.0 2021-05-24 13:36:51 +08:00
Yuan Gong bc329aa816 chore(release): bumped version to 1.6.0-rc.0 2021-05-13 07:17:55 +00:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Yuan (Bob) Gong 3d72a2d9d5
chore(release): bump version to 1.5.0 on master branch (#5508) 2021-04-20 01:51:38 -07:00
Yuan Gong 3b5030aefa chore(release): bumped version to 1.5.0-rc.3 2021-04-09 13:28:26 +00:00
Yuan Gong f870570a79 chore(release): bumped version to 1.5.0-rc.2 2021-04-02 10:06:48 +00:00
Yuan Gong 1cd189567d chore(release): bumped version to 1.5.0-rc.1 2021-04-01 11:59:53 +08:00
Yuan Gong d2c66deb93 chore(release): bumped version to 1.5.0-rc.0 2021-03-22 21:25:52 +08:00
Yuan (Bob) Gong 8b3d741c6e
chore(release): after release, also bump master to 1.4.1 (#5196)
* update release instructions

* chore(release): bump version to 1.4.1

* Update setup.py
2021-03-01 12:10:16 -08:00
Luis Magana 5df2801603
feat(backend): Added multi-user pipelines (UI + API); Fixes #4197 (#4835)
* Added multi-user pipelines backend


corrected typo


updating code based on review


fixes for pipelines server


reverting this back

* removing unnecessary info logging
2021-02-26 06:10:15 -08:00
Yuan (Bob) Gong 706c105c8c
chore(api): build api clients using a prebuilt image (#5150)
* chore(api): build api clients using a prebuilt image

* Update Makefile
2021-02-19 10:27:44 -08:00
Niklas Hansson e669b22954
fix(backend): remove Bazel from building the API. Part of #3250 (#4906)
* updated to remove bazel

* rename@

* script to run in container

* update the generation

* updated docker image

* changed name

* updated the code

* regenerated API

* fix env variables

* updated version of go swagger

* rerun generate with updated package

* added healthz

* typo with folders fixed

* changed version

* set version of protoc compiler

* test if version is correct

* test version

* changed version

* updated version agian

* test version

* the latest test

* updated docker image

* fixed some stuff

* new test

* tested other version

* new tests

* changed swagger

* new test

* updated versions

* missed docker file

* updated files@

* change back

* updated after feedback@

* clean up

* remove license and install binary

* update and check differences

* completed rebase

* go mod tidy

* updated based upon work of boby

* remove code commited by misstake

* added by misstake

* updated after feedback

* futher updates after feedback

* final updates from feedback

* switch to Makefile

* update

* fix non-root execution

* clean up, fix release script

* fix swagger

* fix healthz endpoint & regenerate python client

* Delete sample.py.tar.gz

Co-authored-by: Yuan Gong <gongyuan94@gmail.com>
Co-authored-by: Yuan (Bob) Gong <4957653+Bobgy@users.noreply.github.com>
2021-02-16 16:58:30 -08:00
Rui Fang 2b95c002b7 chore(release): bumped version to 1.4.0 2021-02-12 09:31:46 +00:00
Yuan (Bob) Gong 3d40bba9a3
chore(backend): clean up backend code generation (#5116)
* chore(backend): tidy go.mod and update tools.go

* go install, instead of go get

* fix problems reported by go vet

* simplify some ide reported redundant syntax

* license is not required for generated code

* remove licenses for generated code

* cleanup

* remove license more

* rm unused BUILD.bazel files

* fixed generate_api.sh

* reimport error.proto
2021-02-09 07:10:57 -08:00
Yuan (Bob) Gong 5725bb85ed
chore(backend): tidy go.mod & update tools.go & fix go vet (#5110)
* chore(backend): tidy go.mod and update tools.go

* go install, instead of go get

* fix problems reported by go vet

* simplify some ide reported redundant syntax
2021-02-08 11:06:56 -08:00
Chen Sun 26de102f82 chore(release): bumped version to 1.4.0-rc.1 2021-02-01 00:18:50 -08:00
Yang Pan c484cfa46c chore(release): bumped version to 1.3.0 2021-01-07 00:39:26 -08:00
Chen Sun 5445ce82c7 chore(release): bumped version to 1.2.0 2020-12-17 23:24:32 -08:00
numerology 1449cfe0a5 chore(release): bumped version to 1.1.2 2020-12-14 09:43:07 -08:00
Yuan (Bob) Gong 6895f1977b
chore(backend): delete outdated backend/api/Makefile. Fixes #4717 (#4893) 2020-12-13 18:05:28 -08:00
Rui Fang a0a1a5d0cf chore(release): bumped version to 1.1.2-rc.1 2020-12-04 07:09:17 +00:00
hilcj c1aebb5d22 chore(release): bumped version to 1.1.1-beta.1 2020-11-26 17:58:04 +00:00
hilcj 4fe4a30545 Revert "chore(release): bumped version to 1.1.1-beta.1"
This reverts commit 9af3e79c10.
2020-11-26 16:10:10 +00:00
hilcj 9af3e79c10 chore(release): bumped version to 1.1.1-beta.1 2020-11-26 04:32:09 +00:00
hilcj bd86072a8c Revert "chore(release): bumped version to 1.1.1.beta.1"
This reverts commit 5928a2659b.
2020-11-26 04:20:10 +00:00
hilcj 5928a2659b chore(release): bumped version to 1.1.1.beta.1 2020-11-26 03:07:26 +00:00
DavidSpek 0df9473bba
feat: Set current namespace for in-cluster SDK in multi-user mode and add healthz endpoint to API backends (#4638)
* Set current namespace in local KFP context if running from notebook

* Create "~/.config/kfp/" instead of ".config/kfp/"

At first it was assumed the `get_user_namespace` command would be executed from the home directory.

* Create local context file if it doesn't exist during set_user_namespace

* Grab path from LOCAL_KFP_CONTEXT when creating folder

Instead of harcoding the os.mkdirs path to `~/.config/kfp` it now grabs it from the LOCAL_KFP_CONTEXT. Also, removed path creation in `get_user_namespace` as that is now handled in `set_user_namespace`. Also, it now checks if the path exists rather than the local_context_file to remove the situation where it tries to create ~/.config/kfp/ because the context.json doesn't exist when the path does.

* add multi-user setting to healthz api

* Add http prefix to health api url

* move healtz api call to own function and fix multi_user boolean

* Fix HEALTH_PATH declaration

* Move check to Client __init__ and change get_kfp_healthz to avoid breaking in case of old apiserver image

* Add multi_user to frontend healthz

* Expose multi_user in frontend and add integration test

* Fix integration test

* Fix host hardcoding and error handling

* Handle empty API response, check if API up to date

* Fix response return

* remove API check due to empty response

* retry API call if first response empty

* retry getting healthz api if no response

* change health_api to https

The healthz_api has been returning empty responses which might be caused by sending an http request to an https endpoint. Although requests handles redirects, this commit is to test if this solves the issue.

* Add some debug info to healthz exception

* add url to debug and lower retries to 1

* Use api_client to get healthz data

* Debug info for API response

* Follow API redirect history

* Fix indentation

* Add healthz proto

* Try getting healthz api with new python backend

* Add installation of kfp_server_api in tests

* Fix incorrect setup location

* Replace old .get with new http backend .multi_user

* Code clean up

* Small fixes and TimeOutError for retries healthz api

* Remove changes to go dependencies

* Send empty proto request and fix exception client

* Remove unused commit_sha and tag_name
2020-11-24 15:36:39 -08:00
Yuan Gong 7d36f48482 chore(release): bumped version to 1.1.0-alpha.1 2020-11-02 03:01:27 +00:00
Niklas Hansson 5742991c1a
feat(API): exposing api for setting the default version of pipeline. Fixes #4049 (#4406)
* initial work on exposing the default version of pipeline

* update description

* added missing files

* updated api build, unsure if this is correct ...

* updated after feedback

* clean up

* remove empty line

* started to make the integration test

* added integreation test

* fixed build and feedback

* updated the tests

* Updated the test

* new test

* typo

* updated the pipeline default

* updated the pipeline version

* formatting

* error in comparison
2020-10-15 16:19:25 -07:00
Yihong Wang 06bf42998e
chore(backend): remove unused import in .proto (#4448)
nit: Clean up unused `import`s in proto files.
Since no actually code change, code gen is skipped.
2020-09-22 00:28:47 -07:00
Yuan (Bob) Gong d91a0c9da1
chore(release): bump version to 1.0.1 on master branch (#4492)
* chore(release): bump version to 1.0.1 on master branch

* remove rc changelog
2020-09-14 01:28:58 -07:00
jingzhang36 b6c2c2aee6
doc: readme for how to auto-generate api reference from the backend api definitions (#4348)
* enable pagination when expanding experiment in both the home page and the archive page

* Revert "enable pagination when expanding experiment in both the home page and the archive page"

This reverts commit 5b672739dd.

* add a quick guide on how to generate api reference from kfp api definition

* remove trailing lines
2020-08-10 21:12:16 -07:00
Yuan (Bob) Gong 988f5b02e4
chore(release): bump version to 1.0.0 on master branch (#4249) 2020-07-20 02:04:51 -07:00
Yuan (Bob) Gong f456ee9768
doc(sdk/client): fix kfp-server-api py client's docstring format (#4047)
* Pull templates from upstream 4.3.1

* update templates according to OpenAPITools/openapi-generator/pull/6391

* regenerate python client
2020-06-23 06:21:45 -07:00
Yuan (Bob) Gong c6ac5e0b1f
[Python Client] Clean up generated python client template to facilitate version bump (#3937)
* Remove version from generated python client header comment

* Regenerate client

* Bump to 1.0.0-dev.2 to showcase version bump diff
2020-06-09 18:20:04 -07:00
Yuan (Bob) Gong 04e23d2a05
[Release] Regenerate api clients on release (#3910)
* [Release] Regenerate api clients on release

* Fix hack/release.sh

* Add a script to check required tools

* update

* Update

* Update clean up
2020-06-04 13:24:16 +08:00
Yuan (Bob) Gong 4f34be6f01
[API] Add license header to python api client files (#3897)
* Regenerate clients after proto description fix

* Add LICENSE to api python client

* Add license header to python files

* Revert unintended changes
2020-06-04 10:23:24 +08:00
Yuan (Bob) Gong 7dfb34edc8
Regenerate clients after proto description fix (#3895) 2020-06-03 01:52:17 -07:00
Yuan (Bob) Gong 36eba13efb
[Python Client] Use openapi generator instead of swagger (#3872)
* Generate python client package into repo using kfp_api_single_file.swagger.json

* Commit python client generated by swagger

* Use openapi-generator instead

* Regenerate using openapi-generator

* Add extra info into swagger single file

* Update more info

* update

* Move python http client to upper folder

* Clean up build script

* Update kfp_server_api from new swagger.json
2020-06-02 21:18:17 -07:00
Amy 5d302b6edb
fix typo on sort order: 'des' --> 'desc' (#3893) 2020-06-02 18:00:17 -07:00
jingzhang36 286492591b
More documentation on backend API methods (#3758)
* list experiment desc

* changes should be made in proto

* add comments and descriptions

* comments/descriptions in run.proto

* comments in job.proto and pipeline.proto

* try starting a new line

* newline doesnt help

* add swagger gen'ed file

* address comments

* regenerate json and client via swagger

* address comments

* regenerate go_http_client and swagger from proto

* two periods

* re-generate
2020-06-01 12:26:25 +08:00
Yuan (Bob) Gong c38f36cdc1
[Backend] Add service account field to run and job api objects (#3649)
* Add service account field to run and job api objects

* Update description

* Fix field casing

* Add comment about the next field number
2020-04-29 22:58:17 -07:00
Yuan (Bob) Gong b61944458a
[Backend] Authorization service (#3627)
* Authorization service proto

* implement auth service

* Add unit tests
2020-04-27 16:42:04 -07:00
Chen Sun c4fb79447c
[API] Include namespace in visualization.swagger.json (#3588)
* include namespace in CreateVisualization

* include namespace in post body

* put namespace in the path and in front of visualization

* post /apis/v1beta1/visualizations/{namespace}
2020-04-23 13:44:06 -07:00
Chen Sun c3a0230747
[Backend][Multi-user] Support creating visualization in user namespace (#3495)
* Add namespace field to CreateVisualizationRequest

* Support getting visualization service URL with namespace

* fix typo

* Add auth checking & allow empty namespace
2020-04-17 19:11:37 -07:00
jingzhang36 60f896bacc
Upload pipeline/pipeline version with a description (#3511)
* add desscription to client interface

* autogen

* version doesn't have description field

* swagger autogen

* remove two accidentally committed local python package
2020-04-17 15:36:04 +08:00
jingzhang36 56d519e9f7
Add archive experiment feature in backend (#3359)
* add new field in db schema and api schema

* auto genereted types for experiment storage state

* add archive and unarchive methods to backend for experiments.

* auto generated archive/unarchive methods for epxeriments

* add archive and unarchive to client

* set proper storage state when creating experiment

* retrieve storage state when we get/list epxeriment(s)

* change expection in test to have storage state

* add storage state in resource manager test

* revise experiemnt server test

* revise api converter test

* integration test of experiment archive

* archive/unarchive experiment affect the storage state of runs in it

* test all the runs in archive/unarchive experiment

* test all runs are archived/unarchived with their experiment in experiment server

* integration test

* integration test: value type mismatch in assertion

* unused import; default value for storage state

* autogen code for frontend

* reorder the fields in api experiment schema

* switch the position of the two enum to verify a hypothesis

* Put a place hodler to prevent any valid item to take the value 0

* Get rid of the place holder since the cause of issue related to value 0 is found and fixed.

* The returned api experiment now has storage state field

* create experiment return doesn't contain storege state

* Cleanup needs to clean runs and pipeliens now

* a missing client

* use resource reference as fileter instead of experiment uuid

* use same namespace in archive unit test

* Leave archive/unarchive experiment integration test to a separate PR

* also need to update jobs when experiments are archived

* Change of unarchiving logic. When experiment is unarchived, jobs/runs in
it stay archived

* add unit test for the job status in archived/unarchived experiment

* change archive state to 3 value enum; add experiment integration test

* make archive state 3 value enum to avoid 0 value mapped to available; add integration test

* run swagger autogen

* fix an expected value

* fix experiment server test

* add job check in experiment server test

* update job crds

* fix a typo

* remove accidentally included irrelevant changes
2020-04-16 07:31:09 +08:00
Chen Sun 2f1dbbedd2
Experiment API change (#3198) 2020-03-06 09:17:23 -08:00
Yuan (Bob) Gong 688aa08d42
Release 0.2.5 - e66dcb1860 (#3179)
* Updated component images to version e66dcb1860

* Updated components to version 3f4b80127f

* Update setup.py

* Fix swagger codegen download url

* Update versions
2020-02-26 23:59:19 -08:00
jingzhang36 80fc767eb8
Fix a missing query parameter in swagger json file for version upload api (#3160)
* add pipelineid to api parameter

* Backend swagger autogent

* Reverse a local change

* Reverse another local change
2020-02-24 19:44:15 +08:00
Yuan (Bob) Gong 74a8178e1d
[Controller] Scheduled workflow supports catch up false (#3073)
* GetNextScheduledEpochNoCatchup implementation

* Add tests for cron schedule nocatchup

* Add tests for periodic schedule and fix a corner case

* Integrate no catchup behavior in swf controller

* Update job api proto

* Regenerate backend client

* Pass catchup parameter in backend api

* Rename proto field to no_catchup, so that it has backward compatible default value

* Update generated backend api

* Use no_catchup field instead

* Add some comments
2020-02-19 19:13:02 -08:00
Chen Sun 06c03f95db
Fix api generation script (#3090) 2020-02-14 15:53:28 -08:00
Michael Benavidez 811af3811d
Updated the API reference comments (#2916)
* Update comments with requested edits

* Update comments with requested edits
2020-02-12 01:34:52 -08:00
jingzhang36 96f1e4dedb
Swagger generated code for UploadPipelineVersion method (#3010) 2020-02-07 20:23:53 -08:00
jingzhang36 d1b72df5fb
Upload local file as new pipeline version Step 1 (#3001)
* add upload pipeline version to upload_pipeline_server and http main

* add apiPipelineVersion to pipeline upload swagger json

* add apiResourceReference to pipeline upload swagger json

* Add yet more types to pipeline upload swagger json

* Unit tests
2020-02-07 16:13:36 +08:00
jingzhang36 4c491823a0
Update auto-generated files' license date (generated by swagger-gen) (#2998) 2020-02-07 14:44:50 +08:00
jingzhang36 cc0b324281
Update version in generate_api.sh and run generate_api.sh to update (#2770)
Update version in generate_api.sh and run generate_api.sh to update swagger json.
2019-12-24 14:22:07 +08:00
Ning 1b85a614bf add namespace to the resourcereference (#2651)
* add namespace to some run APIs

* update only the create run api

* add resourcereference for namespace runs

* add variables in const

* add types to toModel func

* bug fix

* strip the namespace resource reference when mapping to the db model

* add unit tests

* use gofmt

* replace belonging relationshipreference to owner

* put a todo for further investigation of using namespace or uuid

* apply gofmt

* revert minor change

* Update model_converter.go
2019-12-03 22:06:57 -08:00
jingzhang36 6c1c641e40 Open version api in BE proto and auto-generate BE/FE api methods (#2620)
* Open the version api in BE for later FE PR to use. Including
auto-generated BE and FE code.

* format FE

* re-generate

* remove an unnecessary auto-generated file

* format
2019-11-26 19:35:19 -08:00
Michael Benavidez 452c360473 MDez patch 2 (#2635)
* Update job.proto

Added comments to describe endpoints.

* Adding endpoint comments for swagger.

* Spacing fix

* Spacing fix, comment consistency

* Add endpoint comments for swagger descriptions.

* Update experiment.proto

Add spacing

* Update experiment.proto

* Update job.proto

* Update pipeline.proto

* Update run.proto
2019-11-21 11:23:29 -08:00
Michael Benavidez e2c83759a2 MDez patch 1 (#2550)
* Add descriptive comments to all endpoints

* Add link to filter.proto page

* Update job.proto

* Add link to filter.proto page

* Update run.proto
2019-11-07 14:48:27 -08:00
jingzhang36 af090bffa2 Regenerate api since https://github.com/kubeflow/pipelines/pull/2445 changed api proto (#2506)
* re-generate api since #2445 changed api proto

* Fix integration test for pipeline client

* use generated constants
2019-10-29 23:54:52 -07:00
jingzhang36 47aaf08280 Runs and jobs can be created from pipeline version (#2445)
* add version api

* unit tests

* remove debug fmt

* remove unused func

* remove another unused method

* formatting

* remove unused consts

* some comments

* build

* unit tests

* unit tests

* formatting

* unit tests

* run from pipeline version

* pipeline version as resource type

* run store and resource reference store

* formatting and removing debug traces

* run server test

* job created from pipeline version

* variable names

* address comments

* Get pipeline version template is used on pipeline details page, which fetches pipelien version file.

* a temp revert

* address comment

* address comment

* add comment

* get pipeline version template

* verify pipeline version in resource reference

* add unit test for create run from pipeline version

* unit test for create job from pipeline version

* remove some comments

* reformat

* reformat again

* Remove an unrelated change

* change method name
2019-10-28 11:02:42 -07:00
Ajay Gopinathan 26f8e628b4 Fix documentation for filter.proto (#2447)
* Fix documentation for filter.proto

* Fix file generation
2019-10-25 02:35:38 -07:00
jingzhang36 f66af1f0ee Add pipeline version api methods (#2338)
* add version api

* unit tests

* remove debug fmt

* remove unused func

* remove another unused method

* formatting

* remove unused consts

* some comments

* build

* unit tests

* unit tests

* formatting

* unit tests

* address comments

* address comment

* address comment

* add comment
2019-10-17 01:34:39 -07:00
jingzhang36 7aaecb1501 Add necessary data types to api and database to support pipeline version. (#1873)
* Add necessary data types/tables for pipeline version. Mostly based
on Yang's branch at https://github.com/IronPan/pipelines/tree/kfpci/.
Backward compatible.

* Modified comment

* Modify api converter according with new pipeline (version) definition

* Change pipeline_store for DefaultVersionId field

* Add pipeline spec to pipeline version

* fix model converter

* fix a comment

* Add foreign key, pagination of list request, refactor code source

* Refactor code source

* Foreign key

* Change code source and package source type

* Fix ; separator

* Add versions table and modify existing pipeline apis

* Remove api pipeline defintiion change and leave it for later PR

* Add comment

* Make schema changing and data backfilling a single transaction

* Tolerate null default version id in code

* fix status

* Revise delete pipeline func

* Use raw query to migrate data

* No need to update versions status

* rename and minor changes

* accidentally removed a where clause

* Fix a model name prefix

* Refine comments

* Revise if condition

* Address comments

* address more comments

* Rearrange pipeline and version related parts inside CreatePipeline, to make them more separate.

* Add package url to pipeline version. Required when calling CreatePipelineVersionRequest

* Single code source url; remove pipeline id as sorting field; reformat

* resolve remote branch and local branch diff

* remove unused func

* Remove an empty line
2019-09-25 23:59:07 -07:00
Alexey Volkov 570141d7c9 Make wget quieter (#2069) 2019-09-09 14:32:54 -07:00
Yannis Zarkadas c781b30f7b api: fix generate_api.sh script with bash shebang (#2017)
Signed-off-by: Yannis Zarkadas <yanniszark@arrikto.com>
2019-09-03 13:28:58 -07:00
Kirin Patel cd2a684f7c Add generated client from visualization swagger (#1979)
* Update backend/api/generate_api.sh to build visualization swagger file

* Built visualization client
2019-08-30 09:35:54 -07:00
Kirin Patel 3d69062e13 Add custom visualization support for Python based visualizations (#1929)
* Added custom visualization type

* Added support for custom visualizations to the VisualizationCreator component

* Re-generated API

* Updated VisualizationCreator.test.tsx.snap

* Updated VisualizationCreator.test.tsx tohave new and more specific tests

* Added tests to ensure Editor component is visible when specifying visualization type
* Updated test to properly validate provided source is rendered

* Added unit test to ensure that an argument placeholder is provided for every visualization type

* Fixed linting error

* Simplified canGenerate logic
2019-08-25 15:10:20 -07:00
Kirin Patel 3c8952e6bf Add TFDV, TFMA, and Table visualization support for Python based visualizations (#1898)
* Added table and tfdv visualization

Also fixed issue surrounding ApiVisualizationType enum

* Fixed table visualization

* Removed byte limit
* Fixed issue where headers would not properly be applied
* Fixed issue where table would not be intractable

* Updated table visualizaiton to reflect changes made to dependency injection

* Fixed bug where checking if headers is provided to table visualizations could crash visualization

* Added TFMA visualization

* Updated new visualizations to match syntax of #1878

* Updated test snapshots to account for TFMA visualization

* Small if statement synax changes

* Add flake8 noqa comments to table.py and tfma.py
2019-08-22 13:57:20 -07:00
IronPan f1c9594f7d Propagate pipeline name in pipeline spec (#1842)
* update

* add pipeline name

* propagate name

* propagate name

* fix

* update test
2019-08-14 23:30:32 -07:00
IronPan 4e43750c9d
add reference name to resource reference API proto (#1781)
* add resource reference

* fix tests

* fix tests

* fix e2e test

* fix e2e

* fix test

* update api requirement

* fix tests

* Update job_api_test.go

* Update run_api_test.go

* Update setup.py

* Update deploy-kubeflow.sh

* fix tests

* Update deploy-kubeflow.sh
2019-08-13 03:15:11 -07:00
IronPan 9835b5b0ba
Update kfp_api_single_file.swagger.json 2019-08-09 01:18:33 -07:00
IronPan a9602fbc3f
Add API to rerun the pipeline (#1720)
* add resubmit proto

* add compiled code

* fix

* add resubmit proto

* add

* refactor

* update builder

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* add test

* add test

* add test

* add test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* address comments

* add comments

* change request body def

* recompile api

* retry instead of resubmit

* update test

* update test

* fix tests

* fix tests

* fix tests

* robust retry

* robust retry

* robust retry

* robust retry

* robust retry

* robust retry

* robust retry

* robust retry

* robust retry

* add error handling

* reorder the call

* remove logic to update the database entry

* add mock

* add tests for rerousrce manager

* update error handling logic

* fix tests

* address comments
2019-08-07 13:59:06 -07:00
Kirin Patel fa1abde7f6 Rename InputPath -> Source for Visualization API definition (#1717)
* InputPath -> Source

* Changed name of data path/pattern variable from InputPath to Source to improve consistency with current visualization method
* Updated unit tests to reflect name change
* Regenerated swagger definitions to reflect name change

* Readded test that was removed with previous commit

It was deleted by mistake
2019-08-05 10:55:50 -07:00
Alexey Volkov f8e06c325c API - Updated swagger-codegen-cli version (#1686)
Fixes https://github.com/kubeflow/pipelines/issues/1685
2019-07-31 18:54:12 -07:00
Kirin Patel 5838e2c9d0 Changed arguments parameter type and built visualization pb and swagger files (#1636)
* String array -> string for arguments parameter in visualization.proto

Switching from a repeated string to a string was done to allow stringified JSON to be used for specifying arguments for visualizations. By doing this, a more generic approach for passing arguments can be taken within python, rather than using argparser, json can be used to decode arguments without having to specify them beforehand.

* Ran generate_api.sh
2019-07-19 19:22:55 -07:00
Kirin Patel 377464f2f4 Add Visualization API endpoint (#1565)
* Created visualization.proto

* Addressed most of PR feedback

* Fixed comments

* Addressed additional PR feedback

* Changed output from path to html

* Removed id parameter from visualization and changed inputPaths to inputPath

* Added support for command line arguments to be passed via the API

These are required for the new roc curve and will become import for passing any parameters form a user to the visualization.

* Fixed typo
2019-07-10 12:30:26 -07:00