Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: untangle workspace creation from http logic#19639

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
DanielleMaywood merged 3 commits intomainfromdanielle/refactor/create-workspace
Aug 29, 2025

Conversation

DanielleMaywood
Copy link
Contributor

@DanielleMaywoodDanielleMaywood commentedAug 29, 2025
edited
Loading

Coder Tasks requires us to create a workspace, but we want to be able to return acodersdk.Task instead of acodersdk.Workspace. This requires untanglingcreateWorkspace from directly writing tohttp.ResponseWriter.

@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewAugust 29, 2025 12:18
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

LGTM, one non-blocking suggestion that could be deferred

}

typeresponseErrorstruct {
statusint
Copy link
Member

Choose a reason for hiding this comment

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

How about embedding or extendingcodersdk.Error instead? It already has these fields.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'm unsure about that for now,codersdk.Error also contains a few extra fields such asmethodurl andHelper which I'm not sure make such sense given the context

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough 👍

@DanielleMaywoodDanielleMaywood merged commit29a7313 intomainAug 29, 2025
47 of 50 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/refactor/create-workspace branchAugust 29, 2025 13:17
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@mafredrimafredrimafredri approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@DanielleMaywood@mafredri@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp