Skip to content

Commit

Permalink
[PLAT-13154]: Server requesrs over HTTPS
Browse files Browse the repository at this point in the history
Summary: Server requesrs over HTTPS

Test Plan: Server requesrs over HTTPS

Reviewers: cdavid

Reviewed By: cdavid

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D33243
  • Loading branch information
rajmaddy89 authored and asrinivasanyb committed Mar 18, 2024
1 parent 4a65f16 commit 1c0d687
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions managed/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion managed/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.50",
"@yugabytedb/troubleshoot-ui": "1.0.51",
"ace-builds": "1.4.12",
"axios": "0.21.3",
"bootstrap": "3.4.1",
Expand Down
4 changes: 2 additions & 2 deletions troubleshoot/troubleshooting-framework-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion troubleshoot/troubleshooting-framework-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yugabytedb/troubleshoot-ui",
"version": "1.0.50",
"version": "1.0.51",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions troubleshoot/troubleshooting-framework-ui/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ApiService {

// Fetches list of anomalies
fetchAnamolies = (universeUuid: string, startTime?: Date | null, endTime?: Date | null) => {
const requestURL = IN_DEVELOPMENT_MODE ? 'http://localhost:8080/anomalies' : 'http://10.9.15.156:8080/anomalies';
const requestURL = IN_DEVELOPMENT_MODE ? 'http://localhost:8080/anomalies' : 'https://10.9.15.156:8443/anomalies';
const params: any = {
universe_uuid: universeUuid
}
Expand All @@ -33,7 +33,7 @@ class ApiService {
fetchAnamoliesById = (universeUuid: string, anomalyUuid: string) => {
console.warn('process.env.REACT_APP_YUGAWARE_API_URL', process?.env?.REACT_APP_YUGAWARE_API_URL);
console.warn('IN_DEVELOPMENT_MODE', IN_DEVELOPMENT_MODE);
const requestURL = IN_DEVELOPMENT_MODE ? `http://localhost:8080/anomalies/${anomalyUuid}` : `http://10.9.15.156:8080/anomalies/${anomalyUuid}`;
const requestURL = IN_DEVELOPMENT_MODE ? `http://localhost:8080/anomalies/${anomalyUuid}` : `https://10.9.15.156:8443/anomalies/${anomalyUuid}`;
const params = {
universe_uuid: universeUuid
}
Expand All @@ -43,7 +43,7 @@ class ApiService {

// Fetches graphs and supporting data for troubleshooting
fetchGraphs = (universeUuid: String, data: any) => {
const requestUrl = IN_DEVELOPMENT_MODE ? `http://localhost:8080/graphs` : `http://10.9.15.156:8080/graphs`;
const requestUrl = IN_DEVELOPMENT_MODE ? 'http://localhost:8080/graphs' : 'https://10.9.15.156:8443/graphs';
return axios.post<GraphResponse[]>(requestUrl, data, {
params: {
universe_uuid: universeUuid
Expand Down

0 comments on commit 1c0d687

Please sign in to comment.