-
Notifications
You must be signed in to change notification settings - Fork 20
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
Group and policy builders #57
Conversation
pkg/builder/group/group_builder.go
Outdated
} | ||
|
||
if groupBuilder.ec.Count() > 0 { | ||
fmt.Printf("Error : %s\n", groupBuilder.ec.Error()) |
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.
Better to also log the group id.
pkg/builder/group/group_builder.go
Outdated
DYNAMIC_GROUP GroupType = "Dynamic" | ||
) | ||
// | ||
//type GroupBuilder interface { |
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.
There are lots of commented code in this PR. Please remove it if unnecessary.
pkg/builder/group/policy_builder.go
Outdated
if err != nil { | ||
return nil, fmt.Errorf("[AbstractConstraintGroupBuilder] Error building group") | ||
} | ||
if groupDTO == 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.
Do we need this check? Seems it will not be nil if err == 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.
LGTM
Add builder support for creating group and policy DTOs.
Updated protobuf bindings using the *.proto files from the 6.3 branch.