-
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
feat: update goal REST no command #1464
Conversation
098121c
to
c6e41af
Compare
pkg/experiment/domain/goal.go
Outdated
if deleted != nil { | ||
updated.Goal.Deleted = deleted.Value | ||
} |
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.
If the goal is not in use, we can delete it from the table. There is no need to do a soft delete.
395dfdd
to
d2453c7
Compare
pkg/experiment/domain/goal.go
Outdated
name *wrapperspb.StringValue, | ||
description *wrapperspb.StringValue, | ||
archived *wrapperspb.BoolValue, | ||
deleted *wrapperspb.BoolValue, |
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.
You can remove this since you are not using in the update API anymore.
deleted *wrapperspb.BoolValue, |
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.
I have remove the redundant code!
d2453c7
to
84e7fde
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.
Nice!
Thank you!
part of #1417