7e2f971c08 
								
							
								 
							
						 
						
							
							
								
								Remove some unused functions ( #711 )  
							
							... 
							
							
							
							* Remove some unused functions
* get_room_events_stream is only used in tests
* is_exclusive_room might actually be something we want 
							
						 
						
							2016-04-08 14:01:56 +01:00  
				
					
						
							
							
								 
						
							
							
								d83d004ccd 
								
							
								 
							
						 
						
							
							
								
								Fix flake8 warnings for new flake8  
							
							
							
						 
						
							2016-02-02 17:18:50 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								4dec901c76 
								
							
								 
							
						 
						
							
							
								
								Cap the time to retry txns to appservices to 8.5 minutes  
							
							... 
							
							
							
							There's been numerous issues with people playing around with their
application service and then not receiving events from their HS for
ages due to backoff timers reaching crazy heights (albeit capped at
< 1 day).
Reduce the max time between pokes to be 8.5 minutes (2^9 secs) which
is quick enough for people to wait it out (avg wait time being 4.25 min)
but long enough to actually give the AS breathing room if it needs it. 
							
						 
						
							2015-10-21 10:10:55 +01:00  
				
					
						
							
							
								 
						
							
							
								f43544eecc 
								
							
								 
							
						 
						
							
							
								
								Make the appservice use 'users_in_room' rather than get_room_members since it is cached  
							
							
							
						 
						
							2015-05-22 11:01:28 +01:00  
				
					
						
							
							
								 
						
							
							
								813e54bd5b 
								
							
								 
							
						 
						
							
							
								
								Fix more AS sender ID thinkos.  
							
							... 
							
							
							
							Specifically, the ASes own user ID wasn't being treated as 'exclusive' so
a human could nab it. Also, the HS would needlessly send user queries to the
AS for its own user ID. 
							
						 
						
							2015-04-01 14:05:24 +01:00  
				
					
						
							
							
								 
						
							
							
								9fa8bda099 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into application-services-registration-script  
							
							
							
						 
						
							2015-04-01 10:19:17 +01:00  
				
					
						
							
							
								 
						
							
							
								09cbff174a 
								
							
								 
							
						 
						
							
							
								
								Fix thinko whereby events *for the AS specifically* were not passed on.  
							
							... 
							
							
							
							This was caused by not explicitly checking the service.sender field. This
has now been fixed and a regression test has been added. 
							
						 
						
							2015-03-31 16:44:45 +01:00  
				
					
						
							
							
								 
						
							
							
								b59aa74556 
								
							
								 
							
						 
						
							
							
								
								Fix tests and missing returns on deferreds.  
							
							
							
						 
						
							2015-03-31 11:35:45 +01:00  
				
					
						
							
							
								 
						
							
							
								32206dde3f 
								
							
								 
							
						 
						
							
							
								
								Fixes from PR comments  
							
							
							
						 
						
							2015-03-26 10:11:52 +00:00  
				
					
						
							
							
								 
						
							
							
								d04fa1f712 
								
							
								 
							
						 
						
							
							
								
								Implement ServiceQueuer with tests.  
							
							
							
						 
						
							2015-03-16 14:03:16 +00:00  
				
					
						
							
							
								 
						
							
							
								6279285b2a 
								
							
								 
							
						 
						
							
							
								
								Replace EventGrouper for ServiceQueuer to move to push-based txns. Fix tests and add stub tests for ServiceQueuer.  
							
							
							
						 
						
							2015-03-16 13:15:40 +00:00  
				
					
						
							
							
								 
						
							
							
								c9c444f562 
								
							
								 
							
						 
						
							
							
								
								Wrap polling/retry blocks in try/excepts to avoid sending to other ASes breaking permanently should an error occur.  
							
							
							
						 
						
							2015-03-16 10:38:02 +00:00  
				
					
						
							
							
								 
						
							
							
								835e01fc70 
								
							
								 
							
						 
						
							
							
								
								Minor PR comment tweaks.  
							
							
							
						 
						
							2015-03-16 10:16:59 +00:00  
				
					
						
							
							
								 
						
							
							
								db1fbc6c6f 
								
							
								 
							
						 
						
							
							
								
								Fix remaining scheduler bugs. Add more informative logging.  
							
							
							
						 
						
							2015-03-10 10:04:20 +00:00  
				
					
						
							
							
								 
						
							
							
								04c9751f24 
								
							
								 
							
						 
						
							
							
								
								Bug fixes whilst putting it all together  
							
							
							
						 
						
							2015-03-09 17:45:41 +00:00  
				
					
						
							
							
								 
						
							
							
								21fd84dcb8 
								
							
								 
							
						 
						
							
							
								
								Use seconds; start gluing in the AS scheduler into the AS handler.  
							
							
							
						 
						
							2015-03-09 17:01:19 +00:00  
				
					
						
							
							
								 
						
							
							
								4a6afa6abf 
								
							
								 
							
						 
						
							
							
								
								Assign the AS ID from the database; replace old placeholder txn id.  
							
							
							
						 
						
							2015-03-06 17:27:55 +00:00  
				
					
						
							
							
								 
						
							
							
								64345b7559 
								
							
								 
							
						 
						
							
							
								
								Upper bound the backoff.  
							
							
							
						 
						
							2015-03-06 16:41:19 +00:00  
				
					
						
							
							
								 
						
							
							
								2602ddc379 
								
							
								 
							
						 
						
							
							
								
								Apply clarity and docstrings  
							
							
							
						 
						
							2015-03-06 16:16:14 +00:00  
				
					
						
							
							
								 
						
							
							
								0354659f9d 
								
							
								 
							
						 
						
							
							
								
								Finish synapse.appservice.scheduler implementation.  
							
							... 
							
							
							
							With tests to assert behaviour. Not hooked up yet. Stub datastore methods
not implemented yet. 
							
						 
						
							2015-03-06 16:09:05 +00:00  
				
					
						
							
							
								 
						
							
							
								7d3491c741 
								
							
								 
							
						 
						
							
							
								
								Add some loggers  
							
							
							
						 
						
							2015-03-06 15:17:50 +00:00  
				
					
						
							
							
								 
						
							
							
								f260cb72cd 
								
							
								 
							
						 
						
							
							
								
								Flesh out more stub functions.  
							
							
							
						 
						
							2015-03-06 15:12:24 +00:00  
				
					
						
							
							
								 
						
							
							
								141ec04d19 
								
							
								 
							
						 
						
							
							
								
								Add stub ApplicationServiceTransactionStore. Bootstrap Recoverers. Fill in stub Transaction functions.  
							
							
							
						 
						
							2015-03-06 14:53:35 +00:00  
				
					
						
							
							
								 
						
							
							
								0fbfe1b08a 
								
							
								 
							
						 
						
							
							
								
								Add more tests; fix bugs.  
							
							
							
						 
						
							2015-03-06 14:36:52 +00:00  
				
					
						
							
							
								 
						
							
							
								192e228a98 
								
							
								 
							
						 
						
							
							
								
								Start adding some tests  
							
							
							
						 
						
							2015-03-06 11:50:27 +00:00  
				
					
						
							
							
								 
						
							
							
								d516d68b29 
								
							
								 
							
						 
						
							
							
								
								Rejig structure given the appservice_handler already filters the correct ASes to use.  
							
							
							
						 
						
							2015-03-06 10:25:50 +00:00  
				
					
						
							
							
								 
						
							
							
								0c838f9f5e 
								
							
								 
							
						 
						
							
							
								
								Minor tweaks  
							
							
							
						 
						
							2015-03-05 17:45:52 +00:00  
				
					
						
							
							
								 
						
							
							
								773cb3b688 
								
							
								 
							
						 
						
							
							
								
								Add stub architecture for txn reliability.  
							
							
							
						 
						
							2015-03-05 17:35:07 +00:00  
				
					
						
							
							
								 
						
							
							
								e319071191 
								
							
								 
							
						 
						
							
							
								
								Add stub scheduler module for txn reliability  
							
							
							
						 
						
							2015-03-05 16:30:33 +00:00  
				
					
						
							
							
								 
						
							
							
								be09c23ff0 
								
							
								 
							
						 
						
							
							
								
								Add txn_id kwarg to push methods  
							
							
							
						 
						
							2015-03-05 15:40:07 +00:00  
				
					
						
							
							
								 
						
							
							
								40c9896705 
								
							
								 
							
						 
						
							
							
								
								Add functions to return whether an AS has exclusively claimed a matching namespace.  
							
							
							
						 
						
							2015-02-27 11:03:56 +00:00  
				
					
						
							
							
								 
						
							
							
								16b90764ad 
								
							
								 
							
						 
						
							
							
								
								Convert expected format for AS regex to include exclusivity.  
							
							... 
							
							
							
							Previously you just specified the regex as a string, now it expects a JSON
object with a 'regex' key and an 'exclusive' boolean, as per spec. 
							
						 
						
							2015-02-27 10:44:32 +00:00  
				
					
						
							
							
								 
						
							
							
								f518324426 
								
							
								 
							
						 
						
							
							
								
								Minor tweaks based on PR feedback.  
							
							
							
						 
						
							2015-02-11 16:41:16 +00:00  
				
					
						
							
							
								 
						
							
							
								fd40d992ad 
								
							
								 
							
						 
						
							
							
								
								PEP8-ify  
							
							
							
						 
						
							2015-02-11 10:41:33 +00:00  
				
					
						
							
							
								 
						
							
							
								c7783d6fee 
								
							
								 
							
						 
						
							
							
								
								Notify ASes for events sent by other users in a room which an AS user is a part of.  
							
							
							
						 
						
							2015-02-11 10:36:08 +00:00  
				
					
						
							
							
								 
						
							
							
								f7cac2f7b6 
								
							
								 
							
						 
						
							
							
								
								Fix bugs so lazy room joining works as intended.  
							
							
							
						 
						
							2015-02-09 15:01:28 +00:00  
				
					
						
							
							
								 
						
							
							
								ac3183caaa 
								
							
								 
							
						 
						
							
							
								
								Register a user account for the AS when the AS registers. Add 'sender' column to AS table.  
							
							
							
						 
						
							2015-02-09 12:03:37 +00:00  
				
					
						
							
							
								 
						
							
							
								c71456117d 
								
							
								 
							
						 
						
							
							
								
								Fix user query checks. HS>AS pushing now works.  
							
							
							
						 
						
							2015-02-05 14:17:08 +00:00  
				
					
						
							
							
								 
						
							
							
								0613666d9c 
								
							
								 
							
						 
						
							
							
								
								Serialize events before sending to ASes  
							
							
							
						 
						
							2015-02-05 13:42:35 +00:00  
				
					
						
							
							
								 
						
							
							
								51d63ac329 
								
							
								 
							
						 
						
							
							
								
								Glue AS work to general event notifications. Add more exception handling when poking ASes.  
							
							
							
						 
						
							2015-02-05 13:19:46 +00:00  
				
					
						
							
							
								 
						
							
							
								27091f146a 
								
							
								 
							
						 
						
							
							
								
								Add hs_token column and generate a different token f.e application service.  
							
							
							
						 
						
							2015-02-05 10:08:12 +00:00  
				
					
						
							
							
								 
						
							
							
								a1a4960baf 
								
							
								 
							
						 
						
							
							
								
								Impl push_bulk function  
							
							
							
						 
						
							2015-02-05 09:43:22 +00:00  
				
					
						
							
							
								 
						
							
							
								6d3e4f4d0a 
								
							
								 
							
						 
						
							
							
								
								Update user/alias query APIs to use new format of SimpleHttpClient.get_json  
							
							
							
						 
						
							2015-02-04 17:32:44 +00:00  
				
					
						
							
							
								 
						
							
							
								aa8cce58bf 
								
							
								 
							
						 
						
							
							
								
								Add query_user/alias APIs.  
							
							
							
						 
						
							2015-02-04 16:44:53 +00:00  
				
					
						
							
							
								 
						
							
							
								525a218b2b 
								
							
								 
							
						 
						
							
							
								
								Begin to add unit tests for appservice glue and regex testing.  
							
							
							
						 
						
							2015-02-04 12:24:20 +00:00  
				
					
						
							
							
								 
						
							
							
								17753f0c20 
								
							
								 
							
						 
						
							
							
								
								Add stub ApplicationServiceApi and glue it with the handler.  
							
							
							
						 
						
							2015-02-04 11:19:18 +00:00  
				
					
						
							
							
								 
						
							
							
								94a5db9f4d 
								
							
								 
							
						 
						
							
							
								
								Add appservice package and move ApplicationService into it.  
							
							
							
						 
						
							2015-02-03 14:44:16 +00:00