Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output dependency metrics in json format #113

Merged
merged 8 commits into from
Jul 30, 2021
Merged

Conversation

nasifimtiazohi
Copy link
Contributor

No description provided.

@nasifimtiazohi nasifimtiazohi requested review from bmwill and xvschneider and removed request for xvschneider and bmwill July 29, 2021 03:12
@nasifimtiazohi nasifimtiazohi force-pushed the json branch 3 times, most recently from ef3def9 to 4a5ab35 Compare July 29, 2021 03:47
Self::get_dep_pacakge_metrics(&graph, only_direct)
}

fn get_dep_pacakge_metrics(graph: &PackageGraph, only_direct: bool) -> Result<String> {
Copy link
Contributor

Choose a reason for hiding this comment

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

might want to name this fn in such a way that indicates it outputs Json

Self::get_code_metrics(&graph, only_direct)
}

fn get_code_metrics(graph: &PackageGraph, only_direct: bool) -> Result<String> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@@ -8,7 +8,6 @@ edition = "2018"

[dependencies]
anyhow = "1.0.38" # error handling library
tabled = "0.2.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats the rationale for wanting to remove this?

Copy link
Contributor Author

@nasifimtiazohi nasifimtiazohi Jul 29, 2021

Choose a reason for hiding this comment

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

rationale is - There are too many fields for a pretty tabled output which is no better than just json output. In midpoint demo, I just chose a subset of the fields so that doesn't break in the monitor screen but that ain't a feature. I think we can make it a future work on how to present a higher-level abstraction of these data based on idea here. #103

bmwill
bmwill previously approved these changes Jul 29, 2021
bmwill
bmwill previously approved these changes Jul 30, 2021
@nasifimtiazohi
Copy link
Contributor Author

/land

@bors-libra bors-libra merged commit d1d2483 into diem:main Jul 30, 2021
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.

3 participants