MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CreateCommitmentSchedule

Method CreateCommitmentSchedule

internal/store/commitment.go:400–406  ·  view source on GitHub ↗

CreateCommitmentSchedule creates an item's schedule with native roles: the one create path that stores roles_origin 'native'.

(workspaceID, itemID string, in models.ScheduleCreate, roles models.CommitmentRolesInput)

Source from the content-addressed store, hash-verified

398// CreateCommitmentSchedule creates an item's schedule with native roles: the one
399// create path that stores roles_origin 'native'.
400func (s *Store) CreateCommitmentSchedule(workspaceID, itemID string, in models.ScheduleCreate, roles models.CommitmentRolesInput) (*models.ItemSchedule, error) {
401 r, err := rolesFromInput(roles)
402 if err != nil {
403 return nil, err
404 }
405 return s.createScheduleRolesAt(workspaceID, itemID, in, &r, time.Now())
406}
407
408// sameDeadline reports whether two role sets carry the same deadline offset and
409// behavior; a deadline present on one side only is a difference.

Calls 3

createScheduleRolesAtMethod · 0.95
rolesFromInputFunction · 0.85
NowMethod · 0.65