-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Prevent historical state from being pushed to an application service via /transactions
(MSC2716)
#11265
Prevent historical state from being pushed to an application service via /transactions
(MSC2716)
#11265
Changes from 2 commits
95624a6
c30a35b
64df8cd
e580d47
15e3246
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -221,6 +221,7 @@ async def persist_state_events_at_start( | |
action=membership, | ||
content=event_dict["content"], | ||
outlier=True, | ||
historical=True, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of these changes are just piping
|
||
prev_event_ids=[prev_event_id_for_state_chain], | ||
# Make sure to use a copy of this list because we modify it | ||
# later in the loop here. Otherwise it will be the same | ||
|
@@ -240,6 +241,7 @@ async def persist_state_events_at_start( | |
), | ||
event_dict, | ||
outlier=True, | ||
historical=True, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of these changes are just piping
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whatever else happens, please please please make sure that any parameters are added to the docstrings at each level, with the intended purpose clearly described. Relatedly: as a general rule, I would say it is preferable for method parameters to describe a change in behaviour (" [Currently we have a bit of a mess in some places ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Will do 🙇
Seems reasonable. I've created a separate issue to track this #11300 |
||
prev_event_ids=[prev_event_id_for_state_chain], | ||
# Make sure to use a copy of this list because we modify it | ||
# later in the loop here. Otherwise it will be the same | ||
|
Uh oh!
There was an error while loading. Please reload this page.