Skip to content

Add task_type column for tasks table#46

Open
dwhswenson wants to merge 1 commit into
mainfrom
task-type-column
Open

Add task_type column for tasks table#46
dwhswenson wants to merge 1 commit into
mainfrom
task-type-column

Conversation

@dwhswenson

Copy link
Copy Markdown
Member

Resolves #41.

This only adds the column to the table; it does not add anything to support using that when checking out a task (out of scope for this PR).

Also adds a convenience task_row in testing, which makes it easier to test with optional columns in rows.

Assisted-by: Codex.app:GPT-5.4

This only adds the column to the table; it does not add anything to
support using that when checking out a task (out of scope for this PR).

Also adds a convenience `task_row` in testing, which makes it easier to
test with optional columns in rows.

Assisted-by: Codex.app:GPT-5.4
@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.03%. Comparing base (520525e) to head (f89bffa).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
+ Coverage   91.44%   99.03%   +7.59%     
==========================================
  Files           7        6       -1     
  Lines         526      519       -7     
==========================================
+ Hits          481      514      +33     
+ Misses         45        5      -40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dwhswenson dwhswenson requested a review from atravitz May 28, 2026 22:38

@atravitz atravitz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

one optional addition, otherwise lgtm!


def test_add_task_network_unknown_task_type_key(self, fresh_db,
diamond_taskid_network):
with pytest.raises(ValueError, match="unknown tasks"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
with pytest.raises(ValueError, match="unknown tasks"):
with pytest.raises(ValueError, match=r"unknown tasks: \[\'missing\'\]"):

Maybe unnecessary, but I like to make sure it's reporting the correct thing this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add task_type column to task database

2 participants