Skip to content

Commit

Permalink
Fix Created column presence in show only changed (#4435)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Aug 8, 2023
1 parent b7a6c51 commit 8fd01d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions extension/src/experiments/columns/collect/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ describe('collectColumnsWithChangedValues', () => {
expect(changedColumns).toStrictEqual(
columnsFixture.filter(({ path }) =>
[
'Created',
'metrics:summary.json',
'metrics:summary.json:loss',
'metrics:summary.json:accuracy',
Expand Down
9 changes: 7 additions & 2 deletions extension/src/experiments/columns/collect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
collectMetricAndParamChanges,
collectMetricsAndParams
} from './metricsAndParams'
import { Column, Commit, Experiment } from '../../webview/contract'
import { Column, ColumnType, Commit, Experiment } from '../../webview/contract'
import { getValue } from '../util'
import {
ExpRange,
Expand Down Expand Up @@ -167,7 +167,12 @@ const collectChangedPaths = (
records: (Commit | Experiment)[]
) => {
const acc: string[] = []
for (const { pathArray, path, hasChildren } of columns) {
for (const { type, pathArray, path, hasChildren } of columns) {
if (type === ColumnType.TIMESTAMP) {
collectChangedPath(acc, path, [path], records)
continue
}

if (!pathArray || hasChildren) {
continue
}
Expand Down

0 comments on commit 8fd01d7

Please sign in to comment.