573712da6b 
								
							
								 
							
						 
						
							
							
								
								Update comments  
							
							
							
						 
						
							2018-02-21 11:29:49 +00:00  
				
					
						
							
							
								 
						
							
							
								6ff8c87484 
								
							
								 
							
						 
						
							
							
								
								Batch inserts into event_push_actions_staging  
							
							
							
						 
						
							2018-02-20 11:33:07 +00:00  
				
					
						
							
							
								 
						
							
							
								012e8e142a 
								
							
								 
							
						 
						
							
							
								
								Comments  
							
							
							
						 
						
							2018-02-16 11:35:01 +00:00  
				
					
						
							
							
								 
						
							
							
								4810f7effd 
								
							
								 
							
						 
						
							
							
								
								Remove context.push_actions  
							
							
							
						 
						
							2018-02-15 15:47:06 +00:00  
				
					
						
							
							
								 
						
							
							
								acac21248c 
								
							
								 
							
						 
						
							
							
								
								Store push actions in staging area  
							
							
							
						 
						
							2018-02-15 15:47:04 +00:00  
				
					
						
							
							
								 
						
							
							
								03dd745fe2 
								
							
								 
							
						 
						
							
							
								
								Better logging when pushes fail  
							
							
							
						 
						
							2018-01-29 15:49:06 +00:00  
				
					
						
							
							
								 
						
							
							
								e051abd20b 
								
							
								 
							
						 
						
							
							
								
								add appid/device_display_name to to pusher logging  
							
							
							
						 
						
							2018-01-29 15:04:16 +00:00  
				
					
						
							
							
								 
						
							
							
								4528dd2443 
								
							
								 
							
						 
						
							
							
								
								Fix logging and add user_id  
							
							
							
						 
						
							2018-01-22 20:15:42 +00:00  
				
					
						
							
							
								 
						
							
							
								93efd7eb04 
								
							
								 
							
						 
						
							
							
								
								logging and debug for http pusher  
							
							
							
						 
						
							2018-01-22 18:14:10 +00:00  
				
					
						
							
							
								 
						
							
							
								2c6d63922a 
								
							
								 
							
						 
						
							
							
								
								Remove pushers when deleting access tokens  
							
							... 
							
							
							
							Whenever an access token is invalidated, we should remove the associated
pushers. 
							
						 
						
							2017-11-29 16:44:35 +00:00  
				
					
						
							
							
								 
						
							
							
								1b83c09c03 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2675  from matrix-org/rav/remove_broken_logcontext_funcs  
							
							... 
							
							
							
							Remove preserve_context_over_{fn, deferred} 
							
						 
						
							2017-11-15 11:13:53 +00:00  
				
					
						
							
							
								 
						
							
							
								7e6fa29cb5 
								
							
								 
							
						 
						
							
							
								
								Remove preserve_context_over_{fn, deferred}  
							
							... 
							
							
							
							Both of these functions ae known to leak logcontexts. Replace the remaining
calls to them and kill them off. 
							
						 
						
							2017-11-14 11:22:42 +00:00  
				
					
						
							
							
								 
						
							
							
								2a98ba0ed3 
								
							
								 
							
						 
						
							
							
								
								Rename redact_content option to include_content  
							
							... 
							
							
							
							The redact_content option never worked because it read the wrong config
