Commit Graph

416 Commits (3914576b2b6272a4be790c89d87649d257018dcf)

Author SHA1 Message Date
Patrick Cloke a8da046907
Invalidate the get_users_in_room{_with_profile} caches only when necessary. (#11878) 3 years ago
Olivier Wilkinson (reivilibre) 4dd9ea8f4f Revert "Revert accidental fast-forward merge from v1.49.0rc1" 3 years ago
Sean Quah 5305a5e881
Type hint the constructors of the data store classes (#11555) 3 years ago
Sean Quah 158d73ebdd Revert accidental fast-forward merge from v1.49.0rc1 3 years ago
Sean Quah ffd858aa68
Add type hints to `synapse/storage/databases/main/events_worker.py` (#11411) 3 years ago
Dan Callahan 52ed9655ed
Remove unnecessary SystemRandom from SQLBaseStore (#9987) 4 years ago
Erik Johnston d0aee697ac
Use get_current_users_in_room from store and not StateHandler (#9910) 4 years ago
Andrew Morgan fe604a022a
Remove various bits of compatibility code for Python <3.6 (#9879) 4 years ago
Richard van der Hoff 294c675033
Remove `synapse.types.Collection` (#9856) 4 years ago
Jonathan de Jong 4b965c862d
Remove redundant "coding: utf-8" lines (#9786) 4 years ago
Patrick Cloke b7748d3c00
Import HomeServer from the proper module. (#9665) 4 years ago
Patrick Cloke 637282bb50
Add additional type hints to the storage module. (#8980) 4 years ago
Richard van der Hoff 97647b33c2
Replace DeferredCache with LruCache where possible (#8563) 4 years ago
Patrick Cloke eebf52be06
Be stricter about JSON that is accepted by Synapse (#8106) 4 years ago
Patrick Cloke fbe930dad2
Convert the roommember database to async/await. (#8070) 4 years ago
Erik Johnston a7bdf98d01
Rename database classes to make some sense (#8033) 4 years ago
Patrick Cloke f460da6031
Consistently use `db_to_json` to convert from database values to JSON objects. (#7849) 4 years ago
Richard van der Hoff e6027562e2 remove `builtins.buffer` code from storage code 5 years ago
Erik Johnston d7983b63a6
Support any process writing to cache invalidation stream. (#7436) 5 years ago
Patrick Cloke 509e381afa
Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 5 years ago
Erik Johnston 5d7a6ad223
Allow streaming cache invalidate all to workers. (#6749) 5 years ago
Richard van der Hoff 85db7f73be
Add a background update to clear tombstoned rooms from the directory (#6648) 5 years ago
Erik Johnston 2284eb3a53
Add database config class (#6513) 5 years ago
Erik Johnston d537be1ebd Pass Database into the data store 5 years ago
Erik Johnston 9a4fb457cf Change DataStores to accept 'database' param. 5 years ago
Manuel Stahl 649b6bc088 Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925) 5 years ago
Erik Johnston 8863624f78 Comments 5 years ago
Erik Johnston 756d4942f5 Move DB pool and helper functions into dedicated Database class 5 years ago
Erik Johnston ee86abb2d6 Remove underscore from SQLBaseStore functions 5 years ago
Erik Johnston c2f525a525 Don't call SQLBaseStore methods from outside stores 5 years ago
Erik Johnston 9186c105a0 Revert "Move get_user_count_txn out of base store" 5 years ago
Erik Johnston 00f0d67566 Move get_user_count_txn out of base store 5 years ago
Erik Johnston 1056d6885a Move cache invalidation to main data store 5 years ago
Erik Johnston 6b2867096b Move event fetch vars to EventWorkStore 5 years ago
Erik Johnston ddd48b6851 Move account validity bg updates to registration store 5 years ago
Richard van der Hoff c01d543584
Make sure that we close cursors before returning from a query (#6408) 5 years ago
Andrew Morgan 3916e1b97a
Clean up newline quote marks around the codebase (#6362) 5 years ago
Andrew Morgan 745a48625d
Fix guest -> real account upgrade with account validity enabled (#6359) 5 years ago
Andrew Morgan 54fef094b3
Remove usage of deprecated logger.warn method from codebase (#6271) 5 years ago
Erik Johnston b54b1e759a Fix SQLite take 2 5 years ago
Erik Johnston 3bc687508f Remove add_in_list_sql_clause 5 years ago
Erik Johnston b4fbf71187 Add helper funcs to use postgres ANY 5 years ago
Erik Johnston 132279a46f Patch inlinecallbacks for log contexts 5 years ago
Richard van der Hoff 49ef8ec399
Fix a cache-invalidation bug for worker-based deployments (#5920) 5 years ago
Amber Brown 4806651744
Replace returnValue with return (#5736) 5 years ago
Erik Johnston bd2e1a2aa8 LoggingTransaction accepts None for callback lists. 5 years ago
Amber Brown 463b072b12
Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 5 years ago
Richard van der Hoff 1793de6c6d black 6 years ago
Amber Brown 32e7c9e7f2
Run Black. (#5482) 6 years ago
Richard van der Hoff f682af052d Simplify PerformanceCounters.update interface 6 years ago