putNewDoc() is called from Store and from JobsView. To simplify the code and promote DRYness, we should set as much of the metadata_ in this common function as possible. In particular, we move the setting of created_at, last_modified_at, workflow_name, and workflow_title to putNewDoc().
putNewDoc()
is called from Store and from JobsView. To simplify the code and promote DRYness, we should set as much of the metadata_ in this common function as possible. In particular, we move the setting ofcreated_at
,last_modified_at
,workflow_name
, andworkflow_title
toputNewDoc()
.