Skip to content

List without column raises exception#11

Merged
brouberol merged 1 commit into
brouberol:mainfrom
gehel:list_without_column_raises_exception
Oct 3, 2025
Merged

List without column raises exception#11
brouberol merged 1 commit into
brouberol:mainfrom
gehel:list_without_column_raises_exception

Conversation

@gehel

@gehel gehel commented Sep 11, 2025

Copy link
Copy Markdown
Contributor
fix(PhabricatorClient.find_tasks): don't crash on no columns

As described in the linked issue #10, when find_tasks is passed
`columns=None` it crashes as it can't iterate `None`.

`find_tasks()` now marks the `columns_phids` argument as a
non optional sequence. This documents that this argument is
expected to not be modified and that `None` should not be passed.

Caller is modified to follow this new behaviour.

fixes: #10

@gehel

gehel commented Sep 11, 2025

Copy link
Copy Markdown
Contributor Author

This CR is stacked on top of #9 and might need to be rebased before merging.

@gehel gehel force-pushed the list_without_column_raises_exception branch from daec34e to f25283e Compare September 12, 2025 08:40
As described in the linked issue brouberol#10, when find_tasks is passed
`columns=None` it crashes as it can't iterate `None`.

`find_tasks()` now marks the `columns_phids` argument as a
non optional sequence. This documents that this argument is
expected to not be modified and that `None` should not be passed.

Caller is modified to follow this new behaviour.

fixes: brouberol#10
@gehel gehel force-pushed the list_without_column_raises_exception branch from f25283e to f787ed6 Compare October 3, 2025 12:35
@brouberol

Copy link
Copy Markdown
Owner

Thanks!

@brouberol brouberol merged commit 551c500 into brouberol:main Oct 3, 2025
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.

2 participants