summary refs log tree commit diff
path: root/synapse/storage/relations.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support pagination tokens from /sync and /messages in the relations API. ↵Patrick Cloke2022-02-101-6/+9
| | | | (#11952)
* Use auto_attribs/native type hints for attrs classes. (#11692)Patrick Cloke2022-01-131-10/+10
|
* Name the type of token in "Invalid token" messages (#10815)David Robertson2021-09-141-2/+2
| | | | | | I had one of these error messages yesterday and assumed it was an invalid auth token (because that was an HTTP query parameter in the test) I was working on. In fact, it was an invalid next batch token for syncing.
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-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>`
* Add additional type hints to the storage module. (#8980)Patrick Cloke2020-12-301-21/+23
|
* Use slots in attrs classes where possible (#8296)Patrick Cloke2020-09-141-1/+1
| | | | | slots use less memory (and attribute access is faster) while slightly limiting the flexibility of the class attributes. This focuses on objects which are instantiated "often" and for short periods of time.
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-3/+3
|
* Move storage classes into a main "data store".Erik Johnston2019-10-211-359/+0
| | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* Replace returnValue with return (#5736)Amber Brown2019-07-231-3/+1
|
* Include the original event in /relations (#5626)Andrew Morgan2019-07-091-1/+1
| | | When asking for the relations of an event, include the original event in the response. This will mostly be used for efficiently showing edit history, but could be useful in other circumstances.
* Run Black. (#5482)Amber Brown2019-06-201-5/+1
|
* Merge pull request #5203 from matrix-org/erikj/aggregate_by_senderErik Johnston2019-05-211-1/+1
|\ | | | | Only count aggregations from distinct senders
| * Only count aggregations from distinct sendersErik Johnston2019-05-171-1/+1
| | | | | | | | As a user isn't allowed to send a single emoji more than once.
* | Block attempts to annotate the same event twiceErik Johnston2019-05-201-3/+45
| |
* | Rename relation types to match MSCErik Johnston2019-05-201-4/+4
| |
* | Correctly update aggregation counts after redactionErik Johnston2019-05-201-0/+17
|/
* Fixup bsaed on review commentsErik Johnston2019-05-171-15/+17
|
* Add basic editing supportErik Johnston2019-05-161-2/+58
|
* Move parsing of tokens out of storage layerErik Johnston2019-05-161-14/+2
|
* Indirect tuple conversionErik Johnston2019-05-161-0/+6
|
* Fix relations in worker modeErik Johnston2019-05-161-1/+3
|
* Add cache to relationsErik Johnston2019-05-161-0/+8
|
* Add aggregations APIErik Johnston2019-05-161-6/+219
|
* Actually check for None rather falseyErik Johnston2019-05-151-2/+2
|
* Add simple pagination APIErik Johnston2019-05-151-0/+80
|
* Add simple send_relation API and track in DBErik Johnston2019-05-151-0/+62