section. The PR introducing it
(https://github.com/matrix-org/synapse/pull/2301 ) had feedback suggesting the
name be changed to not re-use the term 'redact' but this wasn't
incorporated.
This reanmes the option to give it a less confusing name, and also
means that people who've set the redact_content option won't suddenly
see a behaviour change when upgrading synapse, but instead can set
include_content if they want to.
This PR also updates the wording of the config comment to clarify
that this has no effect on event_id_only push.
Includes https://github.com/matrix-org/synapse/pull/2422  
							
						 
						
							2017-11-08 10:35:30 +00:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								9342bcfce0 
								
							
								 
							
						 
						
							
							
								
								Omit the *s for @room notifications  
							
							... 
							
							
							
							They're just redundant 
							
						 
						
							2017-10-16 13:38:10 +01:00  
				
					
						
							
							
								 
						
							
							
								81a5e0073c 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							
							
						 
						
							2017-10-10 15:53:34 +01:00  
				
					
						
							
							
								 
						
							
							
								ab1bc9bf5f 
								
							
								 
							
						 
						
							
							
								
								Don't KeyError if no power_levels event  
							
							
							
						 
						
							2017-10-10 15:34:05 +01:00  
				
					
						
							
							
								 
						
							
							
								0f1eb3e914 
								
							
								 
							
						 
						
							
							
								
								Use notification levels in power_levels  
							
							... 
							
							
							
							Rather than making the condition directly require a specific power
level. This way the level require to notify a room can be configured
per room. 
							
						 
						
							2017-10-10 15:23:00 +01:00  
				
					
						
							
							
								 
						
							
							
								c9f034b4ac 
								
							
								 
							
						 
						
							
							
								
								There was already a constant for this  
							
							... 
							
							
							
							also update copyright 
							
						 
						
							2017-10-10 11:47:10 +01:00  
				
					
						
							
							
								 
						
							
							
								a9f9d68631 
								
							
								 
							
						 
						
							
							
								
								More optimisation  
							
							
							
						 
						
							2017-10-10 11:38:31 +01:00  
				
					
						
							
							
								 
						
							
							
								707374d5dc 
								
							
								 
							
						 
						
							
							
								
								What year is it!? Who's the president!?  
							
							
							
						 
						
							2017-10-10 11:21:41 +01:00  
				
					
						
							
							
								 
						
							
							
								269af961e9 
								
							
								 
							
						 
						
							
							
								
								Make be faster  
							
							
							
						 
						
							2017-10-05 13:27:12 +01:00  
				
					
						
							
							
								 
						
							
							
								ed80c6b6cc 
								
							
								 
							
						 
						
							
							
								
								Add fastpath optimisation  
							
							
							
						 
						
							2017-10-05 13:20:22 +01:00  
				
					
						
							
							
								 
						
							
							
								e433393c4f 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							
							
						 
						
							2017-10-05 13:08:02 +01:00  
				
					
						
							
							
								 
						
							
							
								985ce80375 
								
							
								 
							
						 
						
							
							
								
								They're called rooms  
							
							
							
						 
						
							2017-10-05 13:03:44 +01:00  
				
					
						
							
							
								 
						
							
							
								b9b9714fd5 
								
							
								 
							
						 
						
							
							
								
								Get rule type right  
							
							
							
						 
						
							2017-10-05 13:02:19 +01:00  
				
					
						
							
							
								 
						
							
							
								fa969cfdde 
								
							
								 
							
						 
						
							
							
								
								Support for channel notifications  
							
							... 
							
							
							
							Add condition type to check the sender's power level and add a base
rule using it for @channel notifications. 
							
						 
						
							2017-10-05 12:39:18 +01:00  
				
					
						
							
							
								 
						
							
							
								0c8da8b519 
								
							
								 
							
						 
						
							
							
								
								Use better method for word boundary searching  
							
							... 
							
							
							
							From ebc95667b8 
							
						 
						
							2017-10-05 11:57:43 +01:00  
				
					
						
							
							
								 
						
							
							
								cbe3c3fdd4 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							
							
						 
						
							2017-10-05 11:43:10 +01:00  
				
					
						
							
							
								 
						
							
							
								6748f0a579 
								
							
								 
							
						 
						
							
							
								
								Fix notif kws that start/end with non-word chars  
							
							... 
							
							
							
							Only prepend / append word bounary characters if the search
expression starts or ends with a word character, otherwise they
don't work because there's no word bounary between whitespace and
a non-word char. 
							
						 
						
							2017-10-05 11:33:30 +01:00  
				
					
						
							
							
								 
						
							
							
								436ee0a2ea 
								
							
								 
							
						 
						
							
							
								
								Also include the room_id  
							
							... 
							
							
							
							as really it's part of the event ID 
							
						 
						
							2017-09-18 15:58:38 +01:00  
				
					
						
							
							
								 
						
							
							
								b393f5db51 
								
							
								 
							
						 
						
							
							
								
								Use .get - it's much shorter  
							
							
							
						 
						
							2017-09-18 15:50:26 +01:00  
				
					
						
							
							
								 
						
							
							
								a2562f9d74 
								
							
								 
							
						 
						
							
							
								
								Add support for event_id_only push format  
							
							... 
							
							
							
							Param in the data dict of a pusher that tells an HTTP pusher to
send just the event_id of the event it's notifying about and the
notification counts. For clients that want to go & fetch the body
of the event themselves anyway. 
							
						 
						
							2017-09-18 15:39:39 +01:00  
				
					
						
							
							
								 
						
							
							
								bfde076022 
								
							
								 
							
						 
						
							
							
								
								Increase cache hit ratio for push  
							
							... 
							
							
							
							We don't update the cache in all code paths, which causes subsequent
calls to miss the cache 
							
						 
						
							2017-07-14 16:11:26 +01:00  
				
					
						
							
							
								 
						
							
							
								8d26385d76 
								
							
								 
							
						 
						
							
							
								
								Add more metrics to push rule evaluation  
							
							
							
						 
						
							2017-07-13 14:37:30 +01:00  
				
					
						
							
							
								 
						
							
							
								f60218ec41 
								
							
								 
							
						 
						
							
							
								
								Push: Don't acquire lock unless necessary  
							
							
							
						 
						
							2017-07-13 11:23:53 +01:00  
				
					
						
							
							
								 
						
							
							
								f502b0dea1 
								
							
								 
							
						 
						
							
							
								
								Perf: Don't filter events for push  
							
							... 
							
							
							
							We know the users are joined and we can explicitly check for if they are
ignoring the user, so lets do that. 
							
						 
						
							2017-07-07 14:04:40 +01:00  
				
					
						
							
							
								 
						
							
							
								3d31b39297 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2332  from matrix-org/rav/fix_pushes  
							
							... 
							
							
							
							Fix caching error in the push evaluator 
							
						 
						
							2017-07-05 11:10:53 +01:00  
				
					
						
							
							
								 
						
							
							
								73cfe48031 
								
							
								 
							
						 
						
							
							
								
								Fix caching error in the push evaluator  
							
							... 
							
							
							
							Initialising `result` to `{}` in the parameters meant that every call to
_flatten_dict used the *same* target dictionary.
I'm hopeful this will fix https://github.com/matrix-org/synapse/issues/2270 ,
but I suspect it won't. (This code seems to have been here since forever,
unlike the bug, and I don't really think it explains the observed
behaviour). Still, it makes it hard to investigate the problem. 
							
						 
						
							2017-07-05 00:28:43 +01:00  
				
					
						
							
							
								 
						
							
							
								75eba3b07d 
								
							
								 
							
						 
						
							
							
								
								Fix TravisCI tests for PR  #2301  
							
							
							
						 
						
							2017-06-23 15:15:18 +02:00  
				
					
						
							
							
								 
						
							
							
								1591eddaea 
								
							
								 
							
						 
						
							
							
								
								Add configuration parameter to allow redaction of content from push messages for google/apple devices  
							
							
							
						 
						
							2017-06-23 13:01:04 +02:00  
				
					
						
							
							
								 
						
							
							
								cca94272fa 
								
							
								 
							
						 
						
							
							
								
								Fix typo when getting app name  
							
							
							
						 
						
							2017-06-06 11:50:07 +01:00  
				
					
						
							
							
								 
						
							
							
								66b121b2fc 
								
							
								 
							
						 
						
							
							
								
								Fix wrong number of arguments  
							
							
							
						 
						
							2017-06-06 11:46:38 +01:00  
				
					
						
							
							
								 
						
							
							
								11c2a3655f 
								
							
								 
							
						 
						
							
							
								
								Only load jinja2 templates once  
							
							... 
							
							
							
							Instead of every time a new email pusher is created, as loading jinja2
templates is slow. 
							
						 
						
							2017-05-22 17:48:58 +01:00  
				
					
						
							
							
								 
						
							
							
								6489455bed 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2017-05-22 16:22:04 +01:00  
				
					
						
							
							
								 
						
							
							
								d668caa79c 
								
							
								 
							
						 
						
							
							
								
								Remove spurious log level guards  
							
							
							
						 
						
							2017-05-22 16:21:06 +01:00  
				
					
						
							
							
								 
						
							
							
								7fb80b5eae 
								
							
								 
							
						 
						
							
							
								
								Check if current event is a membership event  
							
							
							
						 
						
							2017-05-22 15:02:12 +01:00  
				
					
						
							
							
								 
						
							
							
								2d17b09a6d 
								
							
								 
							
						 
						
							
							
								
								Add debug logging  
							
							
							
						 
						
							2017-05-22 15:01:36 +01:00  
				
					
						
							
							
								 
						
							
							
								24c8f38784 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2017-05-22 14:59:27 +01:00  
				
					
						
							
							
								 
						
							
							
								25f03cf8e9 
								
							
								 
							
						 
						
							
							
								
								Use tuple unpacking  
							
							
							
						 
						
							2017-05-22 14:58:22 +01:00