Cannot sort users by id via API

Description

Scenario

Given I have users
When I sort users by ID with a request like GET https://wazo.example.com/api/confd/1.1/users?order=id&limit=20`

Then I get an error 500:

["Unexpected error: normalize() argument 2 must be str, not int"]

Expected: I get no error and a list of users sorted by ID

Workaround

Apply the attached patch:

patch -p1 -d /usr/lib/python3/dist-packages < WAZO-3570-user-order-id.patch systemctl restart wazo-confd

Zendesk Ticket IDs

None

Attachments

1
  • 09 Jan 2024, 09:57 AM

Activity

Show:
Done

Details

Priority

Assignee

Reporter

Approvers

François Blackburn

Fix versions

Sprint

Zendesk Support

1

Created January 8, 2024 at 1:59 PM
Updated January 10, 2024 at 7:17 PM
Resolved January 9, 2024 at 4:40 PM

Flag notifications