Skip to content

Girder 5 axios upgrade - #366

Open
BryonLewis wants to merge 4 commits into
masterfrom
girder-5-axios-upgrade
Open

Girder 5 axios upgrade#366
BryonLewis wants to merge 4 commits into
masterfrom
girder-5-axios-upgrade

Conversation

@BryonLewis

@BryonLewis BryonLewis commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Upgrades axios to 1.17.0 and restores Girder-compatible query parameter serialization on RestClient.
Axios 1.x encodes nested query params with bracket notation (pipeline[name]=foo), but Girder's jsonParam() decorators expect a single parameter whose value is a JSON string (pipeline={"name":"foo"}), matching axios 0.x behavior and girder_client usage.
Without this change, consumers hit HTTP 400 on endpoints that pass objects in query params (e.g. DIVE's dive_rpc/pipeline).

Changes

  • Bump axios to ^1.17.0 and axios-mock-adapter to ^2.1.0
  • Guard err.response before reading status in logout() (network errors in axios 1.x may omit response)
  • Add legacyGirderParamsSerializer and wire it into the default RestClient axios instance
  • Unit tests for the serializer

BryonLewis and others added 4 commits November 14, 2025 10:56
Axios 1.x serializes nested params with bracket notation, but Girder
jsonParam decorators expect JSON-stringified values as axios 0.x provided.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant