Commit Graph

24 Commits

Author SHA1 Message Date
Damir Jelić
2b359c22d2 store: Split out the media cache loading logic from the load media method 2021-06-03 10:18:29 +02:00
Andrea Spacca
6cedf846bd store filename in upload info 2021-01-07 17:08:34 +01:00
Andrea Spacca
b6b4362ade fix test 2021-01-07 16:58:24 +01:00
Andrea Spacca
0bf49f7fdd remove keys from uploadinfo, save media and upload at upload time 2021-01-07 11:22:11 +01:00
Andrea Spacca
f0ea2ebd3d CR fixes 2021-01-06 18:08:03 +01:00
Andrea Spacca
f747c83af4 cache in upload 2020-12-23 12:36:29 +01:00
Andrea Spacca
453fd935d2 fix test 2020-12-23 00:47:23 +01:00
Andrea Spacca
aa5123bef3 fix test 2020-12-22 22:16:06 +01:00
Andrea Spacca
3a380cc91e fix test 2020-12-22 21:00:09 +01:00
Andrea Spacca
1168bcf7ff CR fixes 2020-12-22 17:12:21 +01:00
Damir Jelić
d25989cfd7 store: Add methods to store media info in the store. 2020-02-20 13:14:47 +01:00
Damir Jelić
1a8f28b90a tests: Skip test that require tantivy. 2019-07-12 15:38:04 +02:00
Damir Jelić
1311dbdef0 tests: Make the indexstore test async. 2019-06-19 12:01:11 +02:00
Damir Jelić
3a1b001244 index: Rewrite the search logic.
This patch moves all the indexing, event storing and searching into a
separate class.

The index and message store are now represented as a single class and
messages are indexed and stored atomically now which should minimize the
chance of store/index inconsistencies.

Messages are now loaded from the store as a single SQL query and the
context for the messages is as well loaded from the store instead of
fetched from the server.

The room state and start/end tokens for the context aren't currently
loaded.
2019-06-14 14:53:25 +02:00
Damir Jelić
b4e60b603a client: Store the history fetcher tasks to the db. 2019-06-12 15:39:08 +02:00
Damir Jelić
383f197e58 client: Store and load sync tokens. 2019-06-11 16:11:53 +02:00
Damir Jelić
a164924b28 tests: Fix the event searching tests. 2019-06-10 16:48:40 +02:00
Damir Jelić
725c043e87 pantalaimon: Initial search support.
This patch adds support for the Matrix search API endpoint.

Events are stored in the pan sqlite database while the indexing is
handled by tanvity.

An tantivy index is created for each pan user. Currently only ordering
by ranking is supported, and all the search options are ignored for now.
2019-06-06 14:25:14 +02:00
Damir Jelić
212baad49e store: Remove unused client info storing functionality. 2019-05-21 16:55:07 +02:00
Damir Jelić
e9d0f52a5c pantalaimon: Isort the tree. 2019-05-14 21:50:30 +02:00
Damir Jelić
ea33359daa store: The daemon clients need to be per homeserver. 2019-04-12 17:59:30 +02:00
Damir Jelić
1bbf38e240 daemon: Store and restore client info of our children. 2019-04-11 16:59:37 +02:00
Damir Jelić
51700068b9 pantalaimon: Isort the repo. 2019-04-10 12:25:21 +02:00
Damir Jelić
d0ba6c26da pantalaimon: Add tests. 2019-04-10 12:14:00 +02:00