Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine the CurrentStateDeltaStream into the EventStream #4955

Merged
merged 10 commits into from Mar 28, 2019

Conversation

Projects
None yet
2 participants
@richvdh
Copy link
Member

commented Mar 27, 2019

Get rid of the "current_state_delta" replication stream, and add its functionality to the "events" stream by virtue of giving the events stream two different types of rows.

This is a precursor to fixing #4422. Builds on #4954.

richvdh added some commits Mar 27, 2019

Add parse_row method to replication stream class
This will allow individual stream classes to override how a row is parsed.
Skip building a ROW_TYPE when building updates
We're about to turn it straight into a JSON object anyway so building a
ROW_TYPE is a bit pointless, and reduces flexibility in the update_function.
Make EventStream rows have a type
... as a precursor to combining it with the CurrentStateDelta stream.

@richvdh richvdh requested a review from matrix-org/synapse-core Mar 27, 2019

@codecov

This comment has been minimized.

Copy link

commented Mar 27, 2019

Codecov Report

Merging #4955 into develop will increase coverage by 0.04%.
The diff coverage is 94.36%.

@@             Coverage Diff             @@
##           develop    #4955      +/-   ##
===========================================
+ Coverage    60.43%   60.48%   +0.04%     
===========================================
  Files          328      331       +3     
  Lines        34093    34129      +36     
  Branches      5627     5634       +7     
===========================================
+ Hits         20605    20643      +38     
  Misses       12017    12017              
+ Partials      1471     1469       -2

@richvdh richvdh merged commit 902cdc6 into develop Mar 28, 2019

24 checks passed

buildkite/synapse Build #653 passed (15 minutes, 53 seconds)
Details
buildkite/synapse/check-sample-config Passed (1 minute, 9 seconds)
Details
buildkite/synapse/isort Passed (14 seconds)
Details
buildkite/synapse/newspaper-newsfile Passed (13 seconds)
Details
buildkite/synapse/packaging Passed (50 seconds)
Details
buildkite/synapse/pep-8 Passed (53 seconds)
Details
buildkite/synapse/pipeline Passed (2 seconds)
Details
buildkite/synapse/python-2-dot-7-slash-postgres-9-dot-4 Passed (11 minutes, 26 seconds)
Details
buildkite/synapse/python-2-dot-7-slash-postgres-9-dot-5 Passed (11 minutes, 27 seconds)
Details
buildkite/synapse/python-2-dot-7-slash-sqlite Passed (6 minutes, 8 seconds)
Details
buildkite/synapse/python-2-dot-7-slash-sqlite-slash-old-deps Passed (8 minutes, 10 seconds)
Details
buildkite/synapse/python-3-dot-5-slash-postgres-9-dot-4 Passed (11 minutes, 38 seconds)
Details
buildkite/synapse/python-3-dot-5-slash-postgres-9-dot-5 Passed (11 minutes, 26 seconds)
Details
buildkite/synapse/python-3-dot-5-slash-sqlite Passed (7 minutes, 22 seconds)
Details
buildkite/synapse/python-3-dot-6-slash-sqlite Passed (7 minutes, 27 seconds)
Details
buildkite/synapse/python-3-dot-7-slash-postgres-11 Passed (11 minutes, 48 seconds)
Details
buildkite/synapse/python-3-dot-7-slash-postgres-9-dot-5 Passed (11 minutes, 22 seconds)
Details
buildkite/synapse/python-3-dot-7-slash-sqlite Passed (7 minutes, 20 seconds)
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
codecov/patch 94.36% of diff hit (target 0%)
Details
codecov/project 60.48% (target 0%)
Details

@richvdh richvdh deleted the rav/merge_state_into_events branch Mar 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.