createOrderForTask creates namespaced aware order for the task.
(ns uint64)
| 2579 | |
| 2580 | // createOrderForTask creates namespaced aware order for the task. |
| 2581 | func (sg *SubGraph) createOrderForTask(ns uint64) []*pb.Order { |
| 2582 | out := []*pb.Order{} |
| 2583 | for _, o := range sg.Params.Order { |
| 2584 | oc := &pb.Order{ |
| 2585 | Attr: x.NamespaceAttr(ns, o.Attr), |
| 2586 | Desc: o.Desc, |
| 2587 | Langs: o.Langs, |
| 2588 | } |
| 2589 | out = append(out, oc) |
| 2590 | } |
| 2591 | return out |
| 2592 | } |
| 2593 | |
| 2594 | func (sg *SubGraph) updateDestUids() { |
| 2595 | // Update sg.destUID. Iterate over the UID matrix (which is not sorted by |
no test coverage detected