diff --git a/CHANGELOG.md b/CHANGELOG.md index 81e5854a56..9401950a5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - SANs information to the SSL key endpoint and Traffic Portal page. - Added definition for `heartbeat.polling.interval` for CDN Traffic Monitor config in API documentation. - New `pkg` script options, `-h`, `-s`, `-S`, and `-L`. +- Added `Invalidation Type` (REFRESH or REFETCH) for invalidating content to Traffic Portal. ### Fixed - [#6197](https://github.com/apache/trafficcontrol/issues/6197) - TO `/deliveryservices/:id/routing` makes requests to all TRs instead of by CDN. diff --git a/cache-config/testing/ort-tests/tcdata/todb.go b/cache-config/testing/ort-tests/tcdata/todb.go index 2de9861739..68eddb7e41 100644 --- a/cache-config/testing/ort-tests/tcdata/todb.go +++ b/cache-config/testing/ort-tests/tcdata/todb.go @@ -107,7 +107,7 @@ func SetupRoles(db *sql.DB) error { sqlStmt := ` INSERT INTO role (name, description, priv_level) VALUES ('disallowed','Block all access',0) ON CONFLICT DO NOTHING; -INSERT INTO role (name, description, priv_level) VALUES ('read-only user','Block all access', 10) ON CONFLICT DO NOTHING; +INSERT INTO role (name, description, priv_level) VALUES ('read-only','Block all access', 10) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('operations','Block all access', 20) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('admin','super-user', 30) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('portal','Portal User', 2) ON CONFLICT DO NOTHING; diff --git a/traffic_ops/testing/api/v2/todb_test.go b/traffic_ops/testing/api/v2/todb_test.go index b5aa360549..297fbd97e0 100644 --- a/traffic_ops/testing/api/v2/todb_test.go +++ b/traffic_ops/testing/api/v2/todb_test.go @@ -106,7 +106,7 @@ func SetupRoles(db *sql.DB) error { sqlStmt := ` INSERT INTO role (name, description, priv_level) VALUES ('disallowed','Block all access',0) ON CONFLICT DO NOTHING; -INSERT INTO role (name, description, priv_level) VALUES ('read-only user','Block all access', 10) ON CONFLICT DO NOTHING; +INSERT INTO role (name, description, priv_level) VALUES ('read-only','Block all access', 10) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('operations','Block all access', 20) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('admin','super-user', 30) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('portal','Portal User', 2) ON CONFLICT DO NOTHING; diff --git a/traffic_ops/testing/api/v3/todb_test.go b/traffic_ops/testing/api/v3/todb_test.go index 088717fdc8..601dceb802 100644 --- a/traffic_ops/testing/api/v3/todb_test.go +++ b/traffic_ops/testing/api/v3/todb_test.go @@ -106,7 +106,7 @@ func SetupRoles(db *sql.DB) error { sqlStmt := ` INSERT INTO role (name, description, priv_level) VALUES ('disallowed','Block all access',0) ON CONFLICT DO NOTHING; -INSERT INTO role (name, description, priv_level) VALUES ('read-only user','Block all access', 10) ON CONFLICT DO NOTHING; +INSERT INTO role (name, description, priv_level) VALUES ('read-only','Block all access', 10) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('operations','Block all access', 20) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('admin','super-user', 30) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('portal','Portal User', 2) ON CONFLICT DO NOTHING; diff --git a/traffic_ops/testing/api/v4/crconfig_test.go b/traffic_ops/testing/api/v4/crconfig_test.go index 495511e692..aac5ab4ba0 100644 --- a/traffic_ops/testing/api/v4/crconfig_test.go +++ b/traffic_ops/testing/api/v4/crconfig_test.go @@ -61,7 +61,7 @@ func SnapshotWithReadOnlyUser(t *testing.T) { RegistrationSent: new(time.Time), LocalPassword: util.StrPtr("test_pa$$word"), ConfirmLocalPassword: util.StrPtr("test_pa$$word"), - Role: "read-only user", + Role: "read-only", } user.Email = util.StrPtr("email_tm@domain.com") user.TenantID = resp.Response[0].ID diff --git a/traffic_ops/testing/api/v4/tc-fixtures.json b/traffic_ops/testing/api/v4/tc-fixtures.json index 9d04c57ded..55238dd36f 100644 --- a/traffic_ops/testing/api/v4/tc-fixtures.json +++ b/traffic_ops/testing/api/v4/tc-fixtures.json @@ -5541,7 +5541,7 @@ "phoneNumber": "", "postalCode": "", "publicSshKey": "", - "role": "read-only user", + "role": "read-only", "stateOrProvince": "", "tenant": "tenant1", "uid": 0, diff --git a/traffic_ops/testing/api/v4/todb_test.go b/traffic_ops/testing/api/v4/todb_test.go index 83f34d41a4..60e833f49c 100644 --- a/traffic_ops/testing/api/v4/todb_test.go +++ b/traffic_ops/testing/api/v4/todb_test.go @@ -100,7 +100,7 @@ func SetupRoles(db *sql.DB) error { sqlStmt := ` INSERT INTO role (name, description, priv_level) VALUES ('disallowed','Block all access',0) ON CONFLICT DO NOTHING; -INSERT INTO role (name, description, priv_level) VALUES ('read-only user','Block all access', 10) ON CONFLICT DO NOTHING; +INSERT INTO role (name, description, priv_level) VALUES ('read-only','Block all access', 10) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('operations','Block all access', 20) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('admin','super-user', 30) ON CONFLICT DO NOTHING; INSERT INTO role (name, description, priv_level) VALUES ('portal','Portal User', 2) ON CONFLICT DO NOTHING; diff --git a/traffic_ops/testing/api/v4/topologies_test.go b/traffic_ops/testing/api/v4/topologies_test.go index 05db1cd5fa..c9fa5a8dbf 100644 --- a/traffic_ops/testing/api/v4/topologies_test.go +++ b/traffic_ops/testing/api/v4/topologies_test.go @@ -996,7 +996,7 @@ func CRUDTopologyReadOnlyUser(t *testing.T) { RegistrationSent: new(time.Time), LocalPassword: util.StrPtr("test_pa$$word"), ConfirmLocalPassword: util.StrPtr("test_pa$$word"), - Role: "read-only user", + Role: "read-only", } user.Email = util.StrPtr("email@domain.com") user.TenantID = resp.Response[0].ID diff --git a/traffic_portal/app/src/common/api/JobService.js b/traffic_portal/app/src/common/api/JobService.js index 4db2d6161d..39155f9552 100644 --- a/traffic_portal/app/src/common/api/JobService.js +++ b/traffic_portal/app/src/common/api/JobService.js @@ -20,7 +20,7 @@ var JobService = function($http, ENV) { this.getJobs = function(queryParams) { - return $http.get(ENV.api.stable + 'jobs', {params: queryParams}).then( + return $http.get(ENV.api.unstable + 'jobs', {params: queryParams}).then( function(result) { return result.data.response; }, @@ -31,7 +31,7 @@ var JobService = function($http, ENV) { }; this.createJob = function(job) { - return $http.post(ENV.api.stable + 'jobs', job).then( + return $http.post(ENV.api.unstable + 'jobs', job).then( function (result) { return result; }, @@ -42,7 +42,7 @@ var JobService = function($http, ENV) { }; this.deleteJob = function(id) { - return $http.delete(ENV.api.stable + 'jobs', {params: {id: id}}).then( + return $http.delete(ENV.api.unstable + 'jobs', {params: {id: id}}).then( function(result) { return result; }, diff --git a/traffic_portal/app/src/common/modules/form/deliveryServiceJob/form.deliveryServiceJob.tpl.html b/traffic_portal/app/src/common/modules/form/deliveryServiceJob/form.deliveryServiceJob.tpl.html index 92a4139a63..470a9c6a1f 100644 --- a/traffic_portal/app/src/common/modules/form/deliveryServiceJob/form.deliveryServiceJob.tpl.html +++ b/traffic_portal/app/src/common/modules/form/deliveryServiceJob/form.deliveryServiceJob.tpl.html @@ -40,14 +40,20 @@ -
+
- - Required Whole Number - Too Long - Whole Number - + + Required Whole Number + +
+
+
+ +
+ + Required