-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Convert simple_search_list/simple_search_list_txn to return tuples. #16434
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with the change at large, but I'm not sure what we should do about the boolean-but-ints-on-sqlite and nullable-but-hopefully-not columns.
Also filed #16443 about there being no docs for this endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but complement is failing in a way I don't recognise. Is it a regression?
Seems to be failing on develop in the same way: https://github.com/matrix-org/synapse/actions/runs/6469190463/job/17562829355 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, happy for this to land. I'll try to investigate develop when I can!
More removals of
cursor_to_dict
. This one might be controversial since it just manually creates the dict at the REST layer.I assert that this is better because it is explicit about the information we return to clients, as opposed to choosing from the database layer.
It also does a couple of other simplifications while I was there.
See #16431.