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

Simplify the report processor #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 27, 2022

This drops a lot of old legacy code that was used in the Puppet < 2.6 days. Those days are far behind us and this simplifies the processor a lot. It still doesn't take advantage of fields added in "recent" versions.

spec/unit/report_spec.rb Outdated Show resolved Hide resolved
Rather than defining an entry and then appending it, this writes it all
out so it's clear what the structure is.
Even Puppet 2.6 uses format version 2.
This takes advantage of the fact that each title is the same as the
metric's name.
This saves an intermediate array.
@ekohl ekohl added the Enhancement New feature or request label Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant