-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlight experiments with errors (#2072)
* implement basic errors functionality * add partial errors * refactor errors in experiments webview * pull out type * fix test * use pre-wrap for tooltip (inserts line breaks) * use cell contents component * add tooltip test in tree * add test for error handling in extract columns * update tests after merging main
- Loading branch information
1 parent
7d4b611
commit 743f826
Showing
27 changed files
with
640 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
"conda", | ||
"datapoint", | ||
"datapoints", | ||
"Decoratable", | ||
"dvcignore", | ||
"DVCLIVE", | ||
"DVCPATH", | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { extractColumns } from './extract' | ||
|
||
describe('extractColumns', () => { | ||
it('should handle concatenating errors', () => { | ||
const data = { | ||
metrics: { | ||
'summary.json': { | ||
error: { msg: 'metrics file is busted', type: 'fatal' } | ||
} | ||
}, | ||
params: { | ||
'params.yaml': { | ||
error: { msg: 'this is also broken', type: 'impossible' } | ||
} | ||
} | ||
} | ||
|
||
const { error } = extractColumns(data) | ||
expect(error).toStrictEqual('metrics file is busted\nthis is also broken') | ||
}) | ||
}) |
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
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
Oops, something went wrong.