-
Notifications
You must be signed in to change notification settings - Fork 564
[FR] [DAC] further decouple reliance on default rule dir locations #3654
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
[FR] [DAC] further decouple reliance on default rule dir locations #3654
Conversation
…s-in-config-files' into 3619-frdac-further-decouple-reliance-on-default-rule-dir-locations
Co-authored-by: Justin Ibarra <[email protected]>
Agreed, I think it passed for me due to a specific config setup in for my environment. Will take a look 👀 |
Good catch! Added in a default to not be None in the creation and adding resiliency |
…on-default-rule-dir-locations
…on-default-rule-dir-locations
@@ -89,6 +90,8 @@ a combination of both. | |||
In addition to the formats mentioned using `create-rule`, this will also accept an `.ndjson`/`jsonl` file | |||
containing multiple rules (as would be the case with a bulk export). | |||
|
|||
The `-s/--save-directory` is an optional parameter to specify a non default directory to place imported rules. If it is not specified, the first directory specified in the rules config will be used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will give people the ability to place rules where they want which is nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐ Great work. It lgtm. Especially after making the final changes based on the make test files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
…on-default-rule-dir-locations
…on-default-rule-dir-locations
…on-default-rule-dir-locations
Issues
#3619
Summary
The primary purpose of this PR is to remove the hard coding of rules directories and replace them with the directories loaded from a config file. Either the default one, or a user generated one.
Additionally, there are a few other considerations that are related to the implementation:
Open Design Quetsions:
_deprecated
relative to the rules directory.)_deprecated
folder relative to rules directory.Testing
To test one will need to run the following commands with both the default config and a custom config.
make build
make test-cli
make test-remote-cli
Testing Results
Custom config
make
make_build.txt
make test-cli
make_test_cli.txt
make test-remote-cli