MCPcopy Create free account
hub / github.com/compozy/agh / IsImmutableTaskField

Function IsImmutableTaskField

internal/task/limits.go:80–87  ·  view source on GitHub ↗

IsImmutableTaskField reports whether the supplied field name is immutable after task creation.

(field string)

Source from the content-addressed store, hash-verified

78
79// IsImmutableTaskField reports whether the supplied field name is immutable after task creation.
80func IsImmutableTaskField(field string) bool {
81 switch field {
82 case TaskFieldCreatedBy, TaskFieldOrigin, TaskFieldScope, TaskFieldWorkspaceID, TaskFieldParentTaskID:
83 return true
84 default:
85 return false
86 }
87}
88
89// IsMutableTaskField reports whether the supplied field name is directly mutable on a task.
90func IsMutableTaskField(field string) bool {

Callers 1

Calls

no outgoing calls

Tested by 1