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 upImplement rechecking of redactions for room versions v3 #4499
Conversation
erikjohnston
force-pushed the
erikj/redactions_eiah
branch
from
a909470
to
2fbd985
Jan 29, 2019
erikjohnston
added some commits
Jan 29, 2019
erikjohnston
force-pushed the
erikj/redactions_eiah
branch
from
2fbd985
to
7709d2b
Jan 29, 2019
erikjohnston
changed the title
[WIP] Implement rechecking of redactions for room versions v3
Implement rechecking of redactions for room versions v3
Jan 29, 2019
erikjohnston
requested a review
from matrix-org/synapse-core
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
codecov-io
commented
Jan 29, 2019
•
Codecov Report
@@ Coverage Diff @@
## develop #4499 +/- ##
===========================================
- Coverage 74.71% 74.67% -0.04%
===========================================
Files 336 336
Lines 34258 34280 +22
Branches 5578 5585 +7
===========================================
+ Hits 25595 25599 +4
- Misses 7081 7099 +18
Partials 1582 1582 |
richvdh
reviewed
Jan 29, 2019
synapse/api/constants.py Outdated
erikjohnston
requested a review
from
richvdh
Jan 29, 2019
erikjohnston
referenced this pull request
Jan 29, 2019
Merged
Enable support for room version 3 #4515
richvdh
requested changes
Jan 29, 2019
erm: do we not need to check that the sender of a redaction matches the original sender when we pull the original event out of the database? |
synapse/event_auth.py
Outdated
redacter_domain = get_domain_from_id(event.event_id) | ||
redactee_domain = get_domain_from_id(event.redacts) | ||
if redacter_domain == redactee_domain: | ||
if room_version in (RoomVersions.V1, RoomVersions.V2, RoomVersions.VDH_TEST): |
This comment has been minimized.
This comment has been minimized.
@@ -63,6 +63,9 @@ def get_send_on_behalf_of(self): | |||
""" | |||
return getattr(self, "send_on_behalf_of", None) | |||
|
|||
def need_to_check_redaction(self): |
This comment has been minimized.
This comment has been minimized.
synapse/storage/events_worker.py Outdated
This comment has been minimized.
This comment has been minimized.
Argh, bollocks |
erikjohnston
added some commits
Jan 29, 2019
erikjohnston
reviewed
Jan 29, 2019
synapse/storage/events_worker.py Outdated
erikjohnston
added some commits
Jan 29, 2019
erikjohnston
requested a review
from matrix-org/synapse-core
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
sytest looks to be unhappy that i killed off VDH_TEST |
synapse/events/__init__.py
Outdated
Starting in room v3 redaction events are accepted up front, and later | ||
checked to see if the redacter and redactee's domains match. | ||
If the sender of the redaction event is allowed to redact due to auth |
This comment has been minimized.
This comment has been minimized.
erikjohnston
added some commits
Jan 29, 2019
erikjohnston
merged commit e12313b
into
develop
Jan 29, 2019
4 of 5 checks passed
continuous-integration/travis-ci/pr
The Travis CI build is in progress
Details
ci/circleci: sytestpy2merged
Your tests passed on CircleCI!
Details
ci/circleci: sytestpy2postgresmerged
Your tests passed on CircleCI!
Details
ci/circleci: sytestpy3merged
Your tests passed on CircleCI!
Details
ci/circleci: sytestpy3postgresmerged
Your tests passed on CircleCI!
Details
added a commit
to matrix-org/matrix-doc
that referenced
this pull request
Jan 31, 2019
turt2live
referenced this pull request
Jan 31, 2019
Merged
Add specification for room version 3: Event IDs as hashes #1828
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
erikjohnston commentedJan 28, 2019
•
edited
This starts implementing support for V3 rooms, while keeping V3 disabled