[Crunch2][API] Rename "workflow" attribute in a workflow object as "definition"
Any other word other than "workflow" for this attribute in the "workflow" object would be a lesser evil because it will eliminate the confusion as to whether you are talking about the object type or attribute.
Discussed on engineering channel and Peter suggested "definition" and TomM agreed.
Updated by Lucas Di Pentima about 6 years ago
API Server tests run OK on my end. Just a little detail on the fixture file:
-workflow_with_workflow_yml: +workflow_with_definition_yml: uuid: zzzzz-7fd4e-validworkfloyml owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: Valid workflow with name and desc description: this workflow has a valid workflow yaml - workflow: "name: foo\ndesc: bar" + definition: "name: foo\ndesc: bar" created_at: 2016-08-15 12:00:00 -workflow_with_no_workflow_yml: +workflow_with_no_definition_yml: uuid: zzzzz-7fd4e-validbutnoyml00 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: Valid workflow with no workflow yaml
Maybe the name and description of those can be updated to be in tune with the new naming convention.
Apart from that, LGTM!