This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
The following commit(s) were added to refs/heads/master by this push:
new d020067 Remove artificial restriction that topology parents can only
have 2 or fewer parents
new e385347 Merge pull request #4 from zrhoffman/top-unlimited-parents
d020067 is described below
commit d020067a40467dbacac825a757991059a38bee64
Author: Zach Hoffman <[email protected]>
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.
---
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>;
}
/**