Skip to content
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

fix ansible bundle trial redirects #2987

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

Hyperkid123
Copy link
Contributor

Jira: https://issues.redhat.com/browse/RHCLOUD-26705

Adds back check that redirects users to specific pages if they are not entitled to the current route.

@himdel can you please verify the route rule? Or do we know who knows to which routes the redirect should apply?

@Hyperkid123 Hyperkid123 requested a review from a team January 3, 2025 09:35
@Hyperkid123
Copy link
Contributor Author

/retest

import { ChromeUser } from '@redhat-cloud-services/types';
import { isAnsibleTrialFlagActive } from '../utils/isAnsibleTrialFlagActive';

const ignoredPaths = ['/ansible/trial/*'];
Copy link

@himdel himdel Jan 3, 2025

Choose a reason for hiding this comment

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

Is the path correct? (and on line 16)

Shouldn't it be /ansible/ansible-dashboard/trial/*?
(Also /ansible/ansible-dashboard/trial itself.)

@himdel
Copy link

himdel commented Jan 3, 2025

Or do we know who knows to which routes the redirect should apply?

Definitely /ansible/ansible-dashboard/ (except the trial routes), /ansible/automation-hub and /ansible/automation-analytics. (Not sure about any other ansible routes, such as lightspeed.)

@Hyperkid123
Copy link
Contributor Author

/retest

@Hyperkid123
Copy link
Contributor Author

OK I've updated the trial routes.

@Hyperkid123
Copy link
Contributor Author

OK. I've updated the routes.

@Hyperkid123 Hyperkid123 merged commit 8cb34c7 into RedHatInsights:master Jan 6, 2025
10 of 13 checks passed
@Hyperkid123 Hyperkid123 deleted the ansible-trial branch January 6, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants