IsMutableTaskField reports whether the supplied field name is directly mutable on a task.
(field string)
| 88 | |
| 89 | // IsMutableTaskField reports whether the supplied field name is directly mutable on a task. |
| 90 | func IsMutableTaskField(field string) bool { |
| 91 | switch field { |
| 92 | case TaskFieldTitle, |
| 93 | TaskFieldDescription, |
| 94 | TaskFieldPriority, |
| 95 | TaskFieldMaxAttempts, |
| 96 | TaskFieldAutoEnqueueOnReady, |
| 97 | TaskFieldApprovalPolicy, |
| 98 | TaskFieldMetadata, |
| 99 | TaskFieldNetworkChannel, |
| 100 | TaskFieldOwner: |
| 101 | return true |
| 102 | default: |
| 103 | return false |
| 104 | } |
| 105 | } |
no outgoing calls