Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
[MLMD] Backport MLMD Utils and APIs added to Pipelines since Jan 8 (#23)
Browse files Browse the repository at this point in the history
* Backport changes to ArtifactCustomProperties and ExecutionCustomProperties

* Backport Util and API changes needed to merge LineageView into KFP
  • Loading branch information
kwasi authored Jan 28, 2020
1 parent 963164a commit 756476a
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 14 deletions.
1 change: 1 addition & 0 deletions build/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions build/lib/mlmd/Api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/mlmd/Api.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions build/lib/mlmd/LineageApi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/mlmd/LineageApi.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions build/lib/mlmd/Utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/mlmd/Utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export {
ExecutionProperties,
ExecutionCustomProperties,
} from './mlmd/Api'
export {getArtifactTypes} from './mlmd/LineageApi'
export {getArtifactTypes, getArtifactCreationTime} from './mlmd/LineageApi'
export {LineageView} from './mlmd/LineageView'
export {getMetadataValue, getResourceProperty, getTypeName} from './mlmd/Utils'
export {logger, formatDateString, titleCase} from './common/Utils'
5 changes: 5 additions & 0 deletions src/mlmd/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export enum ArtifactProperties {
export enum ArtifactCustomProperties {
WORKSPACE = '__kf_workspace__',
RUN = '__kf_run__',
NAME = 'name',
PIPELINE_NAME = 'pipeline_name', // TODO: Remove when switching to contexts
RUN_ID = 'run_id', // TODO: Remove when switching to contexts
}

/** Known Execution properties */
Expand All @@ -27,6 +30,8 @@ export enum ExecutionProperties {
/** Known Execution custom properties */
export enum ExecutionCustomProperties {
WORKSPACE = '__kf_workspace__',
RUN_ID = 'run_id', // TODO: Remove when switching to contexts
TASK_ID = 'task_id',
}

/** Format for a List request */
Expand Down
Loading

0 comments on commit 756476a

Please sign in to comment.