35a4b63240 
								
							
								 
							
						 
						
							
							
								
								Pull out bits of StateStore to a mixin  
							
							... 
							
							
							
							... so that we don't need to secretly gut-wrench it for use in the slaved
stores. I haven't done the other stores yet, but we should. I'm tired of the
workers breaking every time we tweak the stores because I forgot to gut-wrench
the right method.
fixes https://github.com/matrix-org/synapse/issues/2655 . 
							
						 
						
							2017-11-14 11:43:58 +00:00  
				
					
						
							
							
								 
						
							
							
								4dd1bfa8c1 
								
							
								 
							
						 
						
							
							
								
								Revert "Revert "move _state_group_cache to statestore""  
							
							... 
							
							
							
							We're going to fix this properly on this branch, so that the _state_group_cache
can end up in StateGroupReadStore.
This reverts commit ab335edb02 
							
						 
						
							2017-11-14 11:43:58 +00:00  
				
					
						
							
							
								 
						
							
							
								6cfee09be9 
								
							
								 
							
						 
						
							
							
								
								Make __init__ consitstent across Store heirarchy  
							
							... 
							
							
							
							Add db_conn parameters to the `__init__` methods of the *Store classes, so that
they are all consistent, which makes the multiple inheritance work correctly
(and so that we can later extract mixins which can be used in the slavedstores) 
							
						 
						
							2017-11-13 10:46:07 +00:00  
				
					
						
							
							
								 
						
							
							
								ab335edb02 
								
							
								 
							
						 
						
							
							
								
								Revert "move _state_group_cache to statestore"  
							
							... 
							
							
							
							This reverts commit f5cf3638e9 
							
						 
						
							2017-11-13 10:05:33 +00:00  
				
					
						
							
							
								 
						
							
							
								bfbf1e1f1a 
								
							
								 
							
						 
						
							
							
								
								Up cache size of get_global_account_data_by_type_for_user  
							
							
							
						 
						
							2017-11-13 09:52:11 +00:00  
				
					
						
							
							
								 
						
							
							
								2dce6b15c3 
								
							
								 
							
						 
						
							
							
								
								Fix typo  
							
							
							
						 
						
							2017-11-09 15:56:16 +00:00  
				
					
						
							
							
								 
						
							
							
								618c7b816a 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2656  from matrix-org/rav/fix_deactivate  
							
							... 
							
							
							
							Fix 'NoneType' not iterable in /deactivate 
							
						 
						
							2017-11-09 15:20:35 +00:00  
				
					
						
							
							
								 
						
							
							
								889102315e 
								
							
								 
							
						 
						
							
							
								
								Fix 'NoneType' not iterable in /deactivate  
							
							... 
							
							
							
							make sure we actually return a value from user_delete_access_tokens 
							
						 
						
							2017-11-09 15:15:33 +00:00  
				
					
						
							
							
								 
						
							
							
								e8814410ef 
								
							
								 
							
						 
						
							
							
								
								Have an explicit API to update room config  
							
							
							
						 
						
							2017-11-08 16:13:27 +00:00  
				
					
						
							
							
								 
						
							
							
								94ff2cda73 
								
									
								
							
								 
							
						 
						
							
							
								
								Revert "Modify group room association API to allow modification of is_public"  
							
							
							
						 
						
							2017-11-08 15:43:34 +00:00  
				
					
						
							
							
								 
						
							
							
								167eb01d83 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2637  from spantaleev/avoid-noop-media-deletes  
							
							... 
							
							
							
							Avoid no-op media deletes 
							
						 
						
							2017-11-08 11:53:27 +00:00  
				
					
						
							
							
								 
						
							
							
								02a9a93bde 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2649  from matrix-org/rav/fix_delta_on_state_res  
							
							... 
							
							
							
							Fix bug in state group storage 
							
						 
						
							2017-11-08 09:22:13 +00:00  
				
					
						
							
							
								 
						
							
							
								228ccf1fe3 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2643  from matrix-org/matthew/user_dir_typos  
							
							... 
							
							
							
							Fix various embarrassing typos around user_directory and add some doc. 
							
						 
						
							2017-11-07 17:31:11 +00:00  
				
					
						
							
							
								 
						
							
							
								f5cf3638e9 
								
							
								 
							
						 
						
							
							
								
								move _state_group_cache to statestore  
							
							... 
							
							
							
							this is internal to statestore, so let's keep it there. 
							
						 
						
							2017-11-07 16:43:00 +00:00  
				
					
						
							
							
								 
						
							
							
								38b265cb51 
								
							
								 
							
						 
						
							
							
								
								Remember to pick is_admin out of the db  
							
							
							
						 
						
							2017-11-07 11:24:04 +00:00  
				
					
						
							
							
								 
						
							
							
								631fa4a1b7 
								
							
								 
							
						 
						
							
							
								
								create new indexes before dropping old ones to keep safetynet in place  
							
							
							
						 
						
							2017-11-07 10:41:55 +00:00  
				
					
						
							
							
								 
						
							
							
								4ad883398f 
								
							
								 
							
						 
						
							
							
								
								s/users_in_pubic_room/users_in_public_rooms/g  
							
							
							
						 
						
							2017-11-04 19:39:40 +00:00  
				
					
						
							
							
								 
						
							
							
								d802e8ca6a 
								
							
								 
							
						 
						
							
							
								
								s/users_in_pubic_room/users_in_public_rooms/g  
							
							
							
						 
						
							2017-11-04 19:38:13 +00:00  
				
					
						
							
							
								 
						
							
							
								a100700630 
								
							
								 
							
						 
						
							
							
								
								fix copyright....  
							
							
							
						 
						
							2017-11-04 19:35:49 +00:00  
				
					
						
							
							
								 
						
							
							
								b6b075fd49 
								
							
								 
							
						 
						
							
							
								
								s/popualte/populate/  
							
							
							
						 
						
							2017-11-04 19:35:33 +00:00  
				
					
						
							
							
								 
						
							
							
								805196fbeb 
								
							
								 
							
						 
						
							
							
								
								Avoid no-op media deletes  
							
							... 
							
							
							
							If there are no media entries to delete,
