Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into cascaded-soft-del…
Browse files Browse the repository at this point in the history
…etes
  • Loading branch information
kwk committed Oct 25, 2018
2 parents c045942 + 44739f8 commit 1082cdb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions controller/workitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,6 @@ func findLastModified(wis []workitem.WorkItem) time.Time {
// ConvertJSONAPIToWorkItem is responsible for converting given WorkItem model object into a
// response resource object by jsonapi.org specifications
func ConvertJSONAPIToWorkItem(ctx context.Context, method string, appl application.Application, source app.WorkItem, target *workitem.WorkItem, witID uuid.UUID, spaceID uuid.UUID) error {
// load work item type to perform conversion according to a field type
wit, err := appl.WorkItemTypes().Load(ctx, witID)
if err != nil {
return errs.Wrapf(err, "failed to load work item type: %s", witID)
}
_ = wit

// construct default values from input WI
version, err := getVersion(source.Attributes["version"])
if err != nil {
return err
Expand Down

0 comments on commit 1082cdb

Please sign in to comment.