projects.py passes _make_request args in the wrong order -- delete_card and update_card never work #22
Labels
No labels
api
architecture
auth
authentication
blocked
bug
chore
ci/cd
codec-constraints
component:blitz
component:chatter
component:entertainment
component:foodchain
component:forgejo-client
component:gatekeeper
component:mappy
component:monads
component:spiffy
deduplication
dependencies
documentation
enhancement
feature
fix
graphics
in-progress
lang:go
lang:python
lang:rust
lang:shell
lang:toml
lang:typescript
performance
pkg:agent
pkg:ai
pkg:coding-agent
pkg:tui
priority:critical
priority:high
priority:low
priority:medium
ready
resolution
review
security
technical-debt
testing
tracking
vendor
video-encoding
workgroup
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kade/forgejo-client#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
_make_request's signature is_make_request(endpoint, method=...), butmodules/projects.pycalls it with the arguments reversed:So
endpoint="DELETE"andmethod=<a URL>. That never reaches the network; ittrips the
raise ValueError(f"Unsupported method: {url}")branch, which theblanket handler swallows into
None.delete_cardalways returnsFalseandupdate_cardalways returnsNone.Fix (in the working tree, part of the client.py rewrite)
Swap to
self.client._make_request(url, method="DELETE", ...)/(url, method="PATCH", ...).Note: no regression test is included for the kanban module in this pass; the fix
is positional only and the surrounding live-service tests are the only coverage.
A test asserting the recorded method/url would be the natural follow-up.