avoid creating transactions, prepared statements
and unnecessary log entries.
Signed-off-by: Slavi Pantaleev <slavi@devture.com> 
							
						 
						
							2017-11-04 09:50:15 +02:00  
				
					
						
							
							
								 
						
							
							
								bc8a5c0330 
								
							
								 
							
						 
						
							
							
								
								Notify auth providers on logout  
							
							... 
							
							
							
							Provide a hook by which auth providers can be notified of logouts. 
							
						 
						
							2017-11-01 16:51:51 +00:00  
				
					
						
							
							
								 
						
							
							
								275826f234 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2617  from matrix-org/matthew/auto-displayname  
							
							... 
							
							
							
							automatically set default displayname on register 
							
						 
						
							2017-11-01 16:21:16 +00:00  
				
					
						
							
							
								 
						
							
							
								fbbacb284e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2613  from matrix-org/rav/kill_refresh_tokens  
							
							... 
							
							
							
							Remove the last vestiges of refresh_tokens 
							
						 
						
							2017-11-01 15:57:35 +00:00  
				
					
						
							
							
								 
						
							
							
								9f7a555b4e 
								
							
								 
							
						 
						
							
							
								
								switch to setting default displayname in the storage layer  
							
							... 
							
							
							
							to avoid clobbering guest user displaynames on registration 
							
						 
						
							2017-11-01 15:51:30 +00:00  
				
					
						
							
							
								 
						
							
							
								99354b430e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2612  from matrix-org/luke/groups-room-relationship-is-public  
							
							... 
							
							
							
							Modify group room association API to allow modification of is_public 
							
						 
						
							2017-11-01 11:08:36 +00:00  
				
					
						
							
							
								 
						
							
							
								318a249c8b 
								
							
								 
							
						 
						
							
							
								
								Leave `is_public` as required argument of update_room_group_association  
							
							
							
						 
						
							2017-11-01 09:36:01 +00:00  
				
					
						
							
							
								 
						
							
							
								356bcafc44 
								
							
								 
							
						 
						
							
							
								
								Remove the last vestiges of refresh_tokens  
							
							
							
						 
						
							2017-10-31 20:35:58 +00:00  
				
					
						
							
							
								 
						
							
							
								20fe347906 
								
							
								 
							
						 
						
							
							
								
								Modify group room association API to allow modification of is_public  
							
							... 
							
							
							
							also includes renamings to make things more consistent. 
							
						 
						
							2017-10-31 17:04:28 +00:00  
				
					
						
							
							
								 
						
							
							
								1650eb5847 
								
							
								 
							
						 
						
							
							
								
								DB schema interface for password auth providers  
							
							... 
							
							
							
							Provide an interface by which password auth providers can register db schema
