Skip to content

Conversation

@johnstcn
Copy link
Member

@johnstcn johnstcn commented Nov 3, 2025

  • Adds a GetTaskByOwnerIDAndName query
  • Updates httpmw.TaskParam to fall back to task name if no task by UUID found.

Note: I originally added a tertiary fallback to lookup by workspace name but elected to remove it for simplicity.

Mostly generated by Claude with manual refactoring.

@johnstcn johnstcn self-assigned this Nov 3, 2025
@johnstcn johnstcn marked this pull request as ready for review November 3, 2025 11:24
@johnstcn johnstcn requested a review from mafredri November 3, 2025 11:24
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

With this change we can remove the custom code in codersdk (used by CLI/toolsdk).

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Minor nits/suggestions but otherwise looks pretty good. I see one of the previous comments are not addressed yet but once fixed I think this is good to go 👍🏻

@johnstcn johnstcn changed the title feat(coderd): support looking up task by name in httpmw.TaskParam feat(coderd): add lookup task by name in httpmw.TaskParam Nov 5, 2025
@johnstcn johnstcn merged commit 34f6e72 into main Nov 5, 2025
25 checks passed
@johnstcn johnstcn deleted the cj/task-link-by-name branch November 5, 2025 14:28
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants