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 parsing rules from a byte slice. #179

Merged
merged 1 commit into from
Apr 30, 2021
Merged

Conversation

cristiangreco
Copy link
Contributor

The rule parser currently allows reading rules from file(s). Parsing a
byte slice (which was removed as part of #80) might
still be useful to some users.

@cristiangreco cristiangreco requested a review from a team as a code owner April 30, 2021 10:22
CHANGELOG.md Outdated
@@ -4,6 +4,7 @@ Order should be `CHANGE`, `FEATURE`, `ENHANCEMENT`, and `BUGFIX`

## unreleased/master

* [ENHANCEMENT] Expose method `rules.ParseBytes` to allow parsing rules from a byte slice.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say remove this changelog entry as this is not a user-visible change.

Copy link
Member

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

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

LGTM thanks! Agree with Josh that we don't need a changelog entry though

The rule parser currently allows reading rules from file(s). Parsing a
byte slice (which was removed as part of #80) might
still be useful to some users.
@cristiangreco cristiangreco merged commit d12588e into main Apr 30, 2021
@cristiangreco cristiangreco deleted the rules-parse-bytes branch April 30, 2021 13:11
simonswine pushed a commit to grafana/mimir that referenced this pull request Jan 12, 2022
The rule parser currently allows reading rules from file(s). Parsing a
byte slice (which was removed as part of grafana/cortex-toolshttps://github.com/grafana/cortex-tools/pull/80) might
still be useful to some users.
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.

None yet

4 participants