-
Notifications
You must be signed in to change notification settings - Fork 70
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: use plan phase duration and index instead of start after #1996
base: main
Are you sure you want to change the base?
Conversation
@@ -83,6 +83,8 @@ func (PlanPhase) Fields() []ent.Field { | |||
field.String("plan_id"). | |||
NotEmpty(). | |||
Comment("The plan identifier the phase is assigned to."), | |||
field.Int("index"). |
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.
uint8
var ( | ||
_ models.Validator = (*PlanMeta)(nil) | ||
_ models.Equaler[PlanMeta] = (*PlanMeta)(nil) | ||
) | ||
|
||
type PlanMeta struct { |
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.
Why is this called PlanMeta? Is this the internal model of Plan?
type NextPlanInput struct { | ||
// NamespacedID | ||
models.NamespacedID | ||
// type NextPlanInput struct { |
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.
why commented out?
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.
The functionality provided by NextPlan
API is also available via CreatePlan
API. The only difference is that the former allows creating a new version with optinal plan payload while the latter requires a plan to be sent as part of the request. But I tend to agree that it does not worth to keep/maintain 2 API endpoints for the same operation.
I'm splitting this PR into multiple commits: |
TODO: