Bugfix 114/default in progress column #118
No reviewers
Labels
No labels
bug
ci
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
performance
priority
P0
priority
P1
priority
P2
question
refactor
size
L
size
M
size
S
size
XL
size
XS
tests
trivial
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/paso!118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix-112/default-in-progress-column"
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?
Checklist
CONTRIBUTING.mdgo test ./... -race) locallygofmt -w .andgolangci-lint run ./...respectivelyREADME.mdif applicableSummary
Fixes: #114
Sets the seeded inprogress column to the default inprogress column. used in cli flags. this is a special column.

Snapshot tests needed updating. here is the old to new:
Update test flakiness too
Informational Warning:
The snapshot tests have been changed.
Please add a screenshot showing what has been changed, and a description of why it was changed.
If you do not provide an explanation and screenshot in 3 days, this PR will be closed.
@TheNoeTrevino
Changed snapshot files (2 files)
internal/testing/snapshots/cli/testdata/e2e/column-list.goldeninternal/testing/snapshots/cli/testdata/e2e/task-show.golden@ -178,3 +178,4 @@HoldsInProgressTasks: true,})if err != nil {return fmt.Errorf("failed to create In Progress column: %w", err)The second commit message says the fixture was corrected for "all three default columns (ready, in-progress, completed)", but
CreateDefaultColumnshere only addsHoldsInProgressTasks: true. The "Todo" and "Done" columns still have no flags set in production.CreateTestProjectnow creates Todo withHoldsReadyTasks: trueand Done withHoldsCompletedTasks: true, so tests run against a setup that users never actually get fromCreateDefaultColumns. Ifpaso task readyandpaso task donerequire their column flags (the same enforcement that caused #114), those commands will still fail for any project created via the CLI.Either:
HoldsReadyTasks: trueto the Todo column andHoldsCompletedTasks: trueto the Done column here to match the fixture, orready/doneand revert the fixture's extra flag assignments for those two columns.Review summary
One substantive issue: the production fix in
migrations.gois incomplete relative to the test fixture update.CreateDefaultColumnsnow correctly setsHoldsInProgressTasks: truefor "In Progress", but the "Todo" and "Done" columns remain unflagged. At the same time,CreateTestProjectinfixtures/db.gowas updated to set all three flags (ready, in-progress, completed). This creates a divergence — tests run against a fully-flagged setup that the production function never produces. The column-list golden snapshot confirms the e2e test is driven by the fixture, notCreateDefaultColumns, so the snapshot change masks the gap rather than validating it.If
paso task readyandpaso task doneenforce their column flags the same waypaso task in-progressdoes, those commands will fail for any project created via the CLI, reproducing the same class of bug as #114.Score: 7/10