-
Notifications
You must be signed in to change notification settings - Fork 18
Add Site-Level Gear Rules #921
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
Conversation
@nagem The visibility of the special Otherwise, looks/tests great. |
They use the same endpoint (project and site), so tightening it up would require a "if project level gear, validate the alg exists" block, right? Because site rules would still need to be able to do that? I can make a minor change to remove the project_id on the rule when returned from the site routes. I just reused that key so the handler methods would operate the same. |
@nagem I don't need the ability to post gear rules at either project or site level, where the referenced gear doesn't exist yet. Thus, from my perspective, enforcement at both levels would be fine. I'm not saying we should enforce it. Just that my use case for it being lax no longer applies so enforcement could be re-considered. |
Codecov Report
@@ Coverage Diff @@
## master #921 +/- ##
=========================================
Coverage ? 90.35%
=========================================
Files ? 48
Lines ? 6369
Branches ? 0
=========================================
Hits ? 5755
Misses ? 614
Partials ? 0
Continue to review full report at Codecov.
|
@ryansanford script added. |
@nagem Thanks for the script. Works as expected. How would you feel about making the script more generic, with flags to execute various "future" checks. Something that would be executed like... Also, could I get a non-zero exit code when a check finds something wrong? I did confirm that exception, like failure to connect to db results in exit code = 1. 👍 |
@ryansanford I added the script
I don't do a whole lot of error checking, if you pass |
@nagem Looks nice. Working as expected, except not getting non-zero exit when any of the test fail. |
LGTM Changes work great! |
Closes #903
Site level gear rules serve as a base list of gear rules for all new projects.
Notes:
/api/projects
will have a copy of all site rules assigned to that project. They can be edited and deleted after project creation.Breaking Changes
None
New Endpoints
Get all site level rules
Get site level rule by
Add new site level rule
Modify site level rule
Remove site level rule
Review Checklist