e9b2d047f6 
								
									
								
							
								 
							
						 
						
							
							
								
								make /context lazyload & filter aware ( #3567 )  
							
							... 
							
							
							
							make /context lazyload & filter aware. 
							
						 
						
							2018-07-27 15:12:50 +01:00  
				
					
						
							
							
								 
						
							
							
								0b0b24cb82 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/client_apis_move  
							
							
							
						 
						
							2018-07-23 13:21:15 +01:00  
				
					
						
							
							
								 
						
							
							
								a97c845271 
								
									
								
							
								 
							
						 
						
							
							
								
								Move v1-only APIs into their own module & isolate deprecated ones ( #3460 )  
							
							
							
						 
						
							2018-07-19 20:03:33 +10:00  
				
					
						
							
							
								 
						
							
							
								bacdf0cbf9 
								
							
								 
							
						 
						
							
							
								
								Move RoomContextHandler out of Handlers  
							
							... 
							
							
							
							This is in preparation for moving GET /context/ to a worker 
							
						 
						
							2018-07-18 15:33:03 +01:00  
				
					
						
							
							
								 
						
							
							
								8cb8df55e9 
								
							
								 
							
						 
						
							
							
								
								Split MessageHandler into read only and writers  
							
							... 
							
							
							
							This will let us call the read only parts from workers, and so be able
to move some APIs off of master, e.g. the `/state` API. 
							
						 
						
							2018-07-18 15:33:03 +01:00  
				
					
						
							
							
								 
						
							
							
								a2374b2c7f 
								
									
								
							
								 
							
						 
						
							
							
								
								fix sytests  
							
							
							
						 
						
							2018-07-14 07:52:58 +10:00  
				
					
						
							
							
								 
						
							
							
								3366b9c534 
								
							
								 
							
						 
						
							
							
								
								rename assert_params_in_request to assert_params_in_dict  
							
							... 
							
							
							
							the method "assert_params_in_request" does handle dicts and not
requests. A request body has to be parsed to json before this method
can be used 
							
						 
						
							2018-07-13 21:53:01 +02:00  
				
					
						
							
							
								 
						
							
							
								32fd6910d0 
								
							
								 
							
						 
						
							
							
								
								Use parse_{int,str} and assert from http.servlet  
							
							... 
							
							
							
							parse_integer and parse_string can take a request and raise errors
in case we have wrong or missing params.
This PR tries to use them more to deduplicate some code and make it
better readable 
							
						 
						
							2018-07-13 21:40:14 +02:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								6350bf925e 
								
									
								
							
								 
							
						 
						
							
							
								
								Attempt to be more performant on PyPy ( #3462 )  
							
							
							
						 
						
							2018-06-28 14:49:57 +01:00  
				
					
						
							
							
								 
						
							
							
								c46367d0d7 
								
							
								 
							
						 
						
							
							
								
								Move RoomCreationHandler out of synapse.handlers.Handlers  
							
							... 
							
							
							
							Handlers is deprecated nowadays, so let's move this out before I add a new
dependency on it.
Also fix the docstrings on create_room. 
							
						 
						
							2018-05-17 09:08:42 +01:00  
				
					
						
							
							
								 
						
							
							
								2a3c33ff03 
								
							
								 
							
						 
						
							
							
								
								Use six.moves.urlparse  
							
							... 
							
							
							
							The imports were shuffled around a bunch in py3
Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-04-15 21:22:43 +02:00  
				
					
						
							
							
								 
						
							
							
								56b0589865 
								
							
								 
							
						 
						
							
							
								
								Use create_and_send_nonmember_event everywhere  
							
							
							
						 
						
							2018-04-09 12:04:18 +01:00  
				
					
						
							
							
								 
						
							
							
								c7f0969731 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2986  from jplatte/join_reponse_room_id  
							
							... 
							
							
							
							Add room_id to the response of `rooms/{roomId}/join` 
							
						 
						
							2018-04-05 17:29:06 +01:00  
				
					
						
							
							
								 
						
							
							
								fa72803490 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2018-03-19 11:41:01 +00:00  
				
					
						
							
							
								 
						
							
							
								926ba76e23 
								
							
								 
							
						 
						
							
							
								
								Replace ujson with simplejson  
							
							
							
						 
						
							2018-03-15 23:43:31 +00:00  
				
					
						
							
							
								 
						
							
							
								47ce527f45 
								
							
								 
							
						 
						
							
							
								
								Add room_id to the response of `rooms/{roomId}/join`  
							
							... 
							
							
							
							Fixes  #2349  
						
							2018-03-13 14:48:12 +01:00  
				
					
						
							
							
								 
						
							
							
								f5160d4a3e 
								
							
								 
							
						 
						
							
							
								
								RoomMembershipRestServlet doesn't handle /forget  
							
							... 
							
							
							
							Due to the order we register the REST handlers `/forget` was handled by
the correct handler. 
							
						 
						
							2018-03-13 12:12:55 +00:00  
				
					
						
							
							
								 
						
							
							
								784f036306 
								
							
								 
							
						 
						
							
							
								
								Move RoomMemberHandler out of Handlers  
							
							
							
						 
						
							2018-03-01 14:36:50 +00:00  
				
					
						
							
							
								 
						
							
							
								8ec2e638be 
								
							
								 
							
						 
						
							
							
								
								Add event_creator worker  
							
							
							
						 
						
							2018-02-07 10:32:32 +00:00  
				
					
						
							
							
								 
						
							
							
								3e1e69ccaf 
								
							
								 
							
						 
						
							
							
								
								Update copyright  
							
							
							
						 
						
							2018-02-06 16:40:38 +00:00  
				
					
						
							
							
								 
						
							
							
								3fa362502c 
								
							
								 
							
						 
						
							
							
								
								Update places where we create events  
							
							
							
						 
						
							2018-02-05 16:01:48 +00:00  
				
					
						
							
							
								 
						
							
							
								d32385336f 
								
									
								
							
								 
							
						 
						
							
							
								
								add ?ts massaging for ASes ( #2754 )  
							
							... 
							
							
							
							blindly implement ?ts for AS. untested 
							
						 
						
							2018-01-23 09:59:06 +01:00  
				
					
						
							
							
								 
						
							
							
								51c9d9ed65 
								
							
								 
							
						 
						
							
							
								
								Add /room/{id}/event/{id} to synapse  
							
							... 
							
							
							
							Turns out that there is a valid usecase for retrieving event by id (notably
having received a push), but event ids should be scoped to room, so /event/{id}
is wrong. 
							
						 
						
							2018-01-09 14:39:12 +00:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								8090fd4664 
								
							
								 
							
						 
						
							
							
								
								Fix /joined_members to work with AS users  
							
							
							
						 
						
							2017-09-28 10:09:32 +01:00  
				
					
						
							
							
								 
						
							
							
								adec03395d 
								
							
								 
							
						 
						
							
							
								
								Fix bug where /joined_members didn't check user was in room  
							
							
							
						 
						
							2017-09-27 15:14:39 +01:00  
				
					
						
							
							
								 
						
							
							
								3e5a62ecd8 
								
							
								 
							
						 
						
							
							
								
								Add more granular event send metrics  
							
							
							
						 
						
							2017-05-02 14:23:26 +01:00  
				
					
						
							
							
								 
						
							
							
								d9aa645f86 
								
							
								 
							
						 
						
							
							
								
								Reduce size of joined_user cache  
							
							... 
							
							
							
							The _get_joined_users_from_context cache stores a mapping from user_id
to avatar_url and display_name. Instead of storing those in a dict,
store them in a namedtuple as that uses much less memory.
We also try converting the string to ascii to further reduce the size. 
							
						 
						
							2017-04-25 14:38:51 +01:00  
				
					
						
							
							
								 
						
							
							
								6957bfdca6 
								
							
								 
							
						 
						
							
							
								
								Don't recreate so many sets  
							
							
							
						 
						
							2017-03-16 11:54:26 +00:00  
				
					
						
							
							
								 
						
							
							
								17673404fb 
								
							
								 
							
						 
						
							
							
								
								Remove unused param  
							
							
							
						 
						
							2017-02-20 15:02:01 +00:00  
				
					
						
							
							
								 
						
							
							
								355d62c499 
								
							
								 
							
						 
						
							
							
								
								Make kick & ban reasons work  
							
							... 
							
							
							
							We somehow specced APIs with reason strings, preserve the content
in the events  and even have the clients display them, but failed
to actually pass the parameter through to the event content. 
							
						 
						
							2017-02-14 15:10:55 +00:00  
				
					
						
							
							
								 
						
							
							
								6823fe5241 
								
							
								 
							
						 
						
							
							
								
								Linearize updates to membership via PUT /state/  
							
							
							
						 
						
							2017-01-09 18:25:13 +00:00  
				
					
						
							
							
								 
						
							
							
								1574b839e0 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1676  from matrix-org/erikj/room_list  
							
							... 
							
							
							
							Add new API appservice specific public room list 
							
						 
						
							2016-12-12 17:00:10 +00:00  
				
					
						
							
							
								 
						
							
							
								52d12ca782 
								
							
								 
							
						 
						
							
							
								
								Add /room/<room_id>/joined_members API  
							
							... 
							
							
							
							This returns the currently joined members in the room with their display
names and avatar urls. This is more efficient than /members for large
rooms where you don't need the full events. 
							
						 
						
							2016-12-08 13:32:07 +00:00  
				
					
						
							
							
								 
						
							
							
								de796f27e6 
								
							
								 
							
						 
						
							
							
								
								Add joined_rooms servlet  
							
							
							
						 
						
							2016-12-08 11:39:03 +00:00  
				
					
						
							
							
								 
						
							
							
								f32fb65552 
								
							
								 
							
						 
						
							
							
								
								Add new API appservice specific public room list  
							
							
							
						 
						
							2016-12-06 16:12:27 +00:00  
				
					
						
							
							
								 
						
							
							
								af4a1bac50 
								
							
								 
							
						 
						
							
							
								
								Move .observe() up to the cache to make things neater  
							
							
							
						 
						
							2016-11-14 09:52:41 +00:00  
				
					
						
							
							
								 
						
							
							
								8ecaff51a1 
								
							
								 
							
						 
						
							
							
								
								Review comments  
							
							
							
						 
						
							2016-11-11 17:47:03 +00:00  
				
					
						
							
							
								 
						
							
							
								f6c48802f5 
								
							
								 
							
						 
						
							
							
								
								More flake8  
							
							
							
						 
						
							2016-11-11 15:08:24 +00:00  
				
					
						
							
							
								 
						
							
							
								a88bc67f88 
								
							
								 
							
						 
						
							
							
								
								Flake8 and fix whoopsie  
							
							
							
						 
						
							2016-11-11 15:02:29 +00:00  
				
					
						
							
							
								 
						
							
							
								42c43cfafd 
								
							
								 
							
						 
						
							
							
								
								Use ObservableDeferreds instead of Deferreds as they behave as intended  
							
							
							
						 
						
							2016-11-11 14:54:10 +00:00  
				
					
						
							
							
								 
						
							
							
								8a8ad46f48 
								
							
								 
							
						 
						
							
							
								
								Flake8  
							
							
							
						 
						
							2016-11-10 15:22:11 +00:00  
				
					
						
							
							
								 
						
							
							
								2771447c29 
								
							
								 
							
						 
						
							
							
								
								Store Promise<Response> instead of Response for HTTP API transactions  
							
							... 
							
							
							
							This fixes a race whereby:
 - User hits an endpoint.
 - No cached transaction so executes main code.
 - User hits same endpoint.
 - No cache transaction so executes main code.
 - Main code finishes executing and caches response and returns.
 - Main code finishes executing and caches response and returns.
 This race is common in the wild when Synapse is struggling under load.
 This commit fixes the race by:
  - User hits an endpoint.
  - Caches the promise to execute the main code and executes main code.
  - User hits same endpoint.
  - Yields on the same promise as the first request.
  - Main code finishes executing and returns, unblocking both requests. 
							
						 
						
							2016-11-10 14:49:26 +00:00  
				
					
						
							
							
								 
						
							
							
								22578545a0 
								
							
								 
							
						 
						
							
							
								
								Time out typing over federation  
							
							
							
						 
						
							2016-09-23 14:00:52 +01:00  
				
					
						
							
							
								 
						
							
							
								87528f0756 
								
							
								 
							
						 
						
							
							
								
								Support /initialSync in synchrotron worker  
							
							
							
						 
						
							2016-09-21 11:46:28 +01:00  
				
					
						
							
							
								 
						
							
							
								ddc89df89d 
								
							
								 
							
						 
						
							
							
								
								Enable guest access to POST /publicRooms  
							
							
							
						 
						
							2016-09-17 15:55:24 +01:00  
				
					
						
							
							
								 
						
							
							
								2e67cabd7f 
								
							
								 
							
						 
						
							
							
								
								Make POST /publicRooms require auth  
							
							
							
						 
						
							2016-09-16 11:32:51 +01:00  
				
					
						
							
							
								 
						
							
							
								c33b25fd8d 
								
							
								 
							
						 
						
							
							
								
								Change the way we calculate new_limit in /publicRooms and add POST API  
							
							
							
						 
						
							2016-09-15 17:35:20 +01:00  
				
					
						
							
							
								 
						
							
							
								68c1ed4d1a 
								
							
								 
							
						 
						
							
							
								
								Remove default public rooms limit  
							
							
							
						 
						
							2016-09-15 13:56:20 +01:00