feat(project): show details in list and show #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/project-list-details"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
yt project listpreviously showed onlySHORT NAMEandID; this PR addsNAME,LEADER,ARCHIVED, andDESCRIPTIONcolumns so the list is actually useful at a glance.yt project showis updated to print the same enriched fields (name, archived, leader, description) for consistency with the list output.Projectmodel gainsname,description,archived, and an optionalleader(User);list_projectswidens the?fields=selector accordingly. All other call sites (resolve_project_id,get_project,list_project_states) continue to work since they only depend on the existing fields.--jsonstill emits the full struct, now including the new fields.Test plan
cargo fmt --checkcargo clippy --all-targets -- -D warningscargo test --all-targets(209 passed;list_projects_decodes_short_namesupdated to assert the new fields)yt project listandyt project show <SHORT>