-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not remove watcher from previously collected metric file (exp show…
… live updates) (#2203)
- Loading branch information
1 parent
3847491
commit ffe81ce
Showing
4 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { ExperimentsOutput } from '../../cli/reader' | ||
|
||
export const collectFiles = (data: ExperimentsOutput): string[] => { | ||
const files = new Set<string>( | ||
Object.keys({ | ||
...data?.workspace?.baseline?.data?.params, | ||
...data?.workspace?.baseline?.data?.metrics | ||
}).filter(Boolean) | ||
) | ||
export const collectFiles = ( | ||
data: ExperimentsOutput, | ||
existingFiles: string[] | ||
): string[] => { | ||
const files = new Set<string>([ | ||
...Object.keys({ | ||
...data?.workspace.baseline?.data?.params, | ||
...data?.workspace.baseline?.data?.metrics | ||
}).filter(Boolean), | ||
...existingFiles | ||
]) | ||
|
||
return [...files] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters