Erik Johnston
							
						 
						
							 
							
							
							
								
							
								ec2b5d8c28 
								
							
								 
							
						 
						
							
							
								
								Store full JSON of events in db  
							
							 
							
							
							
						 
						
							2014-12-01 16:22:07 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								a46e5ef621 
								
							
								 
							
						 
						
							
							
								
								SYN-163: Add an order by rowid to selects.  
							
							 
							
							... 
							
							
							
							This should fix the bug where the edges of the graph get returned in a
different order than they were inserted in, and so no get_event no
longer returned the exact same JSON as was inserted. This meant that
signature checks failed. 
							
						 
						
							2014-11-24 10:56:36 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								db9ce032a4 
								
							
								 
							
						 
						
							
							
								
								Fix pep8 codestyle warnings  
							
							 
							
							
							
						 
						
							2014-11-20 17:26:36 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								dfdda2c871 
								
							
								 
							
						 
						
							
							
								
								Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str'  
							
							 
							
							
							
						 
						
							2014-11-20 17:10:37 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								32090aee16 
								
							
								 
							
						 
						
							
							
								
								Add a few missing yields, Move deferred lists inside PreserveLoggingContext because they don't interact well with the logging contexts  
							
							 
							
							
							
						 
						
							2014-11-20 16:24:00 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								cb4b6c844a 
								
							
								 
							
						 
						
							
							
								
								Merge PDUs and Events into one object  
							
							 
							
							
							
						 
						
							2014-11-14 21:25:02 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								e903c941cb 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into request_logging  
							
							 
							
							... 
							
							
							
							Conflicts:
	setup.py
	synapse/storage/_base.py
	synapse/util/async.py 
							
						 
						
							2014-11-14 11:16:50 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								f04b3d5042 
								
							
								 
							
						 
						
							
							
								
								Store all signatures on events rather than just dropping them  
							
							 
							
							
							
						 
						
							2014-11-12 17:02:34 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								a8e565eca8 
								
							
								 
							
						 
						
							
							
								
								Add an EventValidator. Fix bugs in auth ++ storage  
							
							 
							
							
							
						 
						
							2014-11-10 18:25:42 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								cdc1b5d629 
								
							
								 
							
						 
						
							
							
								
								Fix regression where we did not return redacted events.  
							
							 
							
							
							
						 
						
							2014-11-10 15:21:30 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								6447db063a 
								
							
								 
							
						 
						
							
							
								
								Fix backfill to work. Add auth to backfill request  
							
							 
							
							
							
						 
						
							2014-11-10 11:59:51 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								1c06806f90 
								
							
								 
							
						 
						
							
							
								
								Finish redaction algorithm.  
							
							 
							
							
							
						 
						
							2014-11-10 10:21:32 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								bf6b72eb55 
								
							
								 
							
						 
						
							
							
								
								Start implementing auth chains  
							
							 
							
							
							
						 
						
							2014-11-07 10:53:38 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								4317c8e583 
								
							
								 
							
						 
						
							
							
								
								Implement new replace_state and changed prev_state  
							
							 
							
							... 
							
							
							
							`prev_state` is now a list of previous state ids, similiar to
