Commit Graph

1163 Commits (42aa1f3f331789c38d02186a11ff706de218faea)

Author SHA1 Message Date
David Baker b5d33a656f Postgres doesn't like booleans 9 years ago
David Baker fe56138142 Remove rogue 'admin' 9 years ago
David Baker daadcf36c0 This comma is actually important 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago
David Baker b6a585348a Adding is_guest here won't work because it just constructs a dict of uid -> password hash 9 years ago
Daniel Wagner-Hall 5880de186b Log when we skip daily messages 9 years ago
David Baker 992928304f Delete notifications for redacted events 9 years ago
David Baker ae1262a241 Add schema change file for is_guest flag 9 years ago
David Baker c79f221192 Add is_guest flag to users db to track whether a user is a guest user or not. Use this so we can run _filter_events_for_client when calculating event_push_actions. 9 years ago
Daniel Wagner-Hall cfd07aafff Allow guests to upgrade their accounts 9 years ago
David Baker 4eb7b950c8 = not == in sql 9 years ago
David Baker c914d67cda Rename event-actions to event_push_actions as per PR request 9 years ago
David Baker 3051c9d002 Address minor PR issues 9 years ago
David Baker 4c8f6a7e42 Insert push actions in a single db query rather than one per user/profile_tag 9 years ago
David Baker 65c451cb38 Add bulk push rule evaluator which actually still evaluates rules one by one, but does far fewer db queries to fetch the rules 9 years ago
David Baker 091c545c4f pep8 9 years ago
David Baker 413d0d6a24 Make unread notification count sending work: put the correct count in incremental syncs too, where necessary, and fix silly bugs like only select the event actions for that user... 9 years ago
Richard van der Hoff a64f9bbfe0 Fix 500 error when back-paginating search results 9 years ago
David Baker 42ad49f5b7 still very WIP, but now sends unread_notifications_count in the room object on sync (only actually corrrect in a full sync: hardcoded to 0 in incremental syncs). 9 years ago
Mark Haines dcfc70e8ed Allow users to change which account a 3pid is bound to 9 years ago
Mark Haines 98dfa7d24f Skip events that where the body, name or topic isn't a string when back populating the FTS index 9 years ago
Daniel Wagner-Hall 76e69cc8de Fix typo 9 years ago
Mark Haines bfc52a2342 Fix typo in sql for full text search on sqlite3 9 years ago
Erik Johnston d9a5c56930 Include approximate count of search results 9 years ago
Erik Johnston 51fb590c0e Use more efficient query form 9 years ago
David Baker aa667ee396 Save event actions to the db 9 years ago
Mark Haines 7d6b313312 Add caches for whether a room has been forgotten by a user 9 years ago
David Baker 21f135ba76 Very first cut of calculating actions for events as they come in. Doesn't store them yet. Not very efficient. 9 years ago
Mark Haines 6a5ff5f223 Track the time spent in the database per request. 9 years ago
Mark Haines d57c5cda71 Bump schema version. 9 years ago
David Baker e515b48929 Just replace the table definition with the one from full_schema 16 9 years ago
David Baker 8810eb8c39 Fix schema delta 15 on postgres in the very unlikley event that anyone upgrades to 15... 9 years ago
Erik Johnston 976cb5aaa8 Throw if unrecognized DB type 9 years ago
Erik Johnston b2def42bfd Older versions of SQLite don't like IF NOT EXISTS in virtual tables 9 years ago
Erik Johnston b9acef5301 Fix so highlight matching works again 9 years ago
Erik Johnston 7dd6e5efca Remove deuplication. Add comment about regex. 9 years ago
Erik Johnston 477da77b46 Search: Add prefix matching support 9 years ago
Mark Haines 95f30ecd1f Add API for setting account_data globaly or on a per room basis 9 years ago
Erik Johnston 4dcaa42b6d Allow paginating search ordered by recents 9 years ago
Erik Johnston 76936f43ae Return words to highlight in search results 9 years ago
Daniel Wagner-Hall df7cf6c0eb Fix SQL for postgres again 9 years ago
Daniel Wagner-Hall 3e573a5c6b Fix SQL for postgres 9 years ago
Daniel Wagner-Hall 7dfa455508 Remove size specifier for database column 9 years ago
Daniel Wagner-Hall df6824a008 Ignore forgotten rooms in v2 sync 9 years ago
Daniel Wagner-Hall 9da4c5340d Simplify code 9 years ago
Daniel Wagner-Hall bed7889703 Apply forgetting properly to historical events 9 years ago
Mark Haines d153f482dd Rename the database table 9 years ago
Mark Haines 1c960fbb80 s/private_user_data/account_data/ 9 years ago
Daniel Wagner-Hall ba26eb3d5d Allow users to forget rooms 9 years ago
Richard van der Hoff e4d622aaaf Implementation of state rollback in /sync 9 years ago