-
Notifications
You must be signed in to change notification settings - Fork 13
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
Rewrite policy resolver #1465
Rewrite policy resolver #1465
Conversation
dc4d538
to
f89203b
Compare
f89203b
to
9b9d5dd
Compare
b094599
to
c0c98b1
Compare
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.
Tested it and seems to work fine. Only added 1 typo comment
policy/resolved_policy_builder.go
Outdated
// to. We need to do this because we cannot have a space frame and space | ||
// policy reporting job because they would have the same qr id. | ||
// TODO: we should create a new reporting job type for asset and space | ||
// reporting jobs so its cleare that we can connect both frameworks and |
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.
// reporting jobs so its cleare that we can connect both frameworks and | |
// reporting jobs so its clear that we can connect both frameworks and |
return nil, err | ||
} | ||
|
||
return resolvedPolicy, nil |
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.
Definitely not a blocker, more like personal preference:
On first read, I skipped the return
statement and was expecting an else
.
I'm not sure whether it is actually possible, but would it be possible to choose between current and ng resolver outside of the tryResolve
?
As said, more like a personal preference, feel free to ignore it.
A bug i've found so far:
|
This will make it impossible to tell what the actual score was. In this case, we will set the impact to 0 only when we merge it into a policy
44eefa1
to
94971c5
Compare
Things that are known to be different from the old implementation: