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

Report rules in sorted order #93

Merged
merged 1 commit into from
Sep 28, 2022
Merged

Report rules in sorted order #93

merged 1 commit into from
Sep 28, 2022

Conversation

suntala
Copy link
Contributor

@suntala suntala commented Sep 6, 2022

Resolves #39.

The fix involves sorting the rules by name and then using this order to iterate over the rules and their associated results. The sorting for the results is already taken care of by ByRule().

I didn't add any tests because the addition is comparable to the sorting being done in ByRule() for which there are no tests.

Please let me know if you have any questions or any changes to suggest.

@CLAassistant
Copy link

CLAassistant commented Sep 6, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@rgeyer rgeyer left a comment

Choose a reason for hiding this comment

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

Great! Apologies for letting this sit for so long, and thank you for the contribution!

@rgeyer rgeyer merged commit e1d5c3d into grafana:main Sep 28, 2022
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.

Checks are executed in different order on subsequent runs
3 participants