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

🪟 🔧 remove cyclic dependencies with cloud routes #21424

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

teallarson
Copy link
Contributor

What

Removes cyclic dependency in our cloud routes to unblock part of #21421

How

Updates our cloud routes to use cloudRoutePaths in the same manner that OSS uses routePaths

Recommended reading order

  1. cloudRoutePaths.tsx
  2. others

@octavia-squidington-iv octavia-squidington-iv added the area/frontend Related to the Airbyte webapp label Jan 13, 2023
@teallarson teallarson changed the title create cloudRoutePaths and update usages of CloudRoutes 🪟 🔧 remove cyclic dependencies in cloud routes imports Jan 13, 2023
@teallarson teallarson changed the title 🪟 🔧 remove cyclic dependencies in cloud routes imports 🪟 🔧 remove cyclic dependencies with cloud routes Jan 13, 2023
@teallarson teallarson requested a review from timroes January 13, 2023 20:46
@teallarson teallarson marked this pull request as ready for review January 13, 2023 20:47
Comment on lines +1 to +19
export enum CloudRoutes {
Root = "/",
AuthFlow = "/auth_flow",

Metrics = "metrics",
SelectWorkspace = "workspaces",
Credits = "credits",

// Auth routes
Signup = "/signup",
Login = "/login",
ResetPassword = "/reset-password",

// Firebase action routes
// These URLs come from Firebase emails, and all have the same
// action URL ("/verify-email") with different "mode" parameter
// TODO: use a better action URL in Firebase email template
FirebaseAction = "/verify-email",
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't think of a reason this needs to be an object as const as opposed to an enum (and the OSS routePaths is an enum so it seems right?)

Copy link
Collaborator

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested locally for some routes and nothing seems to be broken by the change.

@timroes timroes merged commit 8c9e75b into master Jan 16, 2023
@timroes timroes deleted the teal/remove-cyclic-dependency-in-routes branch January 16, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants