Skip to content

Commit

Permalink
fire exp show watcher whenever a .dvc file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed May 26, 2022
1 parent 70bd692 commit 39a3db4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension/src/experiments/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ExperimentsData extends BaseData<ExperimentsOutput> {
},
{ name: 'fullUpdate', process: () => this.update() }
],
['dvc.lock', 'dvc.yaml', 'params.yaml']
['dvc.lock', 'dvc.yaml', 'params.yaml', '*.dvc']
)

this.watchExpGitRefs()
Expand Down
6 changes: 3 additions & 3 deletions extension/src/test/suite/experiments/data/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ suite('Experiments Data Test Suite', () => {
join(
dvcDemoPath,
'**',
`{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,summary.json}`
`{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,summary.json}`
)
)
})
Expand Down Expand Up @@ -134,14 +134,14 @@ suite('Experiments Data Test Suite', () => {
join(
dvcDemoPath,
'**',
`{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,summary.json}`
`{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,summary.json}`
)
)
expect(getFirstArgOfCall(mockCreateFileSystemWatcher, 1)).to.equal(
join(
dvcDemoPath,
'**',
`{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,new_params.yml,new_summary.json,summary.json}`
`{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,new_params.yml,new_summary.json,summary.json}`
)
)
})
Expand Down

0 comments on commit 39a3db4

Please sign in to comment.