Skip to content

refactor: poll for git auth updates when creating a workspace #9804

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 13 commits into from
Sep 26, 2023
Prev Previous commit
Next Next commit
🧹
  • Loading branch information
aslilac committed Sep 22, 2023
commit 8669a5fe00af6953ef2933f6d37a89eaaf14e73a
3 changes: 1 addition & 2 deletions site/src/pages/GitAuthPage/GitAuthPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { Avatar } from "components/Avatar/Avatar";
import { CopyButton } from "components/CopyButton/CopyButton";
import { SignInLayout } from "components/SignInLayout/SignInLayout";
import { Welcome } from "components/Welcome/Welcome";
import { FC, useEffect } from "react";
import { REFRESH_GITAUTH_BROADCAST_CHANNEL } from "utils/gitAuth";
import { type FC } from "react";

export interface GitAuthPageViewProps {
gitAuth: GitAuth;
Expand Down
3 changes: 0 additions & 3 deletions site/src/xServices/createWorkspace/createWorkspaceXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@ import {
checkAuthorization,
createWorkspace,
getTemplateByName,
getTemplateVersionGitAuth,
getTemplateVersionRichParameters,
} from "api/api";
import {
CreateWorkspaceRequest,
Template,
TemplateVersionGitAuth,
TemplateVersionParameter,
User,
Workspace,
WorkspaceBuildParameter,
} from "api/typesGenerated";
import { assign, createMachine } from "xstate";
import { paramsUsedToCreateWorkspace } from "utils/workspace";
import { REFRESH_GITAUTH_BROADCAST_CHANNEL } from "utils/gitAuth";

export type CreateWorkspaceMode = "form" | "auto";

Expand Down