summary refs log tree commit diff
path: root/synapse/storage (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2016-02-036-36/+42
|\ | | | | | | erikj/public_room_fix
| * Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-026-9/+12
| |
| * s/get_room_changes_for_user/get_membership_changes_for_user/Erik Johnston2016-02-021-2/+2
| |
| * Fetch events in a separate transaction.Erik Johnston2016-02-021-26/+29
| | | | | | | | | | | | | | | | | | This has a couple of benefits: - It reduces the time of transactions, allowing other database requests to run. - Fetching events is given a dedicated database thread, and so can't starve other database requests.
* | Unused importErik Johnston2016-02-031-1/+1
| |
* | Change the way we do public room list fetchingErik Johnston2016-02-022-1/+17
|/
* Order things correctlyErik Johnston2016-02-011-0/+4
|
* Switch over /events to use per room cachesErik Johnston2016-02-011-2/+2
|
* Merge pull request #543 from matrix-org/erikj/syncErik Johnston2016-02-013-0/+15
|\ | | | | Cache get_room_changes_for_user
| * Cache get_room_changes_for_userErik Johnston2016-01-293-0/+15
| |
* | Only use room_ids if in get_room_events_stream if is_guestErik Johnston2016-02-011-5/+0
|/
* Invalidate _account_data_stream_cache correctlyErik Johnston2016-01-291-0/+4
|
* Comment. Remove superfluous order byErik Johnston2016-01-291-1/+3
|
* Don't prefill account dataErik Johnston2016-01-291-8/+1
|
* Actually use cacheErik Johnston2016-01-291-7/+13
|
* Max is not a functionErik Johnston2016-01-291-1/+1
|
* Convert param styleErik Johnston2016-01-291-0/+3
|
* Prefill stream change cachesErik Johnston2016-01-293-18/+48
|
* Bump AccountDataAndTagsChangeCache sizeErik Johnston2016-01-291-1/+1
|
* Merge pull request #536 from matrix-org/erikj/syncErik Johnston2016-01-296-74/+218
|\ | | | | Make /sync "better".
| * Amalgamate tags and account data stream cachesErik Johnston2016-01-282-12/+9
| |
| * Don't use defer.returnValueErik Johnston2016-01-281-1/+1
| |
| * Add events indexErik Johnston2016-01-281-0/+16
| |
| * Change name and doc has_entity_changedErik Johnston2016-01-283-3/+3
| |
| * Cache tags and account dataErik Johnston2016-01-285-10/+42
| |
| * Ensure keys to RoomStreamChangeCache are intsErik Johnston2016-01-281-5/+6
| |
| * Invalidate caches properly. Remove unused argErik Johnston2016-01-283-8/+13
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/syncErik Johnston2016-01-281-18/+9
| |\
| * | Allow paginating backwards from stream tokenErik Johnston2016-01-281-2/+14
| | |
| * | Return correct type of tokenErik Johnston2016-01-281-3/+6
| | |
| * | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/syncErik Johnston2016-01-281-1/+1
| |\ \
| * | | PEP8Erik Johnston2016-01-273-6/+9
| | | |
| * | | Use the same path for incremental with gap or without gapErik Johnston2016-01-272-4/+3
| | | |
| * | | Add cache to room streamErik Johnston2016-01-273-62/+138
| | | |
* | | | Cache filtersErik Johnston2016-01-281-1/+2
| |_|/ |/| |
* | | Merge pull request #534 from matrix-org/erikj/setupErik Johnston2016-01-287-89/+74
|\ \ \ | |_|/ |/| | Add a Homeserver.setup method
| * | Clean up a bit. Add commentErik Johnston2016-01-281-18/+9
| |/
| * Merge branch 'develop' of github.com:matrix-org/synapse into erikj/setupErik Johnston2016-01-271-1/+2
| |\
| * | Add a Homeserver.setup method.Erik Johnston2016-01-267-89/+83
| | | | | | | | | | | | | | | | | | This is for setting up dependencies that require work on startup. This is useful for the DataStore that wants to read a bunch from the database before initiliazing.
* | | Up get_rooms_for_user cache sizeErik Johnston2016-01-281-1/+1
| |/ |/|
* | Fix adding push rules relative to other rulesMark Haines2016-01-271-1/+2
|/
* Merge pull request #525 from matrix-org/erikj/select_manyErik Johnston2016-01-253-60/+110
|\ | | | | Implement a `_simple_select_many_batch`
| * Guard against empty iterablesErik Johnston2016-01-251-0/+6
| |
| * Correct docstringErik Johnston2016-01-251-1/+0
| |
| * Implement a _simple_select_many_batchErik Johnston2016-01-253-60/+105
| |
* | Merge pull request #527 from matrix-org/erikj/push_cacheErik Johnston2016-01-251-0/+1
|\ \ | | | | | | Push: Use storage apis that are cached
| * | Push: Use storage apis that are cachedErik Johnston2016-01-251-0/+1
| |/
* / Add index to event_push_actionsErik Johnston2016-01-251-0/+1
|/
* Overlay the push_rules_enabled map for users, otherwise they won't be able ↵David Baker2016-01-221-0/+29
| | | | to disable server default rules.
* Make LRU cache not default to treecache & add options to use itDavid Baker2016-01-221-1/+1
|
* Use new invalidate_many cache invalidation to invalidate the ↵David Baker2016-01-221-4/+15
| | | | event_push_actions cache appropriately.
* Cache get_unread_event_push_actions_by_room_for_userErik Johnston2016-01-211-1/+2
|
* peppateDavid Baker2016-01-201-3/+2
|
* Add index by user id on receipts_linearizedDavid Baker2016-01-201-0/+18
|
* Add storage function to get all receipts for a user. Also add some cache ↵David Baker2016-01-201-21/+34
| | | | invalidation to the receipts storage because there wasn't any, and remove a method that was unused.
* Add regex cache. Only caculate push actions for users that have sent read ↵Erik Johnston2016-01-191-1/+13
| | | | receipts, and are on that server
* Return highlight_count in /syncErik Johnston2016-01-191-2/+3
|
* Remove dead codeErik Johnston2016-01-181-22/+1
|
* Make unit tests workErik Johnston2016-01-181-1/+1
|
* Make notifications go quickerErik Johnston2016-01-182-4/+45
|
* Allow filtering events for multiple users at onceErik Johnston2016-01-181-0/+13
|
* Require ID and as_token be unique for ASsDaniel Wagner-Hall2016-01-141-1/+25
| | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported.
* Merge pull request #494 from matrix-org/daniel/2Daniel Wagner-Hall2016-01-141-0/+1
|\ | | | | Don't start server if ASes are invalidly configured
| * Don't start server if ASes are invalidly configuredDaniel Wagner-Hall2016-01-131-0/+1
| |
* | Merge pull request #493 from matrix-org/daniel/1Daniel Wagner-Hall2016-01-141-59/+0
|\ \ | | | | | | Delete unused code
| * | Delete unused codeDaniel Wagner-Hall2016-01-131-59/+0
| |/
* / Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵Mark Haines2016-01-132-38/+38
|/ | | | of the code
* Merge remote-tracking branch 'origin/erikj/bulk_get_push_rules' into ↵Mark Haines2016-01-131-18/+8
|\ | | | | | | | | | | | | markjh/table_name Conflicts: synapse/storage/push_rule.py
| * bulk_get_push_rules should handle empty listsErik Johnston2016-01-131-21/+13
| |
* | Delete the table objects from TransactionStoreMark Haines2016-01-131-58/+10
| |
* | Remove the RoomsTable objectMark Haines2016-01-131-13/+3
| |
* | Remove the PushersTable and EventPushActionsTable objectsMark Haines2016-01-122-14/+6
| |
* | Remove the PushRuleTable and PushRuleEnableTable objectsMark Haines2016-01-121-50/+33
|/
* Postgres doesn't like booleansDavid Baker2016-01-111-2/+2
|
* Remove rogue 'admin'David Baker2016-01-111-1/+1
|
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-086-11/+230
|\ | | | | Send unread notification counts
| * This comma is actually importantDavid Baker2016-01-071-1/+1
| |
| * Merge remote-tracking branch 'origin/develop' into store_event_actionsDavid Baker2016-01-061-1/+10
| |\
| * | Adding is_guest here won't work because it just constructs a dict of uid -> ↵David Baker2016-01-061-1/+1
| | | | | | | | | | | | password hash
| * | Delete notifications for redacted eventsDavid Baker2016-01-061-0/+12
| | |
| * | Add schema change file for is_guest flagDavid Baker2016-01-061-0/+22
| | |
| * | Add is_guest flag to users db to track whether a user is a guest user or ↵David Baker2016-01-063-13/+31
| | | | | | | | | | | | not. Use this so we can run _filter_events_for_client when calculating event_push_actions.
| * | Merge remote-tracking branch 'origin/develop' into store_event_actionsDavid Baker2016-01-053-9/+39
| |\ \
| * | | = not == in sqlDavid Baker2016-01-041-1/+1
| | | |
| * | | Rename event-actions to event_push_actions as per PR requestDavid Baker2016-01-043-14/+14
| | | |
| * | | Address minor PR issuesDavid Baker2016-01-043-16/+4
| | | |
| * | | Insert push actions in a single db query rather than one per user/profile_tagDavid Baker2015-12-221-13/+18
| | | |
| * | | Add bulk push rule evaluator which actually still evaluates rules one by ↵David Baker2015-12-221-0/+41
| | | | | | | | | | | | | | | | one, but does far fewer db queries to fetch the rules
| * | | Merge remote-tracking branch 'origin/develop' into store_event_actionsDavid Baker2015-12-213-14/+81
| |\ \ \
| * | | | pep8David Baker2015-12-211-6/+6
| | | | |
| * | | | Make unread notification count sending work: put the correct count in ↵David Baker2015-12-181-9/+12
| | | | | | | | | | | | | | | | | | | | incremental syncs too, where necessary, and fix silly bugs like only select the event actions for that user...
| * | | | still very WIP, but now sends unread_notifications_count in the room object ↵David Baker2015-12-162-4/+54
| | | | | | | | | | | | | | | | | | | | on sync (only actually corrrect in a full sync: hardcoded to 0 in incremental syncs).
| * | | | Save event actions to the dbDavid Baker2015-12-103-0/+68
| | | | |
| * | | | Very first cut of calculating actions for events as they come in. Doesn't ↵David Baker2015-12-101-0/+12
| | | | | | | | | | | | | | | | | | | | store them yet. Not very efficient.
* | | | | copyrightsMatthew Hodgson2016-01-0785-85/+85
| |_|_|/ |/| | |
* | | | Log when we skip daily messagesDaniel Wagner-Hall2016-01-061-1/+10
| |_|/ |/| |
* | | Allow guests to upgrade their accountsDaniel Wagner-Hall2016-01-053-9/+39
| |/ |/|
* | Fix 500 error when back-paginating search resultsRichard van der Hoff2015-12-171-2/+4
| | | | | | | | | | We were mistakenly adding pagination clauses to the count query, which then failed because the count query doesn't join to the events table.
* | Merge branch 'release-v0.12.0' into developMark Haines2015-12-161-1/+1
|\ \
| * | Allow users to change which account a 3pid is bound toMark Haines2015-12-151-1/+1
| | |
* | | Merge branch 'release-v0.12.0' into developMark Haines2015-12-141-0/+5
|\| |
| * | Skip events that where the body, name or topic isn't a string when back ↵Mark Haines2015-12-141-0/+5
| | | | | | | | | | | | populating the FTS index
* | | Fix typoDaniel Wagner-Hall2015-12-141-1/+1
| | |
* | | Fix typo in sql for full text search on sqlite3Mark Haines2015-12-141-1/+1
| | |
* | | Merge branch 'release-v0.12.0' into developMark Haines2015-12-121-4/+7
|\| |
| * | Add caches for whether a room has been forgotten by a userMark Haines2015-12-101-4/+7
| |/
* | Include approximate count of search resultsErik Johnston2015-12-111-2/+54
| |
* | Use more efficient query formErik Johnston2015-12-111-8/+13
|/
* Track the time spent in the database per request.Mark Haines2015-12-072-3/+8
| | | | and track the number of transactions that request started.
* Bump schema version.Mark Haines2015-12-045-24/+37
| | | | As we released version 26 in v0.11.1
* Merge pull request #414 from matrix-org/erikj/if_not_existsErik Johnston2015-12-031-1/+1
|\ | | | | Older versions of SQLite don't like IF NOT EXISTS in virtual tables
| * Older versions of SQLite don't like IF NOT EXISTS in virtual tablesErik Johnston2015-12-021-1/+1
| |
* | Just replace the table definition with the one from full_schema 16David Baker2015-12-021-11/+10
| |
* | Fix schema delta 15 on postgres in the very unlikley event that anyone ↵David Baker2015-12-021-1/+1
| | | | | | | | upgrades to 15...
* | Merge pull request #412 from matrix-org/erikj/searchErik Johnston2015-12-021-11/+36
|\ \ | |/ |/| Search: Add prefix matching support
| * Throw if unrecognized DB typeErik Johnston2015-12-021-1/+4
| |
| * Fix so highlight matching works againErik Johnston2015-12-021-8/+13
| |
| * Remove deuplication. Add comment about regex.Erik Johnston2015-12-021-21/+11
| |
| * Search: Add prefix matching supportErik Johnston2015-12-021-5/+32
| |
* | Add API for setting account_data globaly or on a per room basisMark Haines2015-12-014-2/+238
|/
* Allow paginating search ordered by recentsErik Johnston2015-11-303-16/+159
|
* Return words to highlight in search resultsErik Johnston2015-11-271-19/+104
|
* Fix SQL for postgres againDaniel Wagner-Hall2015-11-231-1/+1
|
* Fix SQL for postgresDaniel Wagner-Hall2015-11-231-1/+1
|
* Remove size specifier for database columnDaniel Wagner-Hall2015-11-231-1/+3
| | | | | | Postgres doesn't support them like this. We don't have a bool type in common between postgres and sqlite.
* Merge branch 'daniel/forgetrooms' of github.com:matrix-org/synapse into ↵Daniel Wagner-Hall2015-11-192-9/+26
|\ | | | | | | daniel/forgetrooms
| * Merge branch 'develop' into daniel/forgetroomsPaul "LeoNerd" Evans2015-11-192-9/+26
| |\
| | * Rename the database tableMark Haines2015-11-181-0/+17
| | |
| | * s/private_user_data/account_data/Mark Haines2015-11-182-10/+10
| | |
* | | Ignore forgotten rooms in v2 syncDaniel Wagner-Hall2015-11-191-1/+1
|/ /
* | Simplify codeDaniel Wagner-Hall2015-11-191-7/+5
| |
* | Apply forgetting properly to historical eventsDaniel Wagner-Hall2015-11-181-2/+32
| |
* | Allow users to forget roomsDaniel Wagner-Hall2015-11-173-1/+61
|/
* Implementation of state rollback in /syncRichard van der Hoff2015-11-131-2/+4
| | | | | | | Implementation of SPEC-254: roll back the state dictionary to how it looked at the start of the timeline. Merged PR https://github.com/matrix-org/synapse/pull/373
* Fix a few race conditions in the state calculationRichard van der Hoff2015-11-131-0/+14
| | | | | | | | | | | | | | | | | | | Be a bit more careful about how we calculate the state to be returned by /sync. In a few places, it was possible for /sync to return slightly later state than that represented by the next_batch token and the timeline. In particular, the following cases were susceptible: * On a full state sync, for an active room * During a per-room incremental sync with a timeline gap * When the user has just joined a room. (Refactor check_joined_room to make it less magical) Also, use store.get_state_for_events() (and thus the existing stategroups) to calculate the state corresponding to a particular sync position, rather than state_handler.compute_event_context(), which recalculates from first principles (and tends to miss some state). Merged from PR https://github.com/matrix-org/synapse/pull/372
* Trailing whitespaceErik Johnston2015-11-121-1/+1
|
* Expand commentErik Johnston2015-11-121-0/+6
|
* CommentErik Johnston2015-11-121-0/+2
|
* Fix SQL syntaxErik Johnston2015-11-121-2/+3
|
* Use a (hopefully) more efficient SQL query for doing recency based room searchErik Johnston2015-11-121-4/+6
|
* Fix bug where assumed dict was namedtupleErik Johnston2015-11-121-1/+1
|
* Merge pull request #359 from matrix-org/markjh/incremental_indexingErik Johnston2015-11-114-77/+404
|\ | | | | Incremental background updates for db indexes
| * Fix param style to work on both sqlite and postgresMark Haines2015-11-111-2/+6
| |
| * Fix the background updateMark Haines2015-11-113-17/+19
| |
| * Use a background task to update databases to use the full text searchMark Haines2015-11-102-80/+28
| |
| * Run the background updates when starting synapse.Mark Haines2015-11-102-10/+58
| |
| * Add background update task for reindexing event searchMark Haines2015-11-091-2/+96
| |
| * Add storage module for tracking background updates.Mark Haines2015-11-092-0/+231
| | | | | | | | | | | | | | The progress for each background update is stored as a JSON blob in the database. Each background update is broken up into separate batches. The batch size is automatically tuned to try avoid blocking single threaded databases for too long.
* | Return world_readable and guest_can_join in /publicRoomsDaniel Wagner-Hall2015-11-103-29/+69
| |
* | Merge branch 'develop' into markjh/SYN-513Mark Haines2015-11-091-1/+1
|\ \ | | | | | | | | | | | | Conflicts: synapse/storage/tags.py
| * | fix comedy important missing comma breaking recent-ordered FTS on sqliteMatthew Hodgson2015-11-081-1/+1
| | |
| * | add a key existence check to tags_by_room to avoid /events 500'ing when ↵Matthew Hodgson2015-11-061-1/+2
| |/ | | | | | | testing against vector
* / SYN-513: Include updates for rooms that have had all their tags deletedMark Haines2015-11-091-1/+1
|/
* Remove accidentally added ID columnDaniel Wagner-Hall2015-11-061-1/+0
|
* Error handlingErik Johnston2015-11-051-1/+8
|
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/searchErik Johnston2015-11-055-16/+87
|\
| * Open up /events to anonymous users for room events onlyDaniel Wagner-Hall2015-11-054-8/+79
| | | | | | | | Squash-merge of PR #345 from daniel/anonymousevents
| * Merge branch 'develop' of github.com:matrix-org/synapse into developDaniel Wagner-Hall2015-11-041-2/+1
| |\
| | * Merge branch 'develop' into daniel/removesomeliesMark Haines2015-11-044-32/+272
| | |\ | | | | | | | | | | | | | | | | Conflicts: synapse/notifier.py
| | * | Remove more unused parametersDaniel Wagner-Hall2015-11-021-2/+1
| | | |
| * | | Allow guests to register and call /events?room_id=Daniel Wagner-Hall2015-11-041-7/+8
| | |/ | |/| | | | | | | | | | | | | | | | This follows the same flows-based flow as regular registration, but as the only implemented flow has no requirements, it auto-succeeds. In the future, other flows (e.g. captcha) may be required, so clients should treat this like the regular registration flow choices.
* | | Implement basic pagination for search resultsErik Johnston2015-11-051-36/+19
| | |
* | | Implement order and group byErik Johnston2015-11-041-0/+96
|/ /
* | Merge pull request #343 from matrix-org/erikj/fix_retriesErik Johnston2015-11-031-32/+16
|\ \ | | | | | | Fix broken cache for getting retry times.
| * | Fix broken cache for getting retry times. This meant we retried remote ↵Erik Johnston2015-11-031-32/+16
| |/ | | | | | | destinations way more frequently than we should
* | Merge pull request #335 from matrix-org/markjh/room_tagsMark Haines2015-11-033-0/+256
|\ \ | |/ |/| Add APIs for adding and removing tags from rooms
| * Spell "deferred" more correctlyMark Haines2015-11-031-1/+1
| |
| * Store room tag content and return the content in the m.tag eventMark Haines2015-11-022-16/+29
| |
| * Merge branch 'develop' into markjh/room_tagsMark Haines2015-11-021-1/+136
| |\
| * | Inform the client of new room tags using v1 /eventsMark Haines2015-10-291-1/+15
| | |
| * | Fix pyflakes errorsMark Haines2015-10-281-3/+3
| | |
| * | Add APIs for adding and removing tags from roomsMark Haines2015-10-283-0/+229
| | |
* | | Add missing columnDaniel Wagner-Hall2015-10-301-1/+1
| |/ |/|
* | DocsErik Johnston2015-10-281-0/+26
| |
* | Add room context apiErik Johnston2015-10-281-1/+110
|/
* Pull out sender when computing search resultsErik Johnston2015-10-231-14/+17
|
* Implement rank function for SQLite FTSErik Johnston2015-10-233-2/+30
|
* Actually filter resultsErik Johnston2015-10-221-3/+5
|
* LESS THANErik Johnston2015-10-221-1/+2
|
* Use namedtuple as return valueErik Johnston2015-10-221-3/+15
|
* Limit max number of SQL varsErik Johnston2015-10-221-4/+6
|
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/searchErik Johnston2015-10-221-0/+13
|\
| * Merge pull request #316 from matrix-org/markjh/v2_sync_archivedMark Haines2015-10-211-0/+13
| |\ | | | | | | Add rooms that the user has left under archived in v2 sync.
| | * Include banned rooms in the archived section of v2 syncMark Haines2015-10-211-2/+2
| | |
| | * Add rooms that the user has left under archived in v2 sync.Mark Haines2015-10-191-0/+13
| | |
* | | PEP8Erik Johnston2015-10-221-1/+2
| | |
* | | Move FTS to delta 25Erik Johnston2015-10-222-3/+3
|/ /
* | Explicitly check for Sqlite3EngineErik Johnston2015-10-161-2/+5
| |
* | TypingErik Johnston2015-10-161-2/+2
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/searchErik Johnston2015-10-161-1/+1
|\|
| * Fix FilteringStore.get_user_filter to work with postgresMark Haines2015-10-161-1/+1
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/searchErik Johnston2015-10-161-2/+2
|\|
| * Encode the filter JSON as UTF-8 before storing in the database.Mark Haines2015-10-161-2/+2
| | | | | | | | Because we are using a binary column type to store the filter JSON.
* | Explicitly check for Sqlite3EngineErik Johnston2015-10-161-2/+5
| |
* | Add docstringErik Johnston2015-10-161-0/+11
| |
* | Comment on the LIMIT 500Erik Johnston2015-10-161-0/+2
| |
* | Split up run_upgradeErik Johnston2015-10-161-5/+11
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/searchErik Johnston2015-10-151-0/+14
|\|
| * Merge pull request #305 from matrix-org/markjh/v2_sync_apiMark Haines2015-10-141-0/+14
| |\ | | | | | | Update the v2 sync API to work as specified in the current spec.
| | * Merge branch 'develop' into markjh/v2_sync_apiMark Haines2015-10-144-377/+399
| | |\
| | * | Add a get_invites_for_user method to the storage to find out the rooms a ↵Mark Haines2015-10-131-0/+14
| | | | | | | | | | | | | | | | user is invited to
| * | | Remove unused room_id argErik Johnston2015-10-141-5/+5
| | |/ | |/|
* | | Fix to work with SQLiteErik Johnston2015-10-141-4/+11
| | |
* | | Add paranoia limitErik Johnston2015-10-131-1/+1
| | |
* | | Remove constraints in preperation of using filtersErik Johnston2015-10-131-20/+10
| | |
* | | Merge branch 'erikj/store_engine' into erikj/searchErik Johnston2015-10-134-3/+3
|\| |
| * | rename schema_prepare to prepare_databaseErik Johnston2015-10-133-2/+2
| | |
* | | Add SQLite supportErik Johnston2015-10-131-5/+12
| | |
* | | Merge branch 'erikj/store_engine' into erikj/searchErik Johnston2015-10-135-378/+400
|\| |
| * | Expose error more nicelyErik Johnston2015-10-134-5/+2
| | |
| * | Split out the schema preparation and update logic into its own moduleErik Johnston2015-10-134-377/+402
| |/
* | Add sqlite schemaErik Johnston2015-10-131-5/+64
| |
* | Filter events to only thsoe that the user is allowed to seeErik Johnston2015-10-121-7/+7
| |
* | Remove unused room_id parameterErik Johnston2015-10-121-6/+5
| |
* | Keep FTS indexes up to date. Only search through rooms currently joinedErik Johnston2015-10-124-2/+32
| |
* | Add basic full text search impl.Erik Johnston2015-10-094-1/+135
|/
* Merge pull request #288 from matrix-org/markjh/unused_definitionsMark Haines2015-09-287-419/+2
|\ | | | | Remove some of the unused definitions from synapse
| * synapse/storage/state.py: _make_group_id was unusedMark Haines2015-09-231-6/+0
| |
| * Remove unused functions from synapse/storage/signatures.pyMark Haines2015-09-231-112/+0
| |
| * synapse/storage/roommember.py:_get_members_query was unusedMark Haines2015-09-231-6/+0
| |
| * Remove unused functions from synapse/storage/events.pyMark Haines2015-09-231-11/+0
| |
| * Remove unused functions from synapse/storage/event_federation.pyMark Haines2015-09-231-71/+0
| |
| * synapse/storage/_base.py:_simple_max_id was unusedMark Haines2015-09-231-18/+0
| |
| * synapse/storage/_base.py:_simple_delete was unusedMark Haines2015-09-231-10/+0
| |
| * synapse/storage/_base.py:_simple_selectupdate_one was unusedMark Haines2015-09-231-31/+0
| |
| * synapse/storage/event_federation.py:_get_auth_events is unusedMark Haines2015-09-221-21/+0
| |
| * synapse/storage/_base.py:_execute_and_decode was unusedMark Haines2015-09-221-3/+0
| |
| * synapse/storage/_base.py:Table was unusedMark Haines2015-09-222-130/+2
| |
* | Fix order of ON constraints in _get_rooms_for_user_where_membership_is_txnMark Haines2015-09-241-6/+6
|/
* Add some docstringsDaniel Wagner-Hall2015-09-222-0/+4
|
* Add docstringDaniel Wagner-Hall2015-09-221-0/+6
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-224-2/+110
| | | | | | | | | | 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.
* Merge pull request #276 from ↵Mark Haines2015-09-212-10/+38
|\ | | | | | | | | matrix-org/markjh/history_for_rooms_that_have_been_left SPEC-216: Allow users to view the history of rooms that they have left.
| * Allow users that have left a room to get the messages that happend in the ↵Mark Haines2015-09-091-1/+18
| | | | | | | | room before they left
| * Remove undocumented and unimplemented 'feedback' parameter from the ↵Mark Haines2015-09-091-8/+2
| | | | | | | | Client-Server API
| * Allow room initialSync for users that have left the room, returning a ↵Mark Haines2015-09-091-0/+15
| | | | | | | | snapshot of how the room was when they left it
| * Include the event_id and stream_ordering of membership events when looking ↵Mark Haines2015-09-081-2/+4
| | | | | | | | up which rooms a user is in
* | Merge pull request #281 from matrix-org/erikj/update_extremetiesErik Johnston2015-09-152-0/+11
|\ \ | | | | | | When updating a stored event from outlier to non-outlier, remember to update the extremeties
| * | "Comments"Erik Johnston2015-09-151-0/+6
| | |
| * | When updating a stored event from outlier to non-outlier, remember to update ↵Erik Johnston2015-09-152-0/+5
| | | | | | | | | | | | the extremeties
* | | Drop unused indexErik Johnston2015-09-141-0/+16
| |/ |/|
* | Merge branch 'release-v0.10.0' of github.com:matrix-org/synapse into developErik Johnston2015-09-011-1/+1
|\|
| * Lower size of 'stateGroupCache' now that we have data from matrix.org to ↵Erik Johnston2015-09-011-1/+1
| | | | | | | | support doing so
* | Merge branch 'release-v0.10.0' into developMark Haines2015-08-282-4/+17
|\| | | | | | | | | | | | | Conflicts: synapse/handlers/auth.py synapse/python_dependencies.py synapse/rest/client/v1/login.py
| * Don't insert events into 'event_*_extremeties' tables if they're outliersErik Johnston2015-08-231-2/+8
| |
| * Actually check if event_id isn't returned by _get_state_groupsErik Johnston2015-08-211-2/+9
| |
| * When logging in fetch user by user_id case insensitively, *unless* there are ↵Erik Johnston2015-08-211-2/+5
| | | | | | | | multiple case insensitive matches, in which case require the exact user_id
| * Don't allow people to register user ids which only differ by case to an ↵Erik Johnston2015-08-211-0/+11
| | | | | | | | existing one
* | Merge erikj/user_dedup to developDaniel Wagner-Hall2015-08-261-0/+14
| |
* | Merge pull request #251 from matrix-org/removeadminDaniel Wagner-Hall2015-08-251-3/+2
|\ \ | | | | | | Stop looking up "admin", which we never read