-
Notifications
You must be signed in to change notification settings - Fork 186
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(automate): redirect github auth flow to workspace if possible #3632
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems legit, please have a frontend engineer review too
@@ -77,7 +80,7 @@ const props = defineProps<{ | |||
isAuthorized: boolean | |||
templates: CreatableFunctionTemplate[] | |||
githubOrgs: string[] | |||
workspaceId?: string | |||
workspace?: Pick<Workspace, 'id' | 'slug'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roger, done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nearly there
import type { AutomateFunctionEditDialog_WorkspaceFragment } from '~/lib/common/generated/gql/graphql' | ||
|
||
graphql(` | ||
fragment AutomateFunctionEditDialog_Workspace on Workspace { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this one used in other fragments or queries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated 👍
Description & motivation
/functions
in all casesChanges:
workspaceSlug
in request session if available/workspaces/:slug/functions
at end if value is available (preserving the private function creation flow)Validated with a personal github app locally, may be difficult to test (can help)