Skip to content

Conversation

@brbarkley
Copy link
Contributor

@brbarkley brbarkley commented Apr 28, 2019

Fixes #1919

  • Have you followed the guidelines in our
    Contributing document?

  • Does your PR affect documented changes or does it add new functionality
    that should be documented? If yes, have you created a PR for
    dvc.org documenting it or at
    least opened an issue for it? If so, please add a link to it.


schema>=0.6.7
paramiko>=2.4.1
jsonpath-rw==1.4.0
jsonpath-ng>=1.4.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update setup.py as well.

@efiop
Copy link
Contributor

efiop commented Apr 28, 2019

@brbarkley Looks great! Thank you! There is one test failing in https://github.com/iterative/dvc/blob/master/tests/func/test_metrics.py#L295 . You just need to add metric_json_ext to those lists and we should be all set 🙂

updated setup.py
updated test_metrics.py::assertMetricsHaveRelativePaths

Fixes treeverse#1919
ret = self.dvc.metrics.show(
"metric_json_ext",
typ="json",
xpath="$.metrics[?(@.deviation_mse<0.30) & (@.value_mse>0.4)]",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is truly something 🙂 We should definitely document this. Could you please adjust --xpath description for json in https://dvc.org/doc/commands-reference/metrics-modify ?

Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! The only thing left to do is to adjust the docs.

brbarkley added a commit to brbarkley/dvc.org that referenced this pull request Apr 28, 2019
@efiop
Copy link
Contributor

efiop commented Apr 28, 2019

Thank you! 🎉

@efiop efiop merged commit 329385e into treeverse:master Apr 28, 2019
@brbarkley
Copy link
Contributor Author

brbarkley commented Apr 28, 2019

Looks great! The only thing left to do is to adjust the docs.

See PR for docs #275. Obviously, ignore the PR that I accidentally submitted to my own fork 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dvc metrics show - implement jsonpath-ng instead of python-jsonpath-rw

2 participants