prev_events. `replace_state` now points to what we think was replaced. 
							
						 
						
							2014-11-06 15:10:55 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								cc44ecc62f 
								
							
								 
							
						 
						
							
							
								
								Get correct prev_events  
							
							 
							
							
							
						 
						
							2014-11-05 13:23:35 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								aa76bf39ab 
								
							
								 
							
						 
						
							
							
								
								Remove unused imports  
							
							 
							
							
							
						 
						
							2014-11-04 14:14:02 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								b29517bd01 
								
							
								 
							
						 
						
							
							
								
								Add a request-id to each log line  
							
							 
							
							
							
						 
						
							2014-10-30 01:21:33 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								e7858b6d7e 
								
							
								 
							
						 
						
							
							
								
								Start filling out and using new events tables  
							
							 
							
							
							
						 
						
							2014-10-29 16:59:24 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								2d1dfb3b34 
								
							
								 
							
						 
						
							
							
								
								Begin implementing all the PDU storage stuff in Events land  
							
							 
							
							
							
						 
						
							2014-10-28 16:42:35 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								da1dda3e1d 
								
							
								 
							
						 
						
							
							
								
								Add transaction level logging and timing information. Add a _simple_delete method  
							
							 
							
							
							
						 
						
							2014-10-28 11:18:04 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								967ce43b59 
								
							
								 
							
						 
						
							
							
								
								Clean up LoggingTransaction  
							
							 
							
							
							
						 
						
							2014-10-28 10:53:11 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								8e358ef35a 
								
							
								 
							
						 
						
							
							
								
								Add timer to LoggingTransaction  
							
							 
							
							
							
						 
						
							2014-10-28 10:34:05 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								82c5820767 
								
							
								 
							
						 
						
							
							
								
								keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating schema  
							
							 
							
							
							
						 
						
							2014-10-17 17:31:48 +01:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								f5cf7ac25b 
								
							
								 
							
						 
						
							
							
								
								SPEC-7: Rename 'ts' to 'origin_server_ts'  
							
							 
							
							
							
						 
						
							2014-10-17 17:12:25 +01:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								07639c79d9 
								
							
								 
							
						 
						
							
							
								
								Respond with more helpful error messages for unsigned requests  
							
							 
							
							
							
						 
						
							2014-10-13 16:39:15 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								70899d3ab2 
								
							
								 
							
						 
						
							
							
								
								Rename deletions to redactions  
							
							 
							
							
							
						 
						
							2014-09-24 15:27:59 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								1e6c5b205c 
								
							
								 
							
						 
						
							
							
								
								Fix bug where we didn't correctly pull out the event_id of the deletion  
							
							 
							
							
							
						 
						
							2014-09-24 13:29:20 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								efea61dc50 
								
							
								 
							
						 
						
							
							
								
								Rename 'pruned' to 'pruned_because'  
							
							 
							
							
							
						 
						
							2014-09-23 17:40:58 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								78af6bbb98 
								
							
								 
							
						 
						
							
							
								
								Add m.room.deletion. If an event is deleted it will be returned to clients 'pruned', i.e. all client specified keys will be removed.  
							
							 
							
							
							
						 
						
							2014-09-23 15:28:32 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								b0406b9ead 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/develop' into test-sqlite-memory  
							
							 
							
							
							
						 
						
							2014-09-15 14:15:10 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								5bd9369a62 
								
							
								 
							
						 
						
							
							
								
								Correctly handle the 'age' key in events and pdus  
							
							 
							
							
							
						 
						
							2014-09-15 13:26:11 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								1c51c8ab7d 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/develop' into test-sqlite-memory  
							
							 
							
							... 
							
							
							
							Conflicts:
	synapse/storage/pdu.py 
							
						 
						
							2014-09-12 17:20:06 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								39e3fc69e5 
								
							
								 
							
						 
						
							
							
								
								Make the state resolution use actual power levels rather than taking them from a Pdu key.  
							
							 
							
							
							
						 
						
							2014-09-12 17:11:09 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								a840ff8f3f 
								
							
								 
							
						 
						
							
							
								
								Now don't need the other logger.debug() call in _execute  
							
							 
							
							
							
						 
						
							2014-09-12 14:38:27 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								1c20249884 
								
							
								 
							
						 
						
							
							
								
								Logging of all SQL queries via the 'synapse.storage.SQL' logger  
							
							 
							
							
							
						 
						
							2014-09-12 14:37:55 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								e53d77b501 
								
							
								 
							
						 
						
							
							
								
								Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool  
							
							 
							
							
							
						 
						
							2014-09-12 14:28:07 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								781ff713ba 
								
							
								 
							
						 
						
							
							
								
								When getting a state event also include the previous content  
							
							 
							
							
							
						 
						
							2014-09-06 02:23:36 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								d703e712f7 
								
							
								 
							
						 
						
							
							
								
								Add support to _simple_insert() to do INSERT OR REPLACE  
							
							 
							
							
							
						 
						
							2014-09-03 18:18:41 +01:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								8a7c1d6a00 
								
							
								 
							
						 
						
							
							
								
								fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch.  
							
							 
							
							
							
						 
						
							2014-09-03 17:31:57 +01:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								4b63b06cad 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into storage_transactions  
							
							 
							
							... 
							
							
							
							Conflicts:
	synapse/api/auth.py
	synapse/handlers/room.py
	synapse/storage/__init__.py 
							
						 
						
							2014-08-26 16:07:05 +01:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								4b2ad549d5 
								
							
								 
							
						 
						
							
							
								
								Move the event storage into a single transaction  
							
							 
							
							
							
						 
						
							2014-08-26 14:36:03 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								063e1b22e6 
								
							
								 
							
						 
						
							
							
								
								Stop internal keys from getting into SynapseEvents  
							
							 
							
							
							
						 
						
							2014-08-21 15:06:00 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								d260a42ca2 
								
							
								 
							
						 
						
							
							
								
								PEP8 cleanups  
							
							 
							
							
							
						 
						
							2014-08-15 16:17:36 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								114984a236 
								
							
								 
							
						 
						
							
							
								
								Start chagning the events stream to work with the new DB schema  
							
							 
							
							
							
						 
						
							2014-08-15 13:58:28 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								5002efa31b 
								
							
								 
							
						 
						
							
							
								
								Reimplement the get public rooms api to work with new DB schema  
							
							 
							
							
							
						 
						
							2014-08-15 10:26:35 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								2c46bb6208 
								
							
								 
							
						 
						
							
							
								
								Fix up typos and correct sql queries  
							
							 
							
							
							
						 
						
							2014-08-14 18:40:50 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								661c711765 
								
							
								 
							
						 
						
							
							
								
								Start fixing places that use the data store.  
							
							 
							
							
							
						 
						
							2014-08-14 17:34:37 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								2529f2bc01 
								
							
								 
							
						 
						
							
							
								
								Rename _execute_query  
							
							 
							
							
							
						 
						
							2014-08-14 16:58:51 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								937c175029 
								
							
								 
							
						 
						
							
							
								
								Fix up RoomMemberStore to work with the new schema.  
							
							 
							
							
							
						 
						
							2014-08-14 16:02:10 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								6d6a1c3454 
								
							
								 
							
						 
						
							
							
								
								Actually encode dicts as json in the DB  
							
							 
							
							
							
						 
						
							2014-08-14 14:30:25 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								10294b6082 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of github.com:matrix-org/synapse into sql_refactor  
							
							 
							
							... 
							
							
							
							Conflicts:
	synapse/storage/_base.py 
							
						 
						
							2014-08-14 10:01:04 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								d05aa651f8 
								
							
								 
							
						 
						
							
							
								
								An initial hack at storing presence state-change mtimes in database and presenting age durations to clients/federation events  
							
							 
							
							
							
						 
						
							2014-08-13 19:19:15 +01:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								baf04be5cf 
								
							
								 
							
						 
						
							
							
								
								Set datastore's .hs field in SQLBaseStore rather than in the toplevel DataStore mixed-in result class  
							
							 
							
							
							
						 
						
							2014-08-13 19:19:15 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								336987bb8d 
								
							
								 
							
						 
						
							
							
								
								Initial stab at refactoring the SQL tables, including rejigging some of the storage layer.  
							
							 
							
							
							
						 
						
							2014-08-13 18:03:41 +01:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								f98e6380f1 
								
							
								 
							
						 
						
							
							
								
								add in whitespace after copyright statements to improve legibility  
							
							 
							
							
							
						 
						
							2014-08-13 03:14:34 +01:00  
						
					 
				
					
						
							
							
								 
								matrix.org
							
						 
						
							 
							
							
							
								
							
								4f475c7697 
								
							
								 
							
						 
						
							
							
								
								Reference Matrix Home Server  
							
							 
							
							
							
						 
						
							2014-08-12 15:10:52 +01:00