files to be run at startup 
							
						 
						
							2017-10-31 14:01:53 +00:00  
				
					
						
							
							
								 
						
							
							
								4ab8abbc2b 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'erikj/attestation_local_fix' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2017-10-27 15:07:08 +01:00  
				
					
						
							
							
								 
						
							
							
								5451cc7792 
								
							
								 
							
						 
						
							
							
								
								Request is_public from database  
							
							
							
						 
						
							2017-10-27 11:27:43 +01:00  
				
					
						
							
							
								 
						
							
							
								6362298fa5 
								
							
								 
							
						 
						
							
							
								
								Create groups with is_public = True  
							
							
							
						 
						
							2017-10-27 11:04:20 +01:00  
				
					
						
							
							
								 
						
							
							
								82d8c1bacb 
								
							
								 
							
						 
						
							
							
								
								Fixup  
							
							
							
						 
						
							2017-10-27 10:30:21 +01:00  
				
					
						
							
							
								 
						
							
							
								195abfe7a5 
								
							
								 
							
						 
						
							
							
								
								Remove incorrect attestations  
							
							
							
						 
						
							2017-10-27 09:58:13 +01:00  
				
					
						
							
							
								 
						
							
							
								007cd48af6 
								
							
								 
							
						 
						
							
							
								
								Recreate groups table instead of adding column  
							
							... 
							
							
							
							Adding a column with non-constant default not possible in sqlite3 
							
						 
						
							2017-10-26 17:55:22 +01:00  
				
					
						
							
							
								 
						
							
							
								713e60b9b6 
								
							
								 
							
						 
						
							
							
								
								Awful hack to get default true  
							
							
							
						 
						
							2017-10-26 17:38:14 +01:00  
				
					
						
							
							
								 
						
							
							
								cfa4e658e0 
								
							
								 
							
						 
						
							
							
								
								Bump schema version to 46  
							
							
							
						 
						
							2017-10-26 17:23:49 +01:00  
				
					
						
							
							
								 
						
							
							
								9b2feef9eb 
								
							
								 
							
						 
						
							
							
								
								Add is_public to groups table to allow for private groups  
							
							... 
							
							
							
							Prevent group API access to non-members for private groups
Also make all the group code paths consistent with `requester_user_id` always being the User ID of the requesting user. 
							
						 
						
							2017-10-26 16:51:32 +01:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								2e9f5ea31a 
								
							
								 
							
						 
						
							
							
								
								Fix logcontext handling for persist_events  
							
							... 
							
							
							
							* don't use preserve_context_over_deferred, which is known broken.
* remove a redundant preserve_fn.
* add/improve some comments 
							
						 
						
							2017-10-17 10:59:30 +01:00  
				
					
						
							
							
								 
						
							
							
								2c5972f87f 
								
							
								 
							
						 
						
							
							
								
								Implement GET /groups/$groupId/invited_users  
							
							
							
						 
						
							2017-10-16 15:31:11 +01:00  
				
					
						
							
							
								 
						
							
							
								818b08d0e4 
								
							
								 
							
						 
						
							
							
								
								peeeeeeeeep8888888888888888888888888888  
							
							
							
						 
						
							2017-10-11 15:54:00 +01:00  
				
					
						
							
							
								 
						
							
							
								ea18996f54 
								
							
								 
							
						 
						
							
							
								
								Fix group stream replication  
							
							... 
							
							
							
							The stream update functions expect the storage function to return a list
of tuples. 
							
						 
						
							2017-10-11 15:44:39 +01:00  
				
					
						
							
							
								 
						
							
							
								c2c47550f9 
								
							
								 
							
						 
						
							
							
								
								Fix schema delta versions  
							
							
							
						 
						
							2017-10-11 13:23:15 +01:00  
				
					
						
							
							
								 
						
							
							
								535cc49f27 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2466  from matrix-org/erikj/groups_merged  
							
							... 
							
							
							
							Initial Group Implementation 
							
						 
						
							2017-10-11 13:20:07 +01:00  
				
					
						
							
							
								 
						
							
							
								e8496efe84 
								
							
								 
							
						 
						
							
							
								
								Fix up comment  
							
							
							
						 
						
							2017-10-09 15:17:34 +01:00  
				
					
						
							
							
								 
						
							
							
								11d62f43c9 
								
							
								 
							
						 
						
							
							
								
								Invalidate cache  
							
							
							
						 
						
							2017-10-03 14:12:28 +01:00  
				
					
						
							
							
								 
						
							
							
								e4ab96021e 
								
							
								 
							
						 
						
							
							
								
								Update comments  
							
							
							
						 
						
							2017-10-03 14:10:41 +01:00  
				
					
						
							
							
								 
						
							
							
								30848c0fcd 
								
							
								 
							
						 
						
							
							
								
								Ignore incoming events for rooms that we have left  
							
							... 
							
							
							
							When synapse receives an event for a room its not in over federation, it
double checks with the remote server to see if it is in fact in the
room. This is done so that if the server has forgotten about the room
(usually as a result of the database being dropped) it can recover from
it.
However, in the presence of state resets in large rooms, this can cause
a lot of work for servers that have legitimately left. As a hacky
solution that supports both cases we drop incoming events for rooms that
we have explicitly left.
This means that we no longer support the case of servers having
forgotten that they've rejoined a room, but that is sufficiently rare
that we're not going to support it for now. 
							
						 
						
							2017-10-03 11:18:21 +01:00