You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2023/07/05 19:05:01 UTC
[trafficcontrol-trafficops-types] 01/02: Remove artificial restriction that topology parents can only have 2 or fewer parents
This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
commit 6f656bf9dec3fa4460009d6b090ba9dc1477bfa9
Author: Zach Hoffman <zr...@apache.org>
AuthorDate: Wed Jul 5 06:23:15 2023 -0600
Remove artificial restriction that topology parents can only have 2 or fewer parents
Topology nodes can have an arbitrary number of parents. Traffic Portal
can only handle a maximum of 2 parents, but that is an an
application-level restriction, not a data type restriction.
(cherry picked from commit d020067a40467dbacac825a757991059a38bee64)
---
src/topology.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/topology.ts b/src/topology.ts
index 862e634..4051536 100644
--- a/src/topology.ts
+++ b/src/topology.ts
@@ -21,7 +21,7 @@
*/
export interface RequestTopologyNode {
cachegroup: string;
- parents?: [number, number] | [number] | [] | null;
+ parents?: Array<number> | null;
}
/**
@@ -29,7 +29,7 @@ export interface RequestTopologyNode {
*/
export interface ResponseTopologyNode {
cachegroup: string;
- parents: [number, number] | [number] | null;
+ parents: Array<number>;
}
/**