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

Correct 'raw' stats export to json string interface #514

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

eddelbuettel
Copy link
Contributor

This PR is a small cleanup. When we added 'raw' stats export, I at first did not switch to the functionality of exporting as a string. I had at first approximated that by writing to file and re-reading.

While working on the SOMA stats functionality it became a little clearer that this is a wart. So now the *_dump() function as before emits to either stdout or a file (if filename is given), and *_raw_dump() returns a JSON string. The existing extra accessors remain but are marked deprecated and will be removed after a suitable time period.

The PR also adds a small cleanup for the PR #513 that went in this morning as using OR on query conditions has only been available since 2.10.0.

No new code, no new tests.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #25087: Expose stats api.

Copy link
Member

@aaronwolen aaronwolen left a comment

Choose a reason for hiding this comment

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

🚀

@eddelbuettel eddelbuettel merged commit 7faef4e into master Feb 3, 2023
@eddelbuettel eddelbuettel deleted the de/sc-25087/raw_stats branch February 3, 2023 17:58
@eddelbuettel eddelbuettel mentioned this pull request Mar 13, 2023
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.

2 participants