Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upServer capabilities support #4472
Conversation
neilisfragile
added some commits
Jan 25, 2019
neilisfragile
changed the title
track unstable room v3
Room capabilities support MSC1804
Jan 25, 2019
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Jan 25, 2019
•
Codecov Report
@@ Coverage Diff @@
## develop #4472 +/- ##
===========================================
+ Coverage 74.69% 74.75% +0.05%
===========================================
Files 336 338 +2
Lines 34293 34650 +357
Branches 5592 5668 +76
===========================================
+ Hits 25614 25901 +287
- Misses 7095 7149 +54
- Partials 1584 1600 +16 |
neilisfragile
requested a review
from matrix-org/synapse-core
Jan 25, 2019
richvdh
requested changes
Jan 25, 2019
looks good otherwise |
@@ -118,6 +119,7 @@ class RoomVersions(object): | |||
RoomVersions.V2, | |||
RoomVersions.VDH_TEST, | |||
RoomVersions.STATE_V2_TEST, | |||
RoomVersions.V3, |
This comment has been minimized.
This comment has been minimized.
richvdh
Jan 25, 2019
Member
We can't add V3 here yet, because doing so will allow us to accept joins/creates for V3 rooms, but won't actually implement the things that make V3 V3.
turt2live
requested a review
from matrix-org/synapse-core
Jan 28, 2019
This comment has been minimized.
This comment has been minimized.
(sticking this back into the queue because I need it for Riot - sorry if I've picked the wrong person or something) |
turt2live
reviewed
Jan 28, 2019
turt2live
removed the request for review
from matrix-org/synapse-core
Jan 28, 2019
This comment has been minimized.
This comment has been minimized.
Implementation for matrix-org/matrix-doc#1804 |
Jan 29, 2019
This was referenced
neilisfragile
added some commits
Jan 29, 2019
turt2live
dismissed
their
stale review
Jan 29, 2019
Concerns addressed
neilisfragile
added some commits
Jan 29, 2019
neilisfragile
changed the title
Room capabilities support MSC1804
Server capabilities support MSC1753 MSC1804
Jan 29, 2019
richvdh
requested a review
from matrix-org/synapse-core
Jan 29, 2019
richvdh
changed the title
Server capabilities support MSC1753 MSC1804
Server capabilities support
Jan 29, 2019
turt2live
reviewed
Jan 29, 2019
"state-v2-test": "unstable", | ||
} | ||
}, | ||
"m.change_password": change_password, |
This comment has been minimized.
This comment has been minimized.
turt2live
Jan 29, 2019
Member
err, spec wants this to be {}
at a minimum, not a boolean directly. I think we should modify the MSC to have this be the capability:
"m.change_password": {
"enabled": true
}
This comment has been minimized.
This comment has been minimized.
erikjohnston
requested changes
Jan 29, 2019
Looks good, just a few nits |
@@ -104,6 +104,7 @@ class ThirdPartyEntityKind(object): | |||
class RoomVersions(object): | |||
V1 = "1" | |||
V2 = "2" | |||
V3 = "3" |
This comment has been minimized.
This comment has been minimized.
erikjohnston
Jan 29, 2019
Member
I don't think it matters, but I'm a bit surprised this is still in here.
This comment has been minimized.
This comment has been minimized.
}, | ||
} | ||
}) | ||
) |
This comment has been minimized.
This comment has been minimized.
erikjohnston
Jan 29, 2019
Member
It'd be nicer if you could move this out of the defer.returnValue
, i.e. something like:
response = {
...
}
defer.returnValue((200, response))
it just makes it a lot easier to see what's going on
(200, { | ||
"capabilities": { | ||
"m.room_versions": { | ||
"default": "1", |
neilisfragile commentedJan 25, 2019
•
edited
Implements MSC1753 and MSC1804.