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

Add deps and outs to exp show test fixture #1780

Merged
merged 2 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion extension/src/cli/reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@ export interface BaseExperimentFields {
checkpoint_parent?: string
}

type DepsDetails = { hash: string; size: number; nfiles: null | number }
type OutsDetails = DepsDetails & { use_cache: boolean; is_data_source: boolean }

interface OutsOrDepsDetails {
[filename: string]: { hash: string; size: number; nfiles: null | number }
[filename: string]: DepsDetails | OutsDetails
}

export interface ExperimentFields extends BaseExperimentFields {
Expand Down
2 changes: 2 additions & 0 deletions extension/src/experiments/webview/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export interface Experiment extends BaseExperimentFields {
logicalGroupName?: string
params?: Columns
metrics?: Columns
deps?: Columns
outs?: Columns
displayColor?: string
selected?: boolean
mutable?: boolean
Expand Down
Loading