7941372ec8 
								
									
								
							
								 
							
						 
						
							
							
								
								Make token serializing/deserializing async ( #8427 )  
							
							... 
							
							
							
							The idea is that in future tokens will encode a mapping of instance to position. However, we don't want to include the full instance name in the string representation, so instead we'll have a mapping between instance name and an immutable integer ID in the DB that we can use instead. We'll then do the lookup when we serialize/deserialize the token (we could alternatively pass around an `Instance` type that includes both the name and ID, but that turns out to be a lot more invasive). 
							
						 
						
							2020-09-30 20:29:19 +01:00  
				
					
						
							
							
								 
						
							
							
								ea70f1c362 
								
									
								
							
								 
							
						 
						
							
							
								
								Various clean ups to room stream tokens. ( #8423 )  
							
							
							
						 
						
							2020-09-29 21:48:33 +01:00  
				
					
						
							
							
								 
						
							
							
								ac11fcbbb8 
								
									
								
							
								 
							
						 
						
							
							
								
								Add EventStreamPosition type ( #8388 )  
							
							... 
							
							
							
							The idea is to remove some of the places we pass around `int`, where it can represent one of two things:
1. the position of an event in the stream; or
2. a token that partitions the stream, used as part of the stream tokens.
The valid operations are then:
1. did a position happen before or after a token;
2. get all events that happened before or after a token; and
3. get all events between two tokens.
(Note that we don't want to allow other operations as we want to change the tokens to be vector clocks rather than simple ints) 
							
						 
						
							2020-09-24 13:24:17 +01:00  
				
					
						
							
							
								 
						
							
							
								a3f124b821 
								
									
								
							
								 
							
						 
						
							
							
								
								Switch metaclass initialization to python 3-compatible syntax ( #8326 )  
							
							
							
						 
						
							2020-09-16 15:15:55 -04:00  
				
					
						
							
							
								 
						
							
							
								fe8ed1b46f 
								
									
								
							
								 
							
						 
						
							
							
								
								Make `StreamToken.room_key` be a `RoomStreamToken` instance. ( #8281 )  
							
							
							
						 
						
							2020-09-11 12:22:55 +01:00  
				
					
						
							
							
								 
						
							
							
								63c0e9e195 
								
									
								
							
								 
							
						 
						
							
							
								
								Add types to StreamToken and RoomStreamToken ( #8279 )  
							
							... 
							
							
							
							The intention here is to change `StreamToken.room_key` to be a `RoomStreamToken` in a future PR, but that is a big enough change without this refactoring too. 
							
						 
						
							2020-09-08 16:48:15 +01:00  
				
					
						
							
							
								 
						
							
							
								c619253db8 
								
									
								
							
								 
							
						 
						
							
							
								
								Stop sub-classing object ( #8249 )  
							
							
							
						 
						
							2020-09-04 06:54:56 -04:00  
				
					
						
							
							
								 
						
							
							
								d5e73cb6aa 
								
									
								
							
								 
							
						 
						
							
							
								
								Define StateMap as immutable and add a MutableStateMap type. ( #8183 )  
							
							
							
						 
						
							2020-08-28 07:28:53 -04:00  
				
					
						
							
							
								 
						
							
							
								ac77cdb64e 
								
									
								
							
								 
							
						 
						
							
							
								
								Add a shadow-banned flag to users. ( #8092 )  
							
							
							
						 
						
							2020-08-14 12:37:59 -04:00  
				
					
						
							
							
								 
						
							
							
								9d1e4942ab 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix typing for notifier ( #8064 )  
							
							
							
						 
						
							2020-08-12 14:03:08 +01:00  
				
					
						
							
							
								 
						
							
							
								62b1ce8539 
								
									
								
							
								 
							
						 
						
							
							
								
								isort 5 compatibility  ( #7786 )  
							
							... 
							
							
							
							The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse. 
							
						 
						
							2020-07-05 16:32:02 +01:00  
				
					
						
							
							
								 
						
							
							
								7dcbc33a1b 
								
									
								
							
								 
							
						 
						
							
							
								
								Validate the alt_aliases property of canonical alias events ( #6971 )  
							
							
							
						 
						
							2020-03-03 07:12:45 -05:00  
				
					
						
							
							
								 
						
							
							
								5a246611e3 
								
									
								
							
								 
							
						 
						
							
							
								
								Type defintions for use in refactoring for redaction changes ( #6803 )  
							
							... 
							
							
							
							* Bump signedjson to 1.1
... so that we can use the type definitions
* Fix breakage caused by upgrade to signedjson 1.1
Thanks, @illicitonion... 
							
						 
						
							2020-01-30 11:25:59 +00:00  
				
					
						
							
							
								 
						
							
							
								d386f2f339 
								
									
								
							
								 
							
						 
						
							
							
								
								Add StateMap type alias ( #6715 )  
							
							
							
						 
						
							2020-01-16 13:31:22 +00:00  
				
					
						
							
							
								 
						
							
							
								66ca914dc0 
								
							
								 
							
						 
						
							
							
								
								Remove unused hashes and depths from create_new_client_event params  
							
							
							
						 
						
							2020-01-06 13:45:33 +00:00  
				
					
						
							
							
								 
						
							
							
								cfc28325a6 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into uhoreg/e2e_cross-signing_merged  
							
							
							
						 
						
							2019-10-18 11:39:40 +01:00  
				
					
						
							
							
								 
						
							
							
								864f144543 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix up some typechecking ( #6150 )  
							
							... 
							
							
							
							* type checking fixes
* changelog 
							
						 
						
							2019-10-02 05:29:01 -07:00  
				
					
						
							
							
								 
						
							
							
								fac1cdc562 
								
							
								 
							
						 
						
							
							
								
								make changes from PR review  
							
							
							
						 
						
							2019-08-01 21:51:19 -04:00  
				
					
						
							
							
								 
						
							
							
								c659b9f94f 
								
							
								 
							
						 
						
							
							
								
								allow uploading keys for cross-signing  
							
							
							
						 
						
							2019-07-25 11:08:24 -04:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								eed7271b3b 
								
							
								 
							
						 
						
							
							
								
								declare a ReadReceipt class  
							
							... 
							
							
							
							I'm going to use this in queues and things, so it'll be useful to give it more
of a structure. 
							
						 
						
							2019-03-13 17:20:55 +00:00  
				
					
						
							
							
								 
						
							
							
								c588b9b9e4 
								
									
								
							
								 
							
						 
						
							
							
								
								Factor SSO success handling out of CAS login ( #4264 )  
							
							... 
							
							
							
							This is mostly factoring out the post-CAS-login code to somewhere we can reuse
it for other SSO flows, but it also fixes the userid mapping while we're at it. 
							
						 
						
							2018-12-07 13:10:07 +01:00  
				
					
						
							
							
								 
						
							
							
								da7785147d 
								
									
								
							
								 
							
						 
						
							
							
								
								Python 3: Convert some unicode/bytes uses ( #3569 )  
							
							
							
						 
						
							2018-08-02 00:54:06 +10:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								f4284d943a 
								
							
								 
							
						 
						
							
							
								
								In DomainSpecificString, override __repr__ in addition to __str__  
							
							... 
							
							
							
							For some reason, string interpolation on a DomainSpecificString object
like "%r" % (domainSpecificStringObj) fails under PyPy, because the
default __repr__ implementation wants to iterate over the object. I'm
not sure why that happens, but overriding __repr__ instead of __str__
fixes this problem, and is arguably the more appropriate thing to do
anyways. 
							
						 
						
							2018-04-10 11:35:29 +02:00  
				
					
						
							
							
								 
						
							
							
								f92963f5db 
								
									
								
							
								 
							
						 
						
							
							
								
								Revert "improve mxid check performance"  
							
							
							
						 
						
							2018-04-04 12:08:29 +01:00  
				
					
						
							
							
								 
						
							
							
								11597ddea5 
								
							
								 
							
						 
						
							
							
								
								improve mxid check performance ~4x  
							
							... 
							
							
							
							Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-03-31 02:00:22 +02:00  
				
					
						
							
							
								 
						
							
							
								24dd73028a 
								
							
								 
							
						 
						
							
							
								
								Add replication http endpoint for event sending  
							
							
							
						 
						
							2018-02-07 10:32:32 +00:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								3267b81b81 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2561  from matrix-org/rav/id_checking  
							
							... 
							
							
							
							Updates to ID checking 
							
						 
						
							2017-10-23 14:39:20 +01:00  
				
					
						
							
							
								 
						
							
							
								1135193dfd 
								
							
								 
							
						 
						
							
							
								
								Validate group ids when parsing  
							
							... 
							
							
							
							May as well do it whenever we parse a Group ID. We check the sigil and basic
structure here so it makes sense to check the grammar in the same place. 
							
						 
						
							2017-10-21 00:30:39 +01:00  
				
					
						
							
							
								 
						
							
							
								29812c628b 
								
							
								 
							
						 
						
							
							
								
								Allow = in mxids and groupids  
							
							... 
							
							
							
							... because the spec says we should. 
							
						 
						
							2017-10-20 23:42:53 +01:00  
				
					
						
							
							
								 
						
							
							
								58fbbe0f1d 
								
							
								 
							
						 
						
							
							
								
								Disallow capital letters in userids  
							
							... 
							
							
							
							Factor out a common function for checking user ids and group ids, which forbids
capitals. 
							
						 
						
							2017-10-20 23:37:22 +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  
				
					
						
							
							
								 
						
							
							
								c544188ee3 
								
							
								 
							
						 
						
							
							
								
								Add groups to sync stream  
							
							
							
						 
						
							2017-07-20 16:36:42 +01:00  
				
					
						
							
							
								 
						
							
							
								6e9f147faa 
								
							
								 
							
						 
						
							
							
								
								Add GroupID type  
							
							
							
						 
						
							2017-07-18 09:47:25 +01:00  
				
					
						
							
							
								 
						
							
							
								293ef29655 
								
							
								 
							
						 
						
							
							
								
								Weight differently  
							
							
							
						 
						
							2017-05-31 14:29:32 +01:00  
				
					
						
							
							
								 
						
							
							
								f2a5b6dbfd 
								
							
								 
							
						 
						
							
							
								
								Speed up get_domain_from_id  
							
							
							
						 
						
							2017-05-16 15:59:37 +01:00  
				
					
						
							
							
								 
						
							
							
								27b1b4a2c9 
								
							
								 
							
						 
						
							
							
								
								Speed up copy_and_replace  
							
							
							
						 
						
							2017-03-30 17:50:31 +01:00  
				
					
						
							
							
								 
						
							
							
								2367c5568c 
								
							
								 
							
						 
						
							
							
								
								Add basic implementation of local device list changes  
							
							
							
						 
						
							2017-01-25 14:27:27 +00:00  
				
					
						
							
							
								 
						
							
							
								f32fb65552 
								
							
								 
							
						 
						
							
							
								
								Add new API appservice specific public room list  
							
							
							
						 
						
							2016-12-06 16:12:27 +00:00  
				
					
						
							
							
								 
						
							
							
								6fdd31915b 
								
							
								 
							
						 
						
							
							
								
								Style  
							
							
							
						 
						
							2016-10-20 13:53:15 +01:00  
				
					
						
							
							
								 
						
							
							
								f09db236b1 
								
							
								 
							
						 
						
							
							
								
								as_user->app_service, less redundant comments, better positioned comments  
							
							
							
						 
						
							2016-10-20 12:04:54 +01:00  
				
					
						
							
							
								 
						
							
							
								1b17d1a106 
								
							
								 
							
						 
						
							
							
								
								Use real AS object by passing it through the requester  
							
							... 
							
							
							
							This means synapse does not have to check if the AS is interested, but instead it effectively re-uses what it already knew about the requesting user 
							
						 
						
							2016-10-20 11:43:05 +01:00  
				
					
						
							
							
								 
						
							
							
								a61e4522b5 
								
							
								 
							
						 
						
							
							
								
								Shuffle things around to make unit tests work  
							
							
							
						 
						
							2016-09-22 11:08:12 +01:00  
				
					
						
							
							
								 
						
							
							
								4bbef62124 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/develop' into markjh/direct_to_device  
							
							
							
						 
						
							2016-08-26 14:35:31 +01:00  
				
					
						
							
							
								 
						
							
							
								1294d4a329 
								
							
								 
							
						 
						
							
							
								
								Move ThirdPartyEntityKind into api.constants so the expectation becomes that the value is significant  
							
							
							
						 
						
							2016-08-25 18:34:47 +01:00  
				
					
						
							
							
								 
						
							
							
								e993925279 
								
							
								 
							
						 
						
							
							
								
								Add store-and-forward direct-to-device messaging  
							
							
							
						 
						
							2016-08-25 17:35:37 +01:00  
				
					
						
							
							
								 
						
							
							
								b515f844ee 
								
							
								 
							
						 
						
							
							
								
								Avoid so much copypasta between 3PU and 3PL query by unifying around a ThirdPartyEntityKind enumeration  
							
							
							
						 
						
							2016-08-18 17:19:55 +01:00  
				
					
						
							
							
								 
						
							
							
								eb359eced4 
								
							
								 
							
						 
						
							
							
								
								Add `create_requester` function  
							
							... 
							
							
							
							Wrap the `Requester` constructor with a function which provides sensible
defaults, and use it throughout 
							
						 
						
							2016-07-26 16:46:53 +01:00