Stop sending events when creating or deleting aliases#6904
Conversation
fe29053 to
ecc0a5a
Compare
|
I believe this is ready for review. I'm not 100% thrilled about the tests (I don't think they get great coverage of the modified code) -- if anyone has advice of how to capture the result of This needs corresponding changes from matrix-org/sytest#802. |
richvdh
left a comment
There was a problem hiding this comment.
generally looks good, but I agree the tests are a bit weak. You should be able to check that the state of the room has been updated, possibly by calling StateHandler.get_current_state ?
There's an alternative option of testing via the REST API: have a look at something like tests/rest/client/v1/test_rooms.py for examples of some fairly complex test cases in that area. Personally, I think we're covering that base with sytest, but sometimes it's easier to go that way.
ecc0a5a to
dff81c5
Compare
dff81c5 to
08e5662
Compare
|
Added some better unit tests (which found some real bugs) and now sytests are failing! Going to look at those again. |
|
I believe this is ready for another review! |
richvdh
left a comment
There was a problem hiding this comment.
looks great. Nice thorough tests, thanks!
* commit 'fe3941f6e': Stop sending events when creating or deleting aliases (#6904)
This implements the first task in #6898, new alias semantics: