switch namespaces from tags to relations with auto-creation
This commit is contained in:
@@ -16,11 +16,12 @@ type Node struct {
|
||||
type RelType string
|
||||
|
||||
const (
|
||||
RelBlocks RelType = "blocks"
|
||||
RelSubtask RelType = "subtask"
|
||||
RelRelated RelType = "related"
|
||||
RelCreated RelType = "created"
|
||||
RelAssignee RelType = "assignee"
|
||||
RelBlocks RelType = "blocks"
|
||||
RelSubtask RelType = "subtask"
|
||||
RelRelated RelType = "related"
|
||||
RelCreated RelType = "created"
|
||||
RelAssignee RelType = "assignee"
|
||||
RelInNamespace RelType = "in_namespace"
|
||||
)
|
||||
|
||||
func (n *Node) GetProperty(k string) string {
|
||||
@@ -33,3 +34,13 @@ func (n *Node) GetProperty(k string) string {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (n *Node) GetDisplayTags() []string {
|
||||
var tags []string
|
||||
for _, t := range n.Tags {
|
||||
if !strings.HasPrefix(t, "_") {
|
||||
tags = append(tags, t)
|
||||
}
|
||||
}
|
||||
return tags
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user