summary refs log tree commit diff
path: root/synapse (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-23Block attempts to send server notices to remote usersRichard van der Hoff1-0/+4
2018-05-23style v0.30.0-rc1Neil Johnson1-3/+4
2018-05-23bump version and changelogNeil Johnson2-1/+37
2018-05-22Remove unused string formatting paramErik Johnston1-1/+0
2018-05-22Don't support limitless paginationErik Johnston1-8/+6
The pagination storage function supported not specifiying a limit on the number of events returned. This was triggered when using the search or context API with a limit of zero, which the storage function took to mean not being limited.
2018-05-22fix synchrotronhera1-1/+1
2018-05-22custom error code for not leaving server notices roomRichard van der Hoff2-0/+2
2018-05-22comment typoDavid Baker1-1/+1
2018-05-22Add a 'has_consented' template var to consent formsRichard van der Hoff3-4/+21
fixes #3260
2018-05-22Enable auto-escaping for the consent templatesRichard van der Hoff1-1/+4
... to reduce the risk of somebody introducing an html injection attack...
2018-05-22Fix dependency on jinja2Richard van der Hoff1-1/+1
Delay the import of ConsentResource, so that we can get away without jinja2 if people don't have the consent resource enabled. Fixes #3259
2018-05-22Reject attempts to send event before privacy consent is givenRichard van der Hoff6-2/+179
Returns an M_CONSENT_NOT_GIVEN error (cf https://github.com/matrix-org/matrix-doc/issues/1252) if consent is not yet given.
2018-05-22Stub out ServerNoticesSender on the workersRichard van der Hoff6-8/+66
... and have the sync endpoints call it directly rather than obsure indirection via PresenceHandler
2018-05-22Move consent config parsing into ConsentConfigRichard van der Hoff4-15/+21
turns out we need to reuse this, so it's better in the config class.
2018-05-22Send users a server notice about consentRichard van der Hoff11-11/+255
When a user first syncs, we will send them a server notice asking them to consent to the privacy policy if they have not already done so.
2018-05-22Rename 'version' param on user consent configRichard van der Hoff2-5/+7
we're going to use it for the version we require too.
2018-05-22CommentErik Johnston1-1/+1
2018-05-22Fix logcontext resource usage trackingErik Johnston1-11/+27
2018-05-22Don't store contextErik Johnston1-8/+5
2018-05-22Move in_flight_requests_count to be a callback metricErik Johnston1-10/+21
2018-05-21Fix logcontext leak in HttpTransactionCacheRichard van der Hoff2-25/+42
ONE DAY I WILL PURGE THE WORLD OF THIS EVIL
2018-05-21Stop the transaction cache caching failuresRichard van der Hoff2-9/+67
The transaction cache has some code which tries to stop it caching failures, but if the callback function failed straight away, then things would happen backwards and we'd end up with the failure stuck in the cache.
2018-05-21Add in flight request metricsErik Johnston2-2/+154
This tracks CPU and DB usage while requests are in flight, rather than when we write the response.
2018-05-18Tighter filtering for user_daily_visitsNeil Johnson1-1/+5
2018-05-18fix psql compatability bugNeil Johnson1-1/+1
2018-05-18Add lxml to docker image for web previewsPaul Tötterman1-2/+2
Signed-off-by: Paul Tötterman <paul.totterman@iki.fi>
2018-05-18Better docstringsRichard van der Hoff1-0/+16
2018-05-18Make sure we reject attempts to invite the notices userRichard van der Hoff3-0/+20
2018-05-18Replace inline docstrings with "Attributes" in class docstringRichard van der Hoff1-23/+15
2018-05-18Fix error in handling receiptsRichard van der Hoff1-7/+11
Fixes an error which has been happening ever since #2158 (v0.21.0-rc1): > TypeError: argument of type 'ObservableDeferred' is not iterable fixes #3234
2018-05-17bump version, change logNeil Johnson2-2/+8
2018-05-17fix missing yield for server_notices_roomRichard van der Hoff1-3/+4
2018-05-17Remove unused `update_external_syncs`Richard van der Hoff1-55/+0
This method isn't used anywhere. Burninate it.
2018-05-17light grammar changesNeil Johnson1-4/+4
2018-05-17Note that secrets need to be retained.Michael Kaye1-2/+7
2018-05-17Document macaroon env var correctlyMichael Kaye1-2/+2
2018-05-17Reference synapse docker image and docker-composeMichael Kaye1-2/+3
2018-05-17Infrastructure for a server notices roomRichard van der Hoff9-7/+280
Server Notices use a special room which the user can't dismiss. They are created on demand when some other bit of the code calls send_notice. (This doesn't actually do much yet becuse we don't call send_notice anywhere)
2018-05-17postgres.rst: Add instructions how to setup the postgres user and clarify ↵rubo771-9/+23
the final step
2018-05-17Move RoomCreationHandler out of synapse.handlers.HandlersRichard van der Hoff6-11/+19
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-16bump version and changelog for 0.29.0 v0.29.0Neil Johnson2-1/+5
2018-05-16Clarify commentErik Johnston1-1/+2
2018-05-16CommentsErik Johnston1-0/+8
2018-05-16Move and rename variableErik Johnston1-3/+3
2018-05-16remove empty lineNeil Johnson1-1/+0
2018-05-16remove unused method recurring_user_daily_visit_statsNeil Johnson1-3/+0
2018-05-16style and further contraining queryNeil Johnson1-8/+12
2018-05-15pep8Neil Johnson1-1/+0
2018-05-15Limit query load of generate_user_daily_visitsNeil Johnson2-27/+54
The aim is to keep track of when it was last called and only query from that point in time
2018-05-15Make purge_history operate on tokensErik Johnston3-21/+25
As we're soon going to change how topological_ordering works
2018-05-15Use events_to_purge table rather than tokenErik Johnston1-15/+34
2018-05-15ConsentResource to gather policy consent from usersRichard van der Hoff14-5/+446
Hopefully there are enough comments and docs in this that it makes sense on its own.
2018-05-14further musical chairsNeil Johnson1-2/+3
2018-05-14rearrange and collect related PRsNeil Johnson1-26/+27
2018-05-14v0.29.0-rc1: bump version and change log v0.29.0-rc1Neil Johnson2-3/+65
2018-05-14instead of inserting user daily visit data at the end of the day, instead ↵Neil Johnson2-43/+30
insert incrementally through the day
2018-05-11Use stream rather depth ordering for push actionsErik Johnston3-40/+18
This simplifies things as it is, but will also allow us to change the way we traverse topologically without having to update the way push actions work.
2018-05-10transaction_id, destination twiceDamir Manapov1-2/+0
2018-05-10Set Server header in SynapseRequestRichard van der Hoff23-27/+28
(instead of everywhere that writes a response. Or rather, the subset of places which write responses where we haven't forgotten it). This also means that we don't have to have the mysterious version_string attribute in anything with a request handler. Unfortunately it does mean that we have to pass the version string wherever we instantiate a SynapseSite, which has been c&ped 150 times, but that is code that ought to be cleaned up anyway really.
2018-05-10Catch failure to part user from roomDavid Baker1-7/+13
2018-05-10Many docstringsDavid Baker2-0/+36
2018-05-10Remove redundant request_handler decoratorRichard van der Hoff7-38/+42
This is needless complexity; we might as well use the wrapper directly. Also rename wrap_request_handler->wrap_json_request_handler.
2018-05-10Factor wrap_request_handler_with_logging out of wrap_request_handlerRichard van der Hoff1-54/+66
... so that it can be used on non-JSON endpoints
2018-05-10Remove include_metrics paramRichard van der Hoff1-17/+7
The metrics are now available via the request, so this is redundant and can go away at last.
2018-05-10Move outgoing_responses_counter handling to RequestMetricsRichard van der Hoff2-4/+2
it's much neater there.
2018-05-10Bump requests_counter in wrapped_request_handlerRichard van der Hoff1-4/+11
less magic
2018-05-10Move RequestMetrics handling into SynapseRequest.processing()Richard van der Hoff2-24/+64
It fits quite nicely here, and opens the path to getting rid of the "include_metrics" mess.
2018-05-10Make RequestMetrics take a raw time rather than a clockRichard van der Hoff2-6/+6
... which is going to make it easier to move around.
2018-05-10Oops, don't call function passed to run_in_backgroundDavid Baker1-1/+1
2018-05-10Move request_id management into SynapseRequestRichard van der Hoff2-15/+25
2018-05-09Move RequestsMetrics to its own fileRichard van der Hoff2-124/+151
This is useful in its own right, because server.py is full of stuff; but more importantly, I want to do some refactor