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(login): Redirect after login based on user roles 2 #1028

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

tiffanyvu
Copy link
Collaborator

🎫 Linked Ticket

OY2-32210

💬 Description / Notes

Users with no appropriate roles were being redirected to the dashboard after login, however, the dashboard page should only accessible to users with appropriate roles. Users without these roles should be redirected to the homepage.

🛠 Changes

If a user logs in and doesn't have the appropriate roles, the user will be redirected to the home page instead of the dashboard.

📸 Screenshots / Demo

@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:02 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2-app January 15, 2025 20:02 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2-kibana January 15, 2025 20:02 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:02 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:02 — with GitHub Actions Inactive
Copy link
Contributor

github-actions bot commented Jan 15, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 86.46% 7696 / 8901
🔵 Statements 85.63% 8082 / 9438
🔵 Functions 80.04% 2294 / 2866
🔵 Branches 55.74% 1573 / 2822
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
react-app/src/features/dashboard/index.tsx 21.05% 0% 12.5% 21.05% 22-34, 41-88
Generated in workflow #1529 for commit 1fd7009 by the Vitest Coverage Report Action

@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:07 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:07 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:09 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2-kibana January 15, 2025 20:09 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:09 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2-app January 15, 2025 20:09 — with GitHub Actions Inactive
@tiffanyvu tiffanyvu temporarily deployed to details-actions-redirect-2 January 15, 2025 20:09 — with GitHub Actions Inactive
@ndebrah-fearless ndebrah-fearless merged commit 4f03c81 into main Jan 16, 2025
15 checks passed
@ndebrah-fearless ndebrah-fearless deleted the details-actions-redirect-2 branch January 16, 2025 14:23
Copy link
Contributor

🎉 This PR is included in version 1.5.0-val.109 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants