Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
chore(RHINENG-10786): Move away from /preview (#702)
Browse files Browse the repository at this point in the history
This removes obsolete files and profile entries. It has no effect on the behaviour.

https://issues.redhat.com/browse/RHINENG-10786
  • Loading branch information
gkarat authored Aug 5, 2024
1 parent 859b7ae commit e594d95
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion config/dev.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = require('@redhat-cloud-services/frontend-components-config');
const proxyConfiguration = {
rootFolder: resolve(__dirname, '../'),
useProxy: process.env.PROXY === 'true',
appUrl: process.env.BETA ? [ '/beta/insights/drift', '/preview/insights/drift' ] : [ '/insights/drift' ],
appUrl: [ '/insights/drift' ],
...(process.env.BETA === 'true' && { deployment: 'beta/apps' }),
env: process.env.BETA ? 'stage-beta' : 'stage-stable',
proxyVerbose: true,
Expand Down
2 changes: 0 additions & 2 deletions profiles/local-drift-dev-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ routes[`/api/drift`] = { host: `http://localhost:8084` };
routes[`/api/historical-system-profiles`] = { host: `http://localhost:8085` };

// frontend
routes[`/preview/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/preview/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };

module.exports = { routes };
2 changes: 0 additions & 2 deletions profiles/local-frontend-and-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const DRIFT_PORT = 8080;
const BASELINE_PORT = 8085;
const routes = {};

routes[`/preview/${SECTION}/${DRIFT_APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/${SECTION}/${DRIFT_APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/preview/apps/${DRIFT_APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/apps/${DRIFT_APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/api/${BASELINE_APP_ID}`] = { host: `http://localhost:${BASELINE_PORT}` };

Expand Down
2 changes: 0 additions & 2 deletions profiles/local-frontend-and-ephemeral-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ routes[`/api/drift`] = { host: `http://localhost:8084` };
routes[`/api/historical-system-profiles`] = { host: `http://localhost:8085` };

// frontend
routes[`/preview/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/preview/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };

module.exports = { routes };
2 changes: 0 additions & 2 deletions profiles/local-frontend-and-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ routes[`/api/drift`] = { host: `http://localhost:8001` };
routes[`/api/historical-system-profiles`] = { host: `http://localhost:8004` };

// frontend
routes[`/preview/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/preview/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };

module.exports = { routes };
2 changes: 0 additions & 2 deletions profiles/local-frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ const APP_ID = 'drift';
const FRONTEND_PORT = 8002;
const routes = {};

routes[`/preview/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/${SECTION}/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/preview/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };
routes[`/apps/${APP_ID}`] = { host: `http://localhost:${FRONTEND_PORT}` };

module.exports = { routes };
15 changes: 0 additions & 15 deletions src/Utilities/getBaseName.js

This file was deleted.

0 comments on commit e594d95

Please sign in to comment.