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

Allow diff to set format options for prepare report #669

Merged
merged 3 commits into from
Sep 29, 2022

Conversation

JGSweets
Copy link
Collaborator

Now can use:

profile1.diff(profile2, options=dict(output_format='pretty', omit_keys=[....])

@JGSweets JGSweets added Medium Priority Significant improvement or bug / feature reducing overall performance New Feature A feature addition not currently in the library labels Sep 29, 2022
@taylorfturner taylorfturner enabled auto-merge (squash) September 29, 2022 19:18
@taylorfturner taylorfturner assigned JGSweets and unassigned micdavis Sep 29, 2022
@@ -1208,7 +1211,11 @@ def diff( # type: ignore[override]
report["data_stats"] = self._profile.diff(
other_profile._profile, options=options
)
return _prepare_report(report)
return _prepare_report(
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious, why do we return options here if they are passed in? I wouldn't have thought to do that.

Copy link
Contributor

@micdavis micdavis left a comment

Choose a reason for hiding this comment

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

just that one comment

@taylorfturner taylorfturner merged commit 4e739a9 into capitalone:main Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Priority Significant improvement or bug / feature reducing overall performance New Feature A feature addition not currently in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants