Skip to content

Conversation

@uid0
Copy link
Owner

@uid0 uid0 commented Jan 15, 2026

Note

Ensures consistent response shape for locations and adds coverage.

  • Introduces normalizeResults helper to coerce array or paginated data into { results: T[] }
  • Updates inventoryAPI.listLocations to handle both { results: Location[] } and Location[], returning normalized data
  • Adds unit test verifying listLocations normalizes array responses

Written by Cursor Bugbot for commit 1655de9. This will update automatically on new commits. Configure here.

@uid0 uid0 linked an issue Jan 15, 2026 that may be closed by this pull request
@uid0 uid0 self-assigned this Jan 15, 2026
@uid0 uid0 marked this pull request as ready for review January 15, 2026 21:33
@uid0 uid0 merged commit e084657 into main Jan 15, 2026
15 checks passed
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.

Locations tab is blank on the frontend.

2 participants