From 4a65f165eba01d0ac838ba720d14aacceb8ca3bb Mon Sep 17 00:00:00 2001 From: Rajagopalan Madhavan Date: Sat, 16 Mar 2024 12:41:50 -0400 Subject: [PATCH] [PLAT-13154]: Modify url endpoint for TS service Summary: Modify url endpoint for TS servic Test Plan: Modify url endpoint for TS servic Reviewers: kvikraman Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D33242 --- managed/ui/package-lock.json | 14 +++++++------- managed/ui/package.json | 2 +- .../troubleshooting-framework-ui/package-lock.json | 4 ++-- .../troubleshooting-framework-ui/package.json | 2 +- .../troubleshooting-framework-ui/src/api.ts | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/managed/ui/package-lock.json b/managed/ui/package-lock.json index ed5989d855e7..884b28619ae7 100644 --- a/managed/ui/package-lock.json +++ b/managed/ui/package-lock.json @@ -24,7 +24,7 @@ "@types/react-select": "3.0.19", "@types/redux-form": "8.3.1", "@types/yup": "0.29.11", - "@yugabytedb/troubleshoot-ui": "1.0.49", + "@yugabytedb/troubleshoot-ui": "1.0.50", "ace-builds": "1.4.12", "axios": "0.21.3", "bootstrap": "3.4.1", @@ -9512,9 +9512,9 @@ } }, "node_modules/@yugabytedb/troubleshoot-ui": { - "version": "1.0.49", - "resolved": "https://registry.npmjs.org/@yugabytedb/troubleshoot-ui/-/troubleshoot-ui-1.0.49.tgz", - "integrity": "sha512-bXS3Qu4tEAfJIBvKpA1D6HAJew9NPlbj3VG+rvNIfzhh9g4v48z1rFVcPK1UgYf48IBa/HqK3lUmaifJKC93dg==", + "version": "1.0.50", + "resolved": "https://registry.npmjs.org/@yugabytedb/troubleshoot-ui/-/troubleshoot-ui-1.0.50.tgz", + "integrity": "sha512-vQC4LmyGnAS7SzK094Vb/d7tmXk7CHesRHGJWCUgcsHwfnrd4DcQ8LeJeI4PlTCEcxxyj9SnnoRxjnxBWN5wkg==", "peerDependencies": { "@material-ui/core": "4.12.3", "@material-ui/icons": "4.11.2", @@ -44443,9 +44443,9 @@ } }, "@yugabytedb/troubleshoot-ui": { - "version": "1.0.49", - "resolved": "https://registry.npmjs.org/@yugabytedb/troubleshoot-ui/-/troubleshoot-ui-1.0.49.tgz", - "integrity": "sha512-bXS3Qu4tEAfJIBvKpA1D6HAJew9NPlbj3VG+rvNIfzhh9g4v48z1rFVcPK1UgYf48IBa/HqK3lUmaifJKC93dg==", + "version": "1.0.50", + "resolved": "https://registry.npmjs.org/@yugabytedb/troubleshoot-ui/-/troubleshoot-ui-1.0.50.tgz", + "integrity": "sha512-vQC4LmyGnAS7SzK094Vb/d7tmXk7CHesRHGJWCUgcsHwfnrd4DcQ8LeJeI4PlTCEcxxyj9SnnoRxjnxBWN5wkg==", "requires": {} }, "3d-view": { diff --git a/managed/ui/package.json b/managed/ui/package.json index e1d2b25f3bd0..5ad811ef9fc3 100644 --- a/managed/ui/package.json +++ b/managed/ui/package.json @@ -75,7 +75,7 @@ "@types/react-select": "3.0.19", "@types/redux-form": "8.3.1", "@types/yup": "0.29.11", - "@yugabytedb/troubleshoot-ui": "1.0.49", + "@yugabytedb/troubleshoot-ui": "1.0.50", "ace-builds": "1.4.12", "axios": "0.21.3", "bootstrap": "3.4.1", diff --git a/troubleshoot/troubleshooting-framework-ui/package-lock.json b/troubleshoot/troubleshooting-framework-ui/package-lock.json index 080325b732c0..7e4d8229a499 100644 --- a/troubleshoot/troubleshooting-framework-ui/package-lock.json +++ b/troubleshoot/troubleshooting-framework-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "@yugabytedb/troubleshoot-ui", - "version": "1.0.49", + "version": "1.0.50", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@yugabytedb/troubleshoot-ui", - "version": "1.0.49", + "version": "1.0.50", "devDependencies": { "@date-io/date-fns": "1.3.13", "@material-ui/core": "4.12.3", diff --git a/troubleshoot/troubleshooting-framework-ui/package.json b/troubleshoot/troubleshooting-framework-ui/package.json index 19f36adab6d5..c28cec34eb8a 100644 --- a/troubleshoot/troubleshooting-framework-ui/package.json +++ b/troubleshoot/troubleshooting-framework-ui/package.json @@ -1,6 +1,6 @@ { "name": "@yugabytedb/troubleshoot-ui", - "version": "1.0.49", + "version": "1.0.50", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/types.d.ts", diff --git a/troubleshoot/troubleshooting-framework-ui/src/api.ts b/troubleshoot/troubleshooting-framework-ui/src/api.ts index 81db15cb160c..d8d1ed5bd0b7 100644 --- a/troubleshoot/troubleshooting-framework-ui/src/api.ts +++ b/troubleshoot/troubleshooting-framework-ui/src/api.ts @@ -16,7 +16,7 @@ class ApiService { // Fetches list of anomalies fetchAnamolies = (universeUuid: string, startTime?: Date | null, endTime?: Date | null) => { - const requestURL = `${ROOT_URL}/anomalies`; + const requestURL = IN_DEVELOPMENT_MODE ? 'http://localhost:8080/anomalies' : 'http://10.9.15.156:8080/anomalies'; const params: any = { universe_uuid: universeUuid }