Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove code which updates `application_services_state.last_txn` (#12680) | Richard van der Hoff | 2022-05-17 | 1 | -21/+6 |
| | | | | This column is unused as of #12209, so let's stop writing to it. | ||||
* | Add type hints for `tests/unittest.py`. (#12347) | Richard van der Hoff | 2022-04-01 | 1 | -0/+1 |
| | | | In particular, add type hints for get_success and friends, which are then helpful in a bunch of places. | ||||
* | Use a sequence to generate AS transaction IDs, drop `last_txn` AS state (#12209) | Nick Mills-Barrett | 2022-04-01 | 1 | -69/+2 |
| | | | | | | | | Switching to a sequence means there's no need to track `last_txn` on the AS state table to generate new TXN IDs. This also means that there is no longer contention between the AS scheduler and AS handler on updates to the `application_services_state` table, which will prevent serialization errors during the complete AS txn transaction. | ||||
* | Send device list updates to application services (MSC3202) - part 1 (#11881) | Andrew Morgan | 2022-03-30 | 1 | -4/+13 |
| | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | Start application service stream token tracking from 1 (#12193) | Andrew Morgan | 2022-03-30 | 1 | -2/+2 |
| | | | Co-authored-by: Erik Johnston <erik@matrix.org> | ||||
* | Replace assertEquals and friends with non-deprecated versions. (#12092) | Patrick Cloke | 2022-02-28 | 1 | -43/+43 |
| | |||||
* | Add support for MSC3202: sending one-time key counts and fallback key usage ↵ | reivilibre | 2022-02-24 | 1 | -4/+4 |
| | | | | | states to Application Services. (#11617) Co-authored-by: Erik Johnston <erik@matrix.org> | ||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -1/+1 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Send to-device messages to application services (#11215) | Andrew Morgan | 2022-02-01 | 1 | -9/+17 |
| | | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | Clean up tests.storage.test_appservice (#11492) | reivilibre | 2021-12-02 | 1 | -177/+168 |
| | |||||
* | Add type annotations to `tests.storage.test_appservice`. (#11488) | reivilibre | 2021-12-02 | 1 | -48/+92 |
| | |||||
* | Require direct references to configuration variables. (#10985) | Patrick Cloke | 2021-10-06 | 1 | -1/+1 |
| | | | | | | This removes the magic allowing accessing configurable variables directly from the config object. It is now required that a specific configuration class is used (e.g. `config.foo` must be replaced with `config.server.foo`). | ||||
* | Use direct references for configuration variables (part 4). (#10893) | Patrick Cloke | 2021-09-23 | 1 | -1/+0 |
| | |||||
* | Use direct references for some configuration variables (part 3) (#10885) | Patrick Cloke | 2021-09-23 | 1 | -9/+5 |
| | | | | | | | | This avoids the overhead of searching through the various configuration classes by directly referencing the class that the attributes are in. It also improves type hints since mypy can now resolve the types of the configuration variables. | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 1 | -2/+1 |
| | |||||
* | Fix get|set_type_stream_id_for_appservice store functions (#8648) | Will Hunt | 2020-10-26 | 1 | -0/+56 |
| | |||||
* | Send some ephemeral events to appservices (#8437) | Will Hunt | 2020-10-15 | 1 | -4/+4 |
| | | | Optionally sends typing, presence, and read receipt information to appservices. | ||||
* | Add logging on startup/shutdown (#8448) | Erik Johnston | 2020-10-02 | 1 | -5/+9 |
| | | | | | This is so we can tell what is going on when things are taking a while to start up. The main change here is to ensure that transactions that are created during startup get correctly logged like normal transactions. | ||||
* | Simplify super() calls to Python 3 syntax. (#8344) | Patrick Cloke | 2020-09-18 | 1 | -1/+1 |
| | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py | ||||
* | Do not yield on awaitables in tests. (#8193) | Patrick Cloke | 2020-08-27 | 1 | -6/+18 |
| | |||||
* | Convert events worker database to async/await. (#8071) | Patrick Cloke | 2020-08-18 | 1 | -1/+2 |
| | |||||
* | Convert some of the general database methods to async (#8100) | Patrick Cloke | 2020-08-17 | 1 | -4/+12 |
| | |||||
* | Convert appservice, group server, profile and more databases to async (#8066) | Patrick Cloke | 2020-08-12 | 1 | -12/+12 |
| | |||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -3/+3 |
| | |||||
* | Allow configuration of Synapse's cache without using synctl or environment ↵ | Amber Brown | 2020-05-11 | 1 | -5/+5 |
| | | | | variables (#6391) | ||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -18/+18 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Add database config class (#6513) | Erik Johnston | 2019-12-18 | 1 | -11/+26 |
| | | | | | This encapsulates config for a given database and is the way to get new connections. | ||||
* | Fixup tests | Erik Johnston | 2019-12-06 | 1 | -5/+7 |
| | |||||
* | Change DataStores to accept 'database' param. | Erik Johnston | 2019-12-06 | 1 | -2/+3 |
| | |||||
* | Move storage classes into a main "data store". | Erik Johnston | 2019-10-21 | 1 | -1/+1 |
| | | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage. | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -2/+2 |
| | |||||
* | Expose DataStore._get_events as get_events_as_list | Erik Johnston | 2019-05-14 | 1 | -1/+1 |
| | | | | This is in preparation for reaction work which requires it. | ||||
* | Fix tests on postgresql (#3740) | Amber Brown | 2018-09-04 | 1 | -63/+68 |
| | |||||
* | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -2/+11 |
| | |||||
* | Run black. | black | 2018-08-10 | 1 | -122/+56 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -8/+12 |
| | |||||
* | Use str(e) instead of e.message | Adrian Tschira | 2018-04-15 | 1 | -6/+6 |
| | | | | | | | Doing this I learned e.message was pretty shortlived, added in 2.6, they realized it was a bad idea and deprecated it in 2.7 Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | s/replication_client/federation_client/ | Erik Johnston | 2018-03-13 | 1 | -5/+5 |
| | |||||
* | Fix tests | Erik Johnston | 2018-03-13 | 1 | -5/+5 |
| | |||||
* | Fix tests for Store.__init__ update | Richard van der Hoff | 2017-11-13 | 1 | -7/+7 |
| | | | | Fix the test to pass the right number of args to the Store constructors | ||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -1/+1 |
| | | | | what could possibly go wrong | ||||
* | Implement device key caching over federation | Erik Johnston | 2017-01-26 | 1 | -5/+16 |
| | |||||
* | Fix tests | Erik Johnston | 2016-11-21 | 1 | -5/+17 |
| | |||||
* | Merge pull request #1155 from matrix-org/erikj/pluggable_pwd_auth | Erik Johnston | 2016-10-12 | 1 | -3/+14 |
|\ | | | | | Implement pluggable password auth | ||||
| * | Implement pluggable password auth | Erik Johnston | 2016-10-03 | 1 | -3/+14 |
| | | | | | | | | | | | | Allows delegating the password auth to an external module. This also moves the LDAP auth to using this system, allowing it to be removed from the synapse tree entirely in the future. | ||||
* | | storage/appservice: make appservice methods only relying on the cache ↵ | Patrik Oldsberg | 2016-10-06 | 1 | -6/+3 |
|/ | | | | synchronous | ||||
* | Fix AS retries, but with correct ordering | Erik Johnston | 2016-06-07 | 1 | -4/+4 |
| | |||||
* | Fix AS retries | Erik Johnston | 2016-06-07 | 1 | -3/+3 |
| | |||||
* | Remove event fetching from DB threads | Erik Johnston | 2016-06-03 | 1 | -1/+1 |
| | |||||
* | Move cache size fiddling to descriptors only. Fix tests | Erik Johnston | 2016-03-01 | 1 | -5/+7 |
| | |||||
* | Fix tests | Erik Johnston | 2016-01-27 | 1 | -3/+3 |
| | |||||
* | Require ID and as_token be unique for ASs | Daniel Wagner-Hall | 2016-01-14 | 1 | -16/+85 |
| | | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported. | ||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-04-07 | 1 | -53/+348 |
|\ | |||||
| * | Use a sender localpart instead of a user ID. | Kegan Dougal | 2015-03-31 | 1 | -2/+2 |
| | | | | | | | | | | Form the user ID at runtime instead, This gives less room for error in AS config files since they cannot specify the domain of another HS. | ||||
| * | Edit SQL schema to use string IDs not ints. Use token as ID. Update tests. | Kegan Dougal | 2015-03-31 | 1 | -15/+23 |
| | | |||||
| * | Fix tests and missing returns on deferreds. | Kegan Dougal | 2015-03-31 | 1 | -12/+29 |
| | | |||||
| * | Remove more reg/unreg methods. Read config not database for cache. | Kegan Dougal | 2015-03-31 | 1 | -39/+0 |
| | | |||||
| * | Use event IDs instead of dumping event content in the txns table. | Kegan Dougal | 2015-03-09 | 1 | -13/+17 |
| | | |||||
| * | Finish appservice txn storage impl and tests. | Kegan Dougal | 2015-03-09 | 1 | -0/+68 |
| | | |||||
| * | Implement create_appservice_txn with tests. | Kegan Dougal | 2015-03-09 | 1 | -0/+67 |
| | | |||||
| * | Partially implement txn store methods with tests. | Kegan Dougal | 2015-03-09 | 1 | -2/+169 |
| | | |||||
* | | Make work in both Maria and SQLite. Fix tests | Erik Johnston | 2015-04-01 | 1 | -8/+4 |
|/ | |||||
* | Add more unit tests for exclusive namespaces. | Kegan Dougal | 2015-02-27 | 1 | -1/+1 |
| | |||||
* | Update unit tests to use new format. | Kegan Dougal | 2015-02-27 | 1 | -3/+9 |
| | |||||
* | Fix tests which broke when event caching was introduced. | Kegan Dougal | 2015-02-11 | 1 | -1/+4 |
| | |||||
* | Add hs_token column and generate a different token f.e application service. | Kegan Dougal | 2015-02-05 | 1 | -4/+6 |
| | |||||
* | Fix bug in store defer. Add more unit tests. | Kegan Dougal | 2015-02-04 | 1 | -0/+105 |