Skip to content

Allow creating a template analyzer instance and load rules from memory#389

Merged
JohnathonMohr merged 12 commits intoAzure:mainfrom
borisf94:feature/borisf/allow_in_memory_rules
Feb 20, 2025
Merged

Allow creating a template analyzer instance and load rules from memory#389
JohnathonMohr merged 12 commits intoAzure:mainfrom
borisf94:feature/borisf/allow_in_memory_rules

Conversation

@borisf94
Copy link
Contributor

@borisf94 borisf94 commented Feb 9, 2025

Description

In this PR I add the ability to create a template analyzer instance and load the rules from memory.

We need to support rules provided from configuration that is read from a DB, meaning the rules are already in-memory as a string.

The PR is safe - the existing tests are covering all the capabilities as it only involves separating the existing logic into 2 methods.


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • [V] Title of the pull request is clear and informative.
  • [V] Description of the pull request is clear and informative.
  • I have added myself to the 'assignees'.
  • [V] I have added 'linked issues' if relevant.

Testing Guidelines

  • [V] Pull request includes test coverage for the included changes.

@borisf94 borisf94 requested a review from a team as a code owner February 9, 2025 14:55
Copy link

@reynoldskr reynoldskr left a comment

Choose a reason for hiding this comment

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

Can you bump the version too?

Copy link
Contributor

@JohnathonMohr JohnathonMohr left a comment

Choose a reason for hiding this comment

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

Just a couple style changes.

borisf94 and others added 5 commits February 13, 2025 10:08
Co-authored-by: Johnathon Mohr <JohnathonMohr@users.noreply.github.com>
Co-authored-by: Johnathon Mohr <JohnathonMohr@users.noreply.github.com>
@JohnathonMohr JohnathonMohr merged commit bfb0120 into Azure:main Feb 20, 2025
5 checks passed
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.

3 participants