-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cache empty responses from /user/devices
#11587
Conversation
|
cc @squahtx |
96b1932 to
51c3434
Compare
clokep
left a comment
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.
I think this generally looks OK, but I'm not confident the usage of the stream IDs makes sense.
FWIW I'm not interested in the specific stream ID as such. I'm using it in the query to detect that we've queried a homeserver for this user's devices before. I agree that it's not great though. I have a bit of an icky feeling about the whole change the more I look at it. Perhaps sleeping on it will help. |
To be explicit, perhaps sleeping on it will help me to later rework this and make it clearer. |
Having hibernated over the Christmas break, I think I should
|
This reverts commit 98d99e6.
- Check the results are consistent and have no failures - Better mocking of the response format - Fix errors relating to mocking (which I fear will break on 3.7)
|
The commit history is a bit noisy, but I think this is a lot better now. I'll gamble that CI passes and stick it up for review. |
5f91be7 to
0999ed8
Compare
or else we might try to write a NULL stream id. That would be bad.
clokep
left a comment
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.
I think this looks good.
Fixes #11586. Or it will fix, anyway.