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:00 UTC
[trafficcontrol-trafficops-types] branch 3.x updated (89f6389 -> 630e3ac)
This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a change to branch 3.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
from 89f6389 Version bump
new 6f656bf Remove artificial restriction that topology parents can only have 2 or fewer parents
new 630e3ac Version bump
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
package-lock.json | 4 ++--
package.json | 2 +-
src/topology.ts | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
[trafficcontrol-trafficops-types] 02/02: Version bump
Posted by oc...@apache.org.
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 630e3ac2d86d51259530b3cd54c136e8e5adbbe1
Author: ocket8888 <oc...@apache.org>
AuthorDate: Wed Jul 5 13:04:53 2023 -0600
Version bump
---
package-lock.json | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 15a0e71..9983855 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "trafficops-types",
- "version": "3.1.11",
+ "version": "3.1.12",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "trafficops-types",
- "version": "3.1.11",
+ "version": "3.1.12",
"license": "Apache-2.0",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.0.0",
diff --git a/package.json b/package.json
index 8631b72..a4522b8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "trafficops-types",
- "version": "3.1.11",
+ "version": "3.1.12",
"description": "A library for dealing with Apache Traffic Control objects",
"main": "dist/index.js",
"scripts": {
[trafficcontrol-trafficops-types] 01/02: Remove artificial restriction that topology parents can only have 2 or fewer parents
Posted by oc...@apache.org.
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>;
}
/**