d8cc86eff4 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove redundant types from comments. ( #14412 )  
							
							... 
							
							
							
							Remove type hints from comments which have been added
as Python type hints. This helps avoid drift between comments
and reality, as well as removing redundant information.
Also adds some missing type hints which were simple to fill in. 
							
						 
						
							2022-11-16 15:25:24 +00:00  
				
					
						
							
							
								 
						
							
							
								50122754c8 
								
									
								
							
								 
							
						 
						
							
							
								
								Add missing types to opentracing. ( #13345 )  
							
							... 
							
							
							
							After this change `synapse.logging` is fully typed. 
							
						 
						
							2022-07-21 12:01:52 +00:00  
				
					
						
							
							
								 
						
							
							
								800ba87cc8 
								
									
								
							
								 
							
						 
						
							
							
								
								Refactor and convert `Linearizer` to async ( #12357 )  
							
							... 
							
							
							
							Refactor and convert `Linearizer` to async. This makes a `Linearizer`
cancellation bug easier to fix.
Also refactor to use an async context manager, which eliminates an
unlikely footgun where code that doesn't immediately use the context
manager could forget to release the lock.
Signed-off-by: Sean Quah <seanq@element.io> 
							
						 
						
							2022-04-05 15:43:52 +01:00  
				
					
						
							
							
								 
						
							
							
								e24ff8ebe3 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove `HomeServer.get_datastore()` ( #12031 )  
							
							... 
							
							
							
							The presence of this method was confusing, and mostly present for backwards
compatibility. Let's get rid of it.
Part of #11733  
							
						 
						
							2022-02-23 11:04:02 +00:00  
				
					
						
							
							
								 
						
							
							
								ecfcd9bbbe 
								
									
								
							
								 
							
						 
						
							
							
								
								Add type hints to `synapse/storage/databases/main/e2e_room_keys.py` ( #11549 )  
							
							
							
						 
						
							2021-12-14 17:46:47 +00:00  
				
					
						
							
							
								 
						
							
							
								4b965c862d 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove redundant "coding: utf-8" lines ( #9786 )  
							
							... 
							
							
							
							Part of #9744 
Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now.
`Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` 
							
						 
						
							2021-04-14 15:34:27 +01:00  
				
					
						
							
							
								 
						
							
							
								b7748d3c00 
								
									
								
							
								 
							
						 
						
							
							
								
								Import HomeServer from the proper module. ( #9665 )  
							
							
							
						 
						
							2021-03-23 07:12:48 -04:00  
				
					
						
							
							
								 
						
							
							
								a78016dadf 
								
									
								
							
								 
							
						 
						
							
							
								
								Add type hints to E2E handler. ( #9232 )  
							
							... 
							
							
							
							This finishes adding type hints to the `synapse.handlers` module. 
							
						 
						
							2021-01-28 08:34:19 -05:00  
				
					
						
							
							
								 
						
							
							
								c619253db8 
								
									
								
							
								 
							
						 
						
							
							
								
								Stop sub-classing object ( #8249 )  
							
							
							
						 
						
							2020-09-04 06:54:56 -04:00  
				
					
						
							
							
								 
						
							
							
								b11450dedc 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert E2E key and room key handlers to async/await. ( #7851 )  
							
							
							
						 
						
							2020-07-15 08:48:58 -04:00  
				
					
						
							
							
								 
						
							
							
								2b2344652b 
								
									
								
							
								 
							
						 
						
							
							
								
								Ensure etag is a string for GET room_keys/version response ( #7691 )  
							
							
							
						 
						
							2020-06-15 13:42:44 -04:00  
				
					
						
							
							
								 
						
							
							
								bd6dc17221 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace iteritems/itervalues/iterkeys with native versions. ( #7692 )  
							
							
							
						 
						
							2020-06-15 07:03:36 -04:00  
				
					
						
							
							
								 
						
							
							
								54b78a0e3b 
								
									
								
							
								 
							
						 
						
							
							
								
								Lint  
							
							
							
						 
						
							2020-03-06 15:11:13 +00:00  
				
					
						
							
							
								 
						
							
							
								297aaf4816 
								
									
								
							
								 
							
						 
						
							
							
								
								Mention the session ID in the error message  
							
							
							
						 
						
							2020-03-06 15:07:41 +00:00  
				
					
						
							
							
								 
						
							
							
								45df9d35a9 
								
									
								
							
								 
							
						 
						
							
							
								
								Lint  
							
							
							
						 
						
							2020-03-06 11:10:52 +00:00  
				
					
						
							
							
								 
						
							
							
								80e580ae92 
								
									
								
							
								 
							
						 
						
							
							
								
								Make sure that is_verified is a boolean when processing room keys  
							
							
							
						 
						
							2020-03-06 11:05:00 +00:00  
				
					
						
							
							
								 
						
							
							
								0d27aba900 
								
									
								
							
								 
							
						 
						
							
							
								
								add etag and count to key backup endpoints ( #5858 )  
							
							
							
						 
						
							2019-11-27 16:14:44 -05:00  
				
					
						
							
							
								 
						
							
							
								4535a07f4a 
								
							
								 
							
						 
						
							
							
								
								make version optional in body of e2e backup version update  
							
							... 
							
							
							
							to agree with latest version of the MSC 
							
						 
						
							2019-10-09 17:54:03 -04:00  
				
					
						
							
							
								 
						
							
							
								9a6f2be572 
								
									
								
							
								 
							
						 
						
							
							
								
								Opentrace e2e keys ( #5855 )  
							
							... 
							
							
							
							Add opentracing tags and logs for e2e keys 
							
						 
						
							2019-08-22 11:28:12 +01:00  
				
					
						
							
							
								 
						
							
							
								4806651744 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace returnValue with return ( #5736 )  
							
							
							
						 
						
							2019-07-23 23:00:55 +10:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								afae8442b5 
								
							
								 
							
						 
						
							
							
								
								make sure version is in body and wrap in linearizer queue  
							
							... 
							
							
							
							also add tests 
							
						 
						
							2019-02-08 01:32:45 -05:00  
				
					
						
							
							
								 
						
							
							
								d9e424bf64 
								
							
								 
							
						 
						
							
							
								
								re-try to make isort happy  
							
							
							
						 
						
							2019-02-06 22:18:41 -05:00  
				
					
						
							
							
								 
						
							
							
								9ff620a518 
								
							
								 
							
						 
						
							
							
								
								fix import to make isort happy  
							
							
							
						 
						
							2019-02-06 21:32:52 -05:00  
				
					
						
							
							
								 
						
							
							
								8248637173 
								
							
								 
							
						 
						
							
							
								
								add new endpoint to update backup versions  
							
							
							
						 
						
							2019-02-06 17:57:10 -05:00  
				
					
						
							
							
								 
						
							
							
								664c81e8b7 
								
							
								 
							
						 
						
							
							
								
								return proper error codes for some 404s  
							
							
							
						 
						
							2019-02-06 17:47:22 -05:00  
				
					
						
							
							
								 
						
							
							
								f1087106cf 
								
									
								
							
								 
							
						 
						
							
							
								
								handle empty backups according to latest spec proposal ( #4123 )  
							
							... 
							
							
							
							fixes  #4056  
						
							2018-11-05 17:59:29 -05:00  
				
					
						
							
							
								 
						
							
							
								8c0ff0287a 
								
							
								 
							
						 
						
							
							
								
								Linting soothes the savage PEP8 monster  
							
							
							
						 
						
							2018-10-12 13:47:43 +01:00  
				
					
						
							
							
								 
						
							
							
								83e72bb2f0 
								
							
								 
							
						 
						
							
							
								
								PR feedback pt. 1  
							
							
							
						 
						
							2018-10-12 11:26:18 +01:00  
				
					
						
							
							
								 
						
							
							
								f4a4dbcad1 
								
							
								 
							
						 
						
							
							
								
								Apparently this blank line is Very Important  
							
							
							
						 
						
							2018-10-09 09:47:04 +01:00  
				
					
						
							
							
								 
						
							
							
								0c905ee015 
								
							
								 
							
						 
						
							
							
								
								be python3 compatible  
							
							
							
						 
						
							2018-10-09 09:39:13 +01:00  
				
					
						
							
							
								 
						
							
							
								3801b8aa03 
								
							
								 
							
						 
						
							
							
								
								try to make flake8 and isort happy  
							
							
							
						 
						
							2018-09-06 11:35:19 -04:00  
				
					
						
							
							
								 
						
							
							
								16a31c6fce 
								
							
								 
							
						 
						
							
							
								
								update to newer Synapse APIs  
							
							
							
						 
						
							2018-08-24 22:51:25 -04:00  
				
					
						
							
							
								 
						
							
							
								72788cf9c1 
								
							
								 
							
						 
						
							
							
								
								support DELETE /version with no args  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								fe87890b18 
								
							
								 
							
						 
						
							
							
								
								implement remaining tests and make them work  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								5e42c45c96 
								
							
								 
							
						 
						
							
							
								
								switch get_current_version_info back to being get_version_info  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								982edca380 
								
							
								 
							
						 
						
							
							
								
								fix flakes  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								234611f347 
								
							
								 
							
						 
						
							
							
								
								fix typos  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								14b3da63a3 
								
							
								 
							
						 
						
							
							
								
								add a tonne of docstring; make upload_room_keys properly assert version  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								9f500cb39e 
								
							
								 
							
						 
						
							
							
								
								more docstring for the e2e_room_keys rest  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								ca0b052307 
								
							
								 
							
						 
						
							
							
								
								fix factoring out of _should_replace_room_key  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								cac0253799 
								
							
								 
							
						 
						
							
							
								
								rename room_key_version table correctly, and fix opt args  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								0abb205b47 
								
							
								 
							
						 
						
							
							
								
								blindly incorporate PR review - needs testing & fixing  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								69e51c7ba4 
								
							
								 
							
						 
						
							
							
								
								make /room_keys/version work  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								8ae64b270f 
								
							
								 
							
						 
						
							
							
								
								implement /room_keys/version too (untested)  
							
							
							
						 
						
							2018-08-12 19:14:31 -04:00  
				
					
						
							
							
								 
						
							
							
								6b8c07abc2 
								
							
								 
							
						 
						
							
							
								
								make it work and fix pep8  
							
							
							
						 
						
							2018-08-12 19:13:09 -04:00  
				
					
						
							
							
								 
						
							
							
								0bc4627a73 
								
							
								 
							
						 
						
							
							
								
								interim WIP checkin; doesn't build yet  
							
							
							
						 
						
							2018-08-12 18:23:10 -04:00  
				
					
						
							
							
								 
						
							
							
								53ace904b2 
								
							
								 
							
						 
						
							
							
								
								total WIP skeleton for /room_keys API  
							
							
							
						 
						
							2018-08-12 18:23:10 -04:00