Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Factor out an AsyncEventContext #6298

Merged
merged 6 commits into from
Nov 1, 2019
Merged

Factor out an AsyncEventContext #6298

merged 6 commits into from
Nov 1, 2019

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 30, 2019

The intention here is to make it clearer which fields we can expect to be populated when: notably, that the _event_type etc aren't used for the synchronous impl of EventContext.

There is some preparatory work in getting rid of EventContext.update_state, which doesn't fit with this plan.

Commits should be independently reviewable.

@richvdh richvdh requested a review from a team October 30, 2019 16:33
@richvdh
Copy link
Member Author

richvdh commented Oct 30, 2019

(this is in prep for a fix to #6289)

@richvdh richvdh removed the request for review from a team October 30, 2019 16:35
@richvdh richvdh force-pushed the rav/event_context/work branch 2 times, most recently from 8bb455a to 261240a Compare October 30, 2019 17:01
The intention here is to make it clearer which fields we can expect to be
populated when: notably, that the _event_type etc aren't used for the
synchronous impl of EventContext.
@richvdh richvdh force-pushed the rav/event_context/work branch from 261240a to 560f33a Compare October 30, 2019 18:05
@richvdh richvdh requested a review from a team October 30, 2019 19:23
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oth

synapse/events/snapshot.py Outdated Show resolved Hide resolved
@richvdh richvdh requested a review from erikjohnston November 1, 2019 10:25
to underline that it is an implementation detail
@richvdh richvdh merged commit c6516ad into develop Nov 1, 2019
@richvdh richvdh deleted the rav/event_context/work branch November 1, 2019 16:19
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit 'f496d2587':
  Incorporate review
  Factor out an _AsyncEventContextImpl (#6298)
  Update synapse/storage/data_stores/main/schema/delta/56/event_labels.sql
  Add more data to the event_labels table and fix the indexes
  Add unstable feature flag
  Lint
  Incorporate review
  Lint
  Changelog
  Add integration tests for /messages
  Add more integration testing
  Add integration tests for sync
  Add unit tests
  Add index on label
  Implement filtering
  Store labels for new events
  Add database table for keeping track of labels on events
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants