Skip to content

fix(RHINENG-10786): Remove occurrence of /preview #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
### Running a development server

1. Install dependencies with `npm install`.
2. Run development server with `npm run start` then in terminal choose stage and beta or stable environment.
3. Local version of the application is available at https://stage.foo.redhat.com:1337/preview/openshift/insights/advisor (https://stage.foo.redhat.com:1337/openshift/insights/advisor for the non-beta release).
2. Run development server with `npm run start` then in terminal choose stage and preview or stable environment.
3. Local version of the application is available at https://stage.foo.redhat.com:1337/openshift/insights/advisor.

### Running in the production environment

1. Run development server with `npm run start` then in terminal choose prod and beta or stable environment.
2. Local version of the application is available at https://prod.foo.redhat.com:1337/preview/openshift/insights/advisor (https://prod.foo.redhat.com:1337/openshift/insights/advisor for the non-beta release).
1. Run development server with `npm run start` then in terminal choose prod and preview or stable environment.
2. Local version of the application is available at https://prod.foo.redhat.com:1337/openshift/insights/advisor.

### Using insights-results-aggregator-mock

Expand Down
20 changes: 0 additions & 20 deletions profiles/local-frontend-and-api.js

This file was deleted.

17 changes: 0 additions & 17 deletions profiles/local-frontend.js

This file was deleted.

6 changes: 1 addition & 5 deletions src/Components/ClusterHeader/ClusterHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ export const ClusterHeader = ({ clusterId, clusterData, clusterInfo }) => {
const dropDownItems = [
<DropdownItem
key="link"
to={
location.origin +
(location.pathname.includes('preview') ? `/preview` : '') +
`/openshift/details/${clusterId}`
}
to={location.origin + `/openshift/details/${clusterId}`}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to={location.origin + `/openshift/details/${clusterId}`}
to={`${location.origin}/openshift/details/${clusterId}`}

>
<snap>{intl.formatMessage(messages.clusterDetailsRedirect)}</snap>
</DropdownItem>,
Expand Down