experiments: make dvc exp show more consistent w/viewer (#4489)

* experiments: cleanup show UI

* show git tag/branch names instead of SHAs by default
* make timestamp formatting more like the viewer

* update tests

* place timestamps in their own column

* update command test

* exp: remove unused regex

Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Peter Rowlands (변기호)
2020-08-31 00:02:57 +03:00
committed by GitHub
co-authored by Ruslan Kuprieiev
parent fcbbfac7f8
commit e2b5ab996f
4 changed files with 56 additions and 12 deletions
+6 -1
View File
@@ -37,6 +37,7 @@ def test_experiments_show(dvc, mocker):
"--all-tags",
"--all-branches",
"--all-commits",
"--sha",
]
)
assert cli_args.func == CmdExperimentsShow
@@ -47,5 +48,9 @@ def test_experiments_show(dvc, mocker):
assert cmd.run() == 0
m.assert_called_once_with(
cmd.repo, all_tags=True, all_branches=True, all_commits=True
cmd.repo,
all_tags=True,
all_branches=True,
all_commits=True,
sha_only=True,
)