Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix up tests | Erik Johnston | 2017-03-30 | 1 | -1/+1 |
| | |||||
* | User Cursor.__iter__ instead of fetchall | Erik Johnston | 2017-03-23 | 1 | -2/+2 |
| | | | | This prevents unnecessary construction of lists | ||||
* | Fix caching of remote servers' signature keys | Richard van der Hoff | 2017-03-22 | 1 | -0/+53 |
| | | | | | | | | | The `@cached` decorator on `KeyStore._get_server_verify_key` was missing its `num_args` parameter, which meant that it was returning the wrong key for any server which had more than one recorded key. By way of a fix, change the default for `num_args` to be *all* arguments. To implement that, factor out a common base class for `CacheDescriptor` and `CacheListDescriptor`. | ||||
* | Aggregate event push actions | Erik Johnston | 2017-02-14 | 1 | -0/+86 |
| | |||||
* | Fix unit tests | Erik Johnston | 2017-01-30 | 1 | -4/+4 |
| | |||||
* | Fix unit tests | Erik Johnston | 2017-01-26 | 1 | -0/+17 |
| | |||||
* | Implement device key caching over federation | Erik Johnston | 2017-01-26 | 1 | -5/+16 |
| | |||||
* | Speed up cache size calculation | Erik Johnston | 2017-01-17 | 1 | -1/+5 |
| | | | | | | | | | | | Instead of calculating the size of the cache repeatedly, which can take a long time now that it can use a callback, instead cache the size and update that on insertion and deletion. This requires changing the cache descriptors to have two caches, one for pending deferreds and the other for the actual values. There's no reason to evict from the pending deferreds as they won't take up any more memory. | ||||
* | fix imports | Richard van der Hoff | 2016-11-30 | 1 | -3/+0 |
| | |||||
* | Rip out more refresh_token code | Richard van der Hoff | 2016-11-30 | 1 | -55/+0 |
| | | | | | | | | We might as well treat all refresh_tokens as invalid. Just return a 403 from /tokenrefresh, so that we don't have a load of dead, untestable code hanging around. Still TODO: removing the table from the schema. | ||||
* | 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 unit tests | Erik Johnston | 2016-08-26 | 1 | -41/+0 |
| | |||||
* | Ensure invalidation list does not grow unboundedly | Erik Johnston | 2016-08-19 | 1 | -0/+48 |
| | |||||
* | Rename to on_invalidate | Erik Johnston | 2016-08-19 | 1 | -2/+2 |
| | |||||
* | Make cache_context an explicit option | Erik Johnston | 2016-08-19 | 1 | -2/+2 |
| | |||||
* | Remove lru option | Erik Johnston | 2016-08-19 | 1 | -1/+1 |
| | |||||
* | Add concept of cache contexts | Erik Johnston | 2016-08-19 | 1 | -0/+66 |
| | |||||
* | PEP8 | Richard van der Hoff | 2016-08-03 | 1 | -2/+0 |
| | |||||
* | Include device name in /keys/query response | Richard van der Hoff | 2016-08-03 | 1 | -0/+92 |
| | | | | Add an 'unsigned' section which includes the device display name. | ||||
* | Create separate methods for getting messages to push | Mark Haines | 2016-07-28 | 1 | -0/+41 |
| | | | | | | | | | | | for the email and http pushers rather than trying to make a single method that will work with their conflicting requirements. The http pusher needs to get the messages in ascending stream order, and doesn't want to miss a message. The email pusher needs to get the messages in descending timestamp order, and doesn't mind if it misses messages. | ||||
* | Delete refresh tokens when deleting devices | Richard van der Hoff | 2016-07-26 | 1 | -0/+34 |
| | |||||
* | Implement updating devices | Richard van der Hoff | 2016-07-26 | 1 | -0/+36 |
| | | | | You can update the displayname of devices now. | ||||
* | PEP8 | Richard van der Hoff | 2016-07-25 | 1 | -1/+1 |
| | |||||
* | Fix background_update tests | Richard van der Hoff | 2016-07-25 | 1 | -6/+16 |
| | | | | | | A bit of a cleanup for background_updates, and make sure that the real background updates have run before we start the unit tests, so that they don't interfere with the tests. | ||||
* | Fix PEP8 errors | Richard van der Hoff | 2016-07-20 | 1 | -2/+0 |
| | |||||
* | GET /devices endpoint | Richard van der Hoff | 2016-07-20 | 2 | -0/+133 |
| | | | | | | | implement a GET /devices endpoint which lists all of the user's devices. It also returns the last IP where we saw that device, so there is some dancing to fish that out of the user_ips table. | ||||
* | Merge pull request #922 from matrix-org/erikj/file_api2 | Erik Johnston | 2016-07-20 | 2 | -6/+7 |
|\ | | | | | Feature: Add filter to /messages. Add 'contains_url' to filter. | ||||
| * | Add filter param to /messages API | Erik Johnston | 2016-07-14 | 2 | -6/+7 |
| | | |||||
* | | Add device_id support to /login | Richard van der Hoff | 2016-07-18 | 1 | -7/+14 |
|/ | | | | | | | | | | | | | Add a 'devices' table to the storage, as well as a 'device_id' column to refresh_tokens. Allow the client to pass a device_id, and initial_device_display_name, to /login. If login is successful, then register the device in the devices table if it wasn't known already. If no device_id was supplied, make one up. Associate the device_id with the access token and refresh token, so that we can get at it again later. Ensure that the device_id is copied from the refresh token to the access_token when the token is refreshed. | ||||
* | 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 |
| | |||||
* | get_room_members is unused now | Mark Haines | 2016-05-16 | 1 | -18/+0 |
| | |||||
* | Remove some unused functions (#711) | Mark Haines | 2016-04-08 | 4 | -266/+4 |
| | | | | | | | | * Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want | ||||
* | Don't require config to create database | Erik Johnston | 2016-04-06 | 1 | -1/+1 |
| | |||||
* | Remove dead code left over from presence changes | Mark Haines | 2016-03-17 | 1 | -10/+0 |
| | |||||
* | Merge pull request #571 from matrix-org/daniel/asids | Daniel Wagner-Hall | 2016-03-03 | 1 | -1/+2 |
|\ | | | | | Mark AS users with their AS's ID | ||||
| * | Mark AS users with their AS's ID | Daniel Wagner-Hall | 2016-02-11 | 1 | -1/+2 |
| | | |||||
* | | Move cache size fiddling to descriptors only. Fix tests | Erik Johnston | 2016-03-01 | 1 | -5/+7 |
| | | |||||
* | | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 10 | -85/+77 |
| | | |||||
* | | Remove old tests. | Erik Johnston | 2016-02-18 | 1 | -26/+0 |
|/ | |||||
* | Simplify get_rooms | Erik Johnston | 2016-02-03 | 1 | -26/+0 |
| | |||||
* | Fix tests | Erik Johnston | 2016-01-27 | 2 | -5/+4 |
| | |||||
* | 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. | ||||
* | Merge pull request #456 from matrix-org/store_event_actions | David Baker | 2016-01-08 | 1 | -1/+1 |
|\ | | | | | Send unread notification counts | ||||
| * | fix tests | David Baker | 2016-01-06 | 1 | -1/+1 |
| | | |||||
* | | copyrights | Matthew Hodgson | 2016-01-07 | 13 | -13/+13 |
|/ | |||||
* | Fix mock import in tests. | Oleg Girko | 2015-12-06 | 1 | -1/+1 |
| | | | | | | | | For some reason, one test imports Mock class from mock.mock rather than from mock. This change fixes this error. Signed-off-by: Oleg Girko <ol@infoserver.lv> | ||||
* | Merge pull request #359 from matrix-org/markjh/incremental_indexing | Erik Johnston | 2015-11-11 | 1 | -0/+76 |
|\ | | | | | Incremental background updates for db indexes | ||||
| * | Test for background updates | Mark Haines | 2015-11-10 | 1 | -0/+76 |
| | | |||||
* | | Return world_readable and guest_can_join in /publicRooms | Daniel Wagner-Hall | 2015-11-10 | 1 | -0/+2 |
|/ | |||||
* | Remove more unused parameters | Daniel Wagner-Hall | 2015-11-02 | 2 | -8/+0 |
| | |||||
* | synapse/storage/_base.py:_simple_selectupdate_one was unused | Mark Haines | 2015-09-23 | 1 | -20/+0 |
| | |||||
* | Implement configurable stats reporting | Daniel Wagner-Hall | 2015-09-22 | 4 | -54/+213 |
| | | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set. | ||||
* | Stop looking up "admin", which we never read | Daniel Wagner-Hall | 2015-08-25 | 1 | -4/+2 |
| | |||||
* | Remove completely unused concepts from codebase | Daniel Wagner-Hall | 2015-08-25 | 1 | -2/+0 |
| | | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly. | ||||
* | /tokenrefresh POST endpoint | Daniel Wagner-Hall | 2015-08-20 | 1 | -0/+55 |
| | | | | | | | | This allows refresh tokens to be exchanged for (access_token, refresh_token). It also starts issuing them on login, though no clients currently interpret them. | ||||
* | s/by_token/by_access_token/g | Daniel Wagner-Hall | 2015-08-20 | 1 | -2/+2 |
| | | | | We're about to have two kinds of token, access and refresh | ||||
* | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 1 | -1/+1 |
| | |||||
* | Change Cache to not use *args in its interface | Erik Johnston | 2015-08-07 | 1 | -6/+6 |
| | |||||
* | Make @cached cache deferreds rather than the deferreds' values | Erik Johnston | 2015-08-06 | 1 | -4/+7 |
| | |||||
* | Caches should be bound to instances. | Erik Johnston | 2015-06-03 | 2 | -36/+50 |
| | | | | | Before, caches were global and so different instances of the stores would share caches. This caused problems in the unit tests. | ||||
* | Fix daedlock | Erik Johnston | 2015-05-15 | 1 | -1/+2 |
| | |||||
* | Add support for using executemany | Erik Johnston | 2015-05-05 | 1 | -2/+2 |
| | |||||
* | Fix tests after commit 9a0579 | Erik Johnston | 2015-04-08 | 1 | -0/+6 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-04-07 | 2 | -54/+421 |
|\ | |||||
| * | 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 |
| | | |||||
| * | Merge branch 'develop' into application-services-txn-reliability | Kegan Dougal | 2015-03-26 | 3 | -3/+75 |
| |\ | | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py | ||||
| | * | Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict() | Paul "LeoNerd" Evans | 2015-03-25 | 1 | -0/+22 |
| | | | |||||
| | * | Unit-test that Cache() key eviction is ordered | Paul "LeoNerd" Evans | 2015-03-25 | 1 | -0/+18 |
| | | | |||||
| | * | Pull out the cache logic from the @cached wrapper into its own class we can ↵ | Paul "LeoNerd" Evans | 2015-03-20 | 1 | -1/+33 |
| | | | | | | | | | | | | reuse | ||||
| * | | 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 | 4 | -37/+45 |
| |/ |/| | |||||
* | | Tidy up _simple_... methods | Erik Johnston | 2015-03-20 | 2 | -2/+2 |
|/ | |||||
* | 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 |
| | |||||
* | Use cache.pop() instead of a separate membership test + del [] | Paul "LeoNerd" Evans | 2015-02-23 | 1 | -0/+7 |
| | |||||
* | Allow @cached-wrapped functions to have a prefill method for setting entries | Paul "LeoNerd" Evans | 2015-02-23 | 1 | -0/+14 |
| | |||||
* | Take named arguments to @cached() decorator, add a 'max_entries' limit | Paul "LeoNerd" Evans | 2015-02-19 | 1 | -0/+89 |
| | |||||
* | Fix tests which broke when event caching was introduced. | Kegan Dougal | 2015-02-11 | 1 | -1/+4 |
| | |||||
* | Merge branch 'develop' into application-services | Kegan Dougal | 2015-02-11 | 9 | -86/+21 |
|\ | |||||
| * | Add a cache for get_event | Mark Haines | 2015-02-11 | 1 | -2/+3 |
| | | |||||
| * | Factor out some of the common homeserver setup code into a | Mark Haines | 2015-02-11 | 9 | -84/+18 |
| | | | | | | | | setup_test_homeserver function in utils. | ||||
* | | 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 |
|/ | |||||
* | Extract the id token of the token when authing users, include the token and ↵ | Mark Haines | 2015-01-28 | 1 | -2/+8 |
| | | | | device_id in the internal meta data for the event along with the transaction id when sending events | ||||
* | Replace hs.parse_roomalias with RoomAlias.from_string | Mark Haines | 2015-01-23 | 2 | -4/+4 |
| | |||||
* | Replace hs.parse_roomid with RoomID.from_string | Mark Haines | 2015-01-23 | 5 | -11/+12 |
| | |||||
* | Replace hs.parse_userid with UserID.from_string | Mark Haines | 2015-01-23 | 6 | -11/+17 |
| | |||||
* | Fix manifest. Ignore contrib and docs directories when checking manifest ↵ | Mark Haines | 2015-01-22 | 1 | -5/+0 |
| | | | | against source control. | ||||
* | Remove unused functions | Mark Haines | 2015-01-13 | 1 | -11/+0 |
| | |||||
* | Kill off synapse.api.events.* | Erik Johnston | 2014-12-16 | 4 | -27/+20 |
| | |||||
* | Fix prev_content | Erik Johnston | 2014-12-11 | 1 | -3/+2 |
| | |||||
* | Fix redaction tests | Erik Johnston | 2014-12-11 | 1 | -6/+8 |
| | |||||
* | Fix redactions. Fix 'age' key | Erik Johnston | 2014-12-11 | 1 | -3/+3 |
| | |||||
* | Fix some tests | Erik Johnston | 2014-12-10 | 3 | -120/+110 |
| | |||||
* | SYN-163: Add an order by rowid to selects. | Erik Johnston | 2014-11-24 | 1 | -4/+8 |
| | | | | | | | This should fix the bug where the edges of the graph get returned in a different order than they were inserted in, and so no get_event no longer returned the exact same JSON as was inserted. This meant that signature checks failed. | ||||
* | Fix SQLBaseStoreTestCase | Erik Johnston | 2014-11-10 | 1 | -1/+1 |
| | |||||
* | Fix stream test. | Erik Johnston | 2014-11-10 | 1 | -5/+12 |
| | |||||
* | Fix room_member storage test | Erik Johnston | 2014-11-10 | 1 | -0/+2 |
| | |||||
* | Fix redaction storage test | Erik Johnston | 2014-11-10 | 1 | -0/+4 |
| | |||||
* | Fix a couple more storage tests | Erik Johnston | 2014-11-05 | 2 | -16/+32 |
| | |||||
* | Remove stale tests | Erik Johnston | 2014-11-05 | 1 | -2/+2 |
| | |||||
* | Fix redaction storage test | Erik Johnston | 2014-11-05 | 1 | -0/+12 |
| | |||||
* | SYN-2: Allow server admins to delete room aliases | Erik Johnston | 2014-09-30 | 1 | -4/+21 |
| | |||||
* | Unbreak tests after changing storage API | Erik Johnston | 2014-09-29 | 1 | -2/+2 |
| | |||||
* | Rename redaction test case to something helpful | Erik Johnston | 2014-09-25 | 1 | -1/+1 |
| | |||||
* | More tests. | Erik Johnston | 2014-09-25 | 1 | -1/+82 |
| | |||||
* | Add test for redactions | Erik Johnston | 2014-09-25 | 1 | -0/+181 |
| | |||||
* | Test that prev_content get's added if there is a prev_state key (in the ↵ | Erik Johnston | 2014-09-19 | 1 | -17/+70 |
| | | | | event stream). | ||||
* | SYN-47: Fix bug where we still returned events for rooms we had left. | Erik Johnston | 2014-09-19 | 1 | -0/+173 |
| | | | | SYN-47 #resolve | ||||
* | Remark on remaining storage modules that still need unit tests | Paul "LeoNerd" Evans | 2014-09-17 | 1 | -0/+5 |
| | |||||
* | Neaten more of the storage layer tests with assertObjectHasAttributes; more ↵ | Paul "LeoNerd" Evans | 2014-09-17 | 3 | -20/+22 |
| | | | | standardisation on test layout | ||||
* | Unit tests for (some) room events via the RoomStore | Paul "LeoNerd" Evans | 2014-09-17 | 1 | -0/+85 |
| | |||||
* | Use new assertObjectHasAttributes() in tests/storage/test_room.py | Paul "LeoNerd" Evans | 2014-09-17 | 1 | -3/+6 |
| | |||||
* | More RoomStore tests | Paul "LeoNerd" Evans | 2014-09-17 | 1 | -4/+40 |
| | |||||
* | Initial pass at a RoomStore test | Paul "LeoNerd" Evans | 2014-09-15 | 1 | -0/+53 |
| | |||||
* | Also unittest RoomMemberStore's joined_hosts_for_room() | Paul "LeoNerd" Evans | 2014-09-15 | 1 | -0/+48 |
| | |||||
* | Use new 'tests.unittest' in new storage level tests | Paul "LeoNerd" Evans | 2014-09-15 | 5 | -5/+5 |
| | |||||
* | Merge remote-tracking branch 'origin/develop' into test-sqlite-memory | Paul "LeoNerd" Evans | 2014-09-15 | 1 | -1/+1 |
|\ | |||||
| * | Have all unit tests import from our own subclass of trial's unittest ↵ | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -1/+1 |
| | | | | | | | | TestCase; set up logging in ONE PLACE ONLY | ||||
* | | Initial hack at some RoomMemberStore unit tests | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -0/+109 |
| | | |||||
* | | Unit-test for RegistrationStore using SQLiteMemoryDbPool | Paul "LeoNerd" Evans | 2014-09-11 | 1 | -0/+69 |
| | | |||||
* | | Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer ↵ | Paul "LeoNerd" Evans | 2014-09-11 | 3 | -9/+12 |
| | | | | | | | | constructor, as DataStore's constructor will want it ready | ||||
* | | Added unit tests of DirectoryStore | Paul "LeoNerd" Evans | 2014-09-11 | 1 | -0/+66 |
| | | |||||
* | | Added unit tests for PresenceDataStore too | Paul "LeoNerd" Evans | 2014-09-10 | 2 | -2/+166 |
| | | |||||
* | | Remember to kill now-dead import in test_profile.py | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -1/+0 |
| | | |||||
* | | Move SQLiteMemoryDbPool implementation into tests.utils | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -27/+1 |
| | | |||||
* | | It's considered polite to actually wait for DB prepare before running tests | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -1/+4 |
| | | |||||
* | | Also test avatar_url profile field | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -0/+14 |
| | | |||||
* | | Tiny trivial PoC unit-test using SQLite in :memory: mode | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -0/+78 |
|/ | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | add in copyrights to everything, not just the synapse subdir, and add a ↵ | Matthew Hodgson | 2014-08-13 | 1 | -0/+14 |
| | | | | copyrighter.pl whilst we're at it | ||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 2 | -0/+191 |