summary refs log tree commit diff
path: root/synapse/api/errors.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-05Filter events_before and events_after in /context requestsBrendan Abolivier1-2/+4
While the current version of the spec doesn't say much about how this endpoint uses filters (see https://github.com/matrix-org/matrix-doc/issues/2338), the current implementation is that some fields of an EventFilter apply (the ones that are used when running the SQL query) and others don't (the ones that are used by the filter itself) because we don't call event_filter.filter(...). This seems counter-intuitive and probably not what we want so this commit fixes it.
2019-11-05Remove the psutil dependency (#6318)Amber Brown5-83/+146
* remove psutil and replace with resource
2019-11-04document the REPLICATE command a bit better (#6305)Richard van der Hoff5-10/+110
since I found myself wonder how it works
2019-11-01Incorporate reviewBrendan Abolivier7-15/+21
2019-11-01Factor out an _AsyncEventContextImpl (#6298)Richard van der Hoff4-85/+65
The intention here is to make it clearer which fields we can expect to be populated when: notably, that the _event_type etc aren't used for the synchronous impl of EventContext.
2019-11-01Update synapse/storage/data_stores/main/schema/delta/56/event_labels.sqlBrendan Abolivier1-1/+1
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2019-11-02Add contributer docs for using the provided linters script (#6164)Jason Robinson3-0/+13
* Add lint dependencies black, flake8 and isort These are required when running the `lint.sh` dev scripts. Signed-off-by: Jason Robinson <jasonr@matrix.org> * Add contributer docs for using the providers linters script Add also to the pull request template to avoid build failures due to people not knowing that linters need running. Signed-off-by: Jason Robinson <jasonr@matrix.org> * Fix mention of linter errors correction Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Add mention for installing linter dependencies Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Remove linters from python dependencies as per PR review Signed-off-by: Jason Robinson <jasonr@matrix.org>
2019-11-01Support for routing outbound HTTP requests via a proxy (#6239)Richard van der Hoff16-12/+812
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198.
2019-11-01Remove last usages of deprecated logging.warn method (#6314)Andrew Morgan3-3/+4
2019-11-01Add more data to the event_labels table and fix the indexesBrendan Abolivier3-5/+21
2019-11-01Document lint.sh & allow application to specified files only (#6312)Neil Pilgrim3-3/+20
2019-11-01Add unstable feature flagBrendan Abolivier1-0/+3
2019-11-01LintBrendan Abolivier2-1/+2
2019-11-01Incorporate reviewBrendan Abolivier7-21/+34
2019-11-01