4810f7effd 
								
							
								 
							
						 
						
							
							
								
								Remove context.push_actions  
							
							
							
						 
						
							2018-02-15 15:47:06 +00:00  
				
					
						
							
							
								 
						
							
							
								106906a65e 
								
							
								 
							
						 
						
							
							
								
								Don't serialize current state over replication  
							
							
							
						 
						
							2018-02-15 13:53:18 +00:00  
				
					
						
							
							
								 
						
							
							
								24dd73028a 
								
							
								 
							
						 
						
							
							
								
								Add replication http endpoint for event sending  
							
							
							
						 
						
							2018-02-07 10:32:32 +00:00  
				
					
						
							
							
								 
						
							
							
								3d33eef6fc 
								
									
								
							
								 
							
						 
						
							
							
								
								Store state groups separately from events ( #2784 )  
							
							... 
							
							
							
							* Split state group persist into seperate storage func
* Add per database engine code for state group id gen
* Move store_state_group to StateReadStore
This allows other workers to use it, and so resolve state.
* Hook up store_state_group
* Fix tests
* Rename _store_mult_state_groups_txn
* Rename StateGroupReadStore
* Remove redundant _have_persisted_state_group_txn
* Update comments
* Comment compute_event_context
* Set start val for state_group_id_seq
... otherwise we try to recreate old state groups
* Update comments
* Don't store state for outliers
* Update comment
* Update docstring as state groups are ints 
							
						 
						
							2018-02-06 14:31:24 +00:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								631d7b87b5 
								
							
								 
							
						 
						
							
							
								
								Remove pointless create() method  
							
							... 
							
							
							
							It just calls the constructor, so we may as well kill it rather than having
random codepaths. 
							
						 
						
							2017-10-20 22:14:55 +01:00  
				
					
						
							
							
								 
						
							
							
								f878e6f8af 
								
							
								 
							
						 
						
							
							
								
								Spam checking: add the invitee to user_may_invite  
							
							
							
						 
						
							2017-10-05 14:02:28 +01:00  
				
					
						
							
							
								 
						
							
							
								d8ce68b09b 
								
							
								 
							
						 
						
							
							
								
								spam check room publishing  
							
							
							
						 
						
							2017-10-04 14:29:33 +01:00  
				
					
						
							
							
								 
						
							
							
								197c14dbcf 
								
							
								 
							
						 
						
							
							
								
								Add room creation checks to spam checker  
							
							... 
							
							
							
							Lets the spam checker deny attempts to create rooms and add aliases
to them. 
							
						 
						
							2017-10-04 10:47:54 +01:00  
				
					
						
							
							
								 
						
							
							
								1e2ac54351 
								
							
								 
							
						 
						
							
							
								
								s/roomid/room_id/  
							
							
							
						 
						
							2017-10-03 17:41:38 +01:00  
				
					
						
							
							
								 
						
							
							
								1e375468de 
								
							
								 
							
						 
						
							
							
								
								pass room id too  
							
							
							
						 
						
							2017-10-03 17:13:14 +01:00  
				
					
						
							
							
								 
						
							
							
								537088e7dc 
								
							
								 
							
						 
						
							
							
								
								Actually write warpper function  
							
							
							
						 
						
							2017-10-03 14:28:12 +01:00  
				
					
						
							
							
								 
						
							
							
								ef3a5ae787 
								
							
								 
							
						 
						
							
							
								
								Don't test is spam_checker not None  
							
							... 
							
							
							
							Sometimes it's a Mock object which is not none but is still not
what we're after 
							
						 
						
							2017-09-27 11:24:19 +01:00  
				
					
						
							
							
								 
						
							
							
								8c06dd6071 
								
							
								 
							
						 
						
							
							
								
								Remove unintentional debugging  
							
							
							
						 
						
							2017-09-27 10:31:14 +01:00  
				
					
						
							
							
								 
						
							
							
								60c78666ab 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							
							
						 
						
							2017-09-27 10:26:13 +01:00  
				
					
						
							
							
								 
						
							
							
								6cd5fcd536 
								
							
								 
							
						 
						
							
							
								
								Make the spam checker a module  
							
							
							
						 
						
							2017-09-26 19:20:23 +01:00  
				
					
						
							
							
								 
						
							
							
								f496399ac4 
								
							
								 
							
						 
						
							
							
								
								fix thinko'd docstring  
							
							
							
						 
						
							2017-09-22 15:34:14 +01:00  
				
					
						
							
							
								 
						
							
							
								5ed109d59f 
								
							
								 
							
						 
						
							
							
								
								PoC for filtering spammy events ( #2456 )  
							
							... 
							
							
							
							Demonstration of how you might add some hooks to filter out spammy events. 
							
						 
						
							2017-09-19 12:20:11 +01:00  
				
					
						
							
							
								 
						
							
							
								3e5a62ecd8 
								
							
								 
							
						 
						
							
							
								
								Add more granular event send metrics  
							
							
							
						 
						
							2017-05-02 14:23:26 +01:00  
				
					
						
							
							
								 
						
							
							
								46826bb078 
								
							
								 
							
						 
						
							
							
								
								Comment and remove spurious logging  
							
							
							
						 
						
							2017-04-27 17:25:44 +01:00  
				
					
						
							
							
								 
						
							
							
								1e166470ab 
								
							
								 
							
						 
						
							
							
								
								Fix tests  
							
							
							
						 
						
							2017-04-26 16:23:30 +01:00  
				
					
						
							
							
								 
						
							
							
								34e682d385 
								
							
								 
							
						 
						
							
							
								
								Fix invite state to always include all events  
							
							
							
						 
						
							2017-04-26 16:18:08 +01:00  
				
					
						
							
							
								 
						
							
							
								5068fb16a5 
								
							
								 
							
						 
						
							
							
								
								Refactoring and cleanups  
							
							... 
							
							
							
							A few non-functional changes:
* A bunch of docstrings to document types
* Split `EventsStore._persist_events_txn` up a bit. Hopefully it's a bit more
  readable.
* Rephrase `EventFederationStore._update_min_depth_for_room_txn` to avoid
  mind-bending conditional.
* Rephrase rejected/outlier conditional in `_update_outliers_txn` to avoid
  mind-bending conditional. 
							
						 
						
							2017-03-17 15:06:07 +00:00  
				
					
						
							
							
								 
						
							
							
								5d6bad1b3c 
								
							
								 
							
						 
						
							
							
								
								Optimise state resolution  
							
							
							
						 
						
							2017-01-17 13:22:19 +00:00  
				
					
						
							
							
								 
						
							
							
								2f4b2f4783 
								
							
								 
							
						 
						
							
							
								
								gah, fix mangled merge of 0.18.7 into develop  
							
							
							
						 
						
							2017-01-07 04:00:42 +00:00  
				
					
						
							
							
								 
						
							
							
								f784980d2b 
								
							
								 
							
						 
						
							
							
								
								Only send events that originate on this server.  
							
							... 
							
							
							
							Or events that are sent via the federation "send_join" API.
This should match the behaviour from before v0.18.5 and #1635  landed. 
							
						 
						
							2017-01-05 11:26:30 +00:00  
				
					
						
							
							
								 
						
							
							
								c3d963ac24 
								
							
								 
							
						 
						
							
							
								
								Review comments  
							
							
							
						 
						
							2016-11-22 13:42:11 +00:00  
				
					
						
							
							
								 
						
							
							
								6d4e6d4cba 
								
							
								 
							
						 
						
							
							
								
								Also check for dict since sometimes they aren't frozen  
							
							
							
						 
						
							2016-11-22 10:39:41 +00:00  
				
					
						
							
							
								 
						
							
							
								cea4e4e7b2 
								
							
								 
							
						 
						
							
							
								
								Glue only_event_fields into the sync rest servlet  
							
							
							
						 
						
							2016-11-22 10:14:05 +00:00  
				
					
						
							
							
								 
						
							
							
								0a8b0eeca1 
								
							
								 
							
						 
						
							
							
								
								More tests  
							
							
							
						 
						
							2016-11-22 09:59:27 +00:00  
				
					
						
							
							
								 
						
							
							
								70a2157b64 
								
							
								 
							
						 
						
							
							
								
								Start adding some tests  
							
							
							
						 
						
							2016-11-21 17:52:45 +00:00  
				
					
						
							
							
								 
						
							
							
								f97511a1f3 
								
							
								 
							
						 
						
							
							
								
								Move event_fields filtering to serialize_event  
							
							... 
							
							
							
							Also make it an inclusive not exclusive filter, as the spec demands. 
							
						 
						
							2016-11-21 17:42:16 +00:00  
				
					
						
							
							
								 
						
							
							
								628e65721b 
								
							
								 
							
						 
						
							
							
								
								Add comments  
							
							
							
						 
						
							2016-09-05 10:41:27 +01:00  
				
					
						
							
							
								 
						
							
							
								9e25443db8 
								
							
								 
							
						 
						
							
							
								
								Move to storing state_groups_state as deltas  
							
							
							
						 
						
							2016-09-01 14:31:26 +01:00  
				
					
						
							
							
								 
						
							
							
								c10cb581c6 
								
							
								 
							
						 
						
							
							
								
								Correctly handle the difference between prev and current state  
							
							
							
						 
						
							2016-08-31 14:26:22 +01:00  
				
					
						
							
							
								 
						
							
							
								54cc69154e 
								
							
								 
							
						 
						
							
							
								
								Make None optional  
							
							
							
						 
						
							2016-08-26 11:20:59 +01:00  
				
					
						
							
							
								 
						
							
							
								a3dc1e9cbe 
								
							
								 
							
						 
						
							
							
								
								Replace context.current_state with context.current_state_ids  
							
							
							
						 
						
							2016-08-25 17:32:22 +01:00  
				
					
						
							
							
								 
						
							
							
								17f4f14df7 
								
							
								 
							
						 
						
							
							
								
								Pull out event ids rather than full events for state  
							
							
							
						 
						
							2016-08-25 13:42:44 +01:00  
				
					
						
							
							
								 
						
							
							
								1d40373c9d 
								
							
								 
							
						 
						
							
							
								
								Include prev_content in redacted state events  
							
							
							
						 
						
							2016-08-11 10:24:41 +01:00  
				
					
						
							
							
								 
						
							
							
								76503f95ed 
								
							
								 
							
						 
						
							
							
								
								Remove the is_new_state argument to persist event.  
							
							... 
							
							
							
							Move the checks for whether an event is new state inside persist
event itself.
This was harder than expected because there wasn't enough information
passed to persist event to correctly handle invites from remote servers
for new rooms. 
							
						 
						
							2016-03-31 15:00:42 +01:00  
				
					
						
							
							
								 
						
							
							
								1e25f62ee6 
								
							
								 
							
						 
						
							
							
								
								Use a stream id generator to assign state group ids  
							
							
							
						 
						
							2016-03-30 12:55:02 +01:00  
				
					
						
							
							
								 
						
							
							
								acdfef7b14 
								
							
								 
							
						 
						
							
							
								
								Intern all the things  
							
							
							
						 
						
							2016-03-23 16:25:54 +00:00  
				
					
						
							
							
								 
						
							
							
								f96526ffc2 
								
							
								 
							
						 
						
							
							
								
								Intern sender, event_id and room_id in events  
							
							
							
						 
						
							2016-03-23 15:04:11 +00:00  
				
					
						
							
							
								 
						
							
							
								fe9794706a 
								
							
								 
							
						 
						
							
							
								
								Intern type and state_key on events  
							
							
							
						 
						
							2016-03-23 14:58:08 +00:00  
				
					
						
							
							
								 
						
							
							
								58e207cd77 
								
							
								 
							
						 
						
							
							
								
								Don't assume existence of event_id in __str__  
							
							
							
						 
						
							2016-03-18 14:31:44 +00:00  
				
					
						
							
							
								 
						
							
							
								7b0d846407 
								
							
								 
							
						 
						
							
							
								
								Atomically persit push actions when we persist the event  
							
							
							
						 
						
							2016-02-09 16:19:15 +00:00  
				
					
						
							
							
								 
						
							
							
								2068678b8c 
								
							
								 
							
						 
						
							
							
								
								Make Event objects behave more like dicts  
							
							
							
						 
						
							2016-01-18 14:43:50 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								306415391d 
								
							
								 
							
						 
						
							
							
								
								Only add the user_id if the sender is present  
							
							
							
						 
						
							2015-12-01 11:14:48 +00:00  
				
					
						
							
							
								 
						
							
							
								bde8d78b8a 
								
							
								 
							
						 
						
							
							
								
								Copy rather than move the fields to shuffle between a v1 and a v2 event.  
							
							... 
							
							
							
							This should make all v1 APIs compatible with v2 clients. While still
allowing v1 clients to access the fields.
This makes the documentation easier since we can just document the v2
format and explain that some of the fields, in some of the APIs are
duplicated for backwards compatibility, rather than having to document
two separate event formats. 
							
						 
						
							2015-11-30 17:46:35 +00:00