Skip to content
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

Merged
merged 3 commits into from
Dec 20, 2018
Merged

Conversation

pallavidn
Copy link
Contributor

Add builder support for creating group and policy DTOs.
Updated protobuf bindings using the *.proto files from the 6.3 branch.

}

if groupBuilder.ec.Count() > 0 {
fmt.Printf("Error : %s\n", groupBuilder.ec.Error())
Copy link
Contributor

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.

DYNAMIC_GROUP GroupType = "Dynamic"
)
//
//type GroupBuilder interface {
Copy link
Contributor

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.

if err != nil {
return nil, fmt.Errorf("[AbstractConstraintGroupBuilder] Error building group")
}
if groupDTO == nil {
Copy link
Contributor

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.

@coveralls
Copy link

coveralls commented Dec 19, 2018

Coverage Status

Coverage increased (+8.0%) to 50.743% when pulling 9fe8650 on pallavidn:group-builder into cb4fb48 on turbonomic:master.

Copy link
Contributor

@maxwangvmt maxwangvmt left a comment

Choose a reason for hiding this comment

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

LGTM

@pallavidn pallavidn merged commit 168907f into turbonomic:master Dec 20, 2018
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.

4 participants