SDK deserialization: project.delete (and siblings) returns bool, SDK expects String #29
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_osis#29
Loading…
Add table
Add a link
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?
hero_osis_sdk::projects::ProjectsClient::project_deletedeserializes the RPC response asString:But the server returns a boolean:
Result: every delete fails client-side with
invalid type: boolean \true`, expected a string— even though the server successfully deleted the record. UIs that rely on the returnedResult` branch to trigger a list refetch / navigation get stuck.Same pattern likely affects every domain's
*_deletemethod in the generated SDK (and any other method whose server return type isboolwhile the SDK expectsString). Worth a sweep.Fix
Regenerate the SDK client to use
rpc_call::<bool>(or a more permissiveserde_json::Value) for methods whose server signature returnsbool. Alternatively, align the server to stringify itsdeletereturn, though that's more intrusive.