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

feat(cli): add coder exp tasks list#19496

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
mafredri merged 4 commits intomainfrommafredri/feat-cli-add-exp-tasks-list
Aug 25, 2025

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedAug 22, 2025
edited
Loading

Fixescoder/internal#892
Fixescoder/internal#896

Example output:

❯ ./scripts/coder-dev.sh exp tasks listID                                    NAME                         STATUS   STATE  STATE CHANGED  MESSAGEa7a27450-ca16-4553-a6c5-9d6f04808569  task-hardcore-herschel-bd08  running  idle   5h22m3s ago    Listed root directory contents, working directory reset50f92138-f463-4f2b-abad-1816264b065f  task-musing-dewdney-f058     running  idle   6h3m8s ago     Completed arithmetic calculation

bpmct reacted with heart emoji
@codercoder deleted a comment fromcoderabbitaibotAug 22, 2025
@mafredrimafredriforce-pushed themafredri/feat-cli-add-exp-tasks-list branch from4310e5d tob269f85CompareAugust 22, 2025 15:41
@codercoder deleted a comment fromcoderabbitaibotAug 22, 2025
@mafredrimafredriforce-pushed themafredri/feat-cli-add-exp-tasks-list branch fromc1a203d toea4b615CompareAugust 22, 2025 15:51
@codercoder deleted a comment fromcoderabbitaibotAug 22, 2025
@mafredrimafredriforce-pushed themafredri/feat-cli-add-exp-tasks-list branch 4 times, most recently from5d1bd5b to5d0a8ccCompareAugust 25, 2025 11:51
@mafredrimafredri marked this pull request as ready for reviewAugust 25, 2025 11:52
r.Route("/{user}",func(r chi.Router) {
r.Use(httpmw.ExtractOrganizationMembersParam(options.Database,api.HTTPAuth.Authorize))

r.Get("/",api.tasksList)
Copy link
MemberAuthor

@mafredrimafredriAug 25, 2025
edited
Loading

Choose a reason for hiding this comment

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

Review: This path was not conducive to listing other members tasks (e.g. owner).

Note: I don't think it is, but would appreciate validation if the above httpmw is needed for the list endpoint.

Copy link
Member

Choose a reason for hiding this comment

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

I don't seehttpmw.OrganizationMemberParam in use incoderd/aitasks.go so I think you're good 👍

@mafredrimafredriforce-pushed themafredri/feat-cli-add-exp-tasks-list branch from5d0a8cc to5665d32CompareAugust 25, 2025 11:57
@mafredrimafredriforce-pushed themafredri/feat-cli-add-exp-tasks-list branch from5665d32 to9a5f639CompareAugust 25, 2025 11:58
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.

:shipit:

typetaskListRowstruct {
Task codersdk.Task`table:"t,recursive_inline"`

StateChangedstring`table:"state changed"`
Copy link
Member

Choose a reason for hiding this comment

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

Nit: suggest namingStateChangedAt or similar so that the semantics are clearer

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Since this is relative, how aboutStateChangeAgo?

johnstcn reacted with thumbs up emoji
@mafredrimafredrienabled auto-merge (squash)August 25, 2025 12:53
@mafredrimafredri merged commit836324e intomainAug 25, 2025
26 checks passed
@mafredrimafredri deleted the mafredri/feat-cli-add-exp-tasks-list branchAugust 25, 2025 13:03
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 25, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@DanielleMaywoodDanielleMaywoodAwaiting requested review from DanielleMaywood

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Tasks CLI: Addlist command Tasks CLI: Implementcoder task subcommand
2 participants
@mafredri@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp