Erik Johnston
4ebf003644
Fix clamp leave and disable backfill
2018-06-01 16:01:26 +01:00
Erik Johnston
c33810d9cc
Remove spurious conditional
2018-06-01 11:55:08 +01:00
Erik Johnston
58aadd3dd4
Remove spurious break
2018-06-01 11:54:24 +01:00
Erik Johnston
e7bb34b72a
Use *row
2018-06-01 11:53:43 +01:00
Erik Johnston
9e7cf48461
Reuse stream_ordering attribute instead of order
...
The internal metadata "order" attribute was only used in one place,
which was equivalent to using the stream ordering anyway.
2018-06-01 11:51:11 +01:00
Erik Johnston
5bf4fa0fc4
Don't drop topo ordering when there is no chunk_id
2018-06-01 11:43:03 +01:00
Erik Johnston
80a877e9d9
Comment on stream vs topological vs depth ordering in schema
2018-06-01 11:31:16 +01:00
Erik Johnston
b671e57759
Implement pagination using chunks
2018-05-31 11:27:31 +01:00
Erik Johnston
bf599cdba1
Use calculated topological ordering when persisting events
2018-05-31 10:18:40 +01:00
Erik Johnston
6188512b18
Add chunk ID to pagination token
2018-05-31 10:04:33 +01:00
Erik Johnston
384731330d
Rename func to _insert_into_chunk_txn
2018-05-30 11:51:03 +01:00
Erik Johnston
9e1d3f119a
Remove unnecessary COALESCE
2018-05-30 11:45:58 +01:00
Erik Johnston
f687d8fae2
Comments
2018-05-30 11:45:41 +01:00
Erik Johnston
ecd4931ab2
Just iterate once rather than create a new set
2018-05-30 11:35:02 +01:00
Erik Johnston
1cdd0d3b0d
Remove redundant conditions
2018-05-30 11:33:57 +01:00
Erik Johnston
1810cc3f7e
Remove unnecessary set
2018-05-30 11:32:27 +01:00
Erik Johnston
6c1d13a15a
Correctly loop over events_and_contexts
2018-05-30 11:30:33 +01:00
Erik Johnston
13dbcafb9b
Compute new chunks for new events
...
We also calculate a consistent topological ordering within a chunk, but
it isn't used yet.
2018-05-25 10:54:23 +01:00
Erik Johnston
bcc9e7f777
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/room_chunks
2018-05-25 10:53:43 +01:00
Amber Brown
cc1349c06a
Merge pull request #3279 from NotAFile/py3-more-iteritems
...
more six iteritems
2018-05-24 14:23:13 -05:00
Adrian Tschira
17a70cf6e9
Misc. py3 fixes
...
Signed-off-by: Adrian Tschira <nota@notafile.com>
2018-05-24 20:20:33 +02:00
Adrian Tschira
6c16a4ec1b
more iteritems
2018-05-24 20:19:06 +02:00
Amber Brown
7ea07c7305
Merge pull request #3278 from NotAFile/py3-storage-base
...
Py3 storage/_base.py
2018-05-24 13:08:09 -05:00
Amber Brown
1f69693347
Merge pull request #3244 from NotAFile/py3-six-4
...
replace some iteritems with six
2018-05-24 13:04:07 -05:00
Amber Brown
36501068d8
Merge pull request #3247 from NotAFile/py3-misc
...
Misc Python3 fixes
2018-05-24 12:58:37 -05:00
Adrian Tschira
095292304f
Py3 storage/_base.py
...
Signed-off-by: Adrian Tschira <nota@notafile.com>
2018-05-24 18:24:12 +02:00
Erik Johnston
6e11803ed3
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/room_chunks
2018-05-23 10:54:14 +01:00
Erik Johnston
a17e901f4d
Remove unused string formatting param
2018-05-22 18:24:32 +01:00
Erik Johnston
5494c1d71e
Don't support limitless pagination
...
The pagination storage function supported not specifiying a limit on the
number of events returned. This was triggered when using the search or
context API with a limit of zero, which the storage function took to
mean not being limited.
2018-05-22 18:15:21 +01:00
Richard van der Hoff
9ea219c514
Send users a server notice about consent
...
When a user first syncs, we will send them a server notice asking them to
consent to the privacy policy if they have not already done so.
2018-05-22 11:54:51 +01:00
Adrian Tschira
933bf2dd35
replace some iteritems with six
...
Signed-off-by: Adrian Tschira <nota@notafile.com>
2018-05-19 17:59:26 +02:00
Adrian Tschira
dcc235b47d
use stand-in value if maxint is not available
...
Signed-off-by: Adrian Tschira <nota@notafile.com>
2018-05-19 17:35:44 +02:00
Neil Johnson
644aac5f73
Tighter filtering for user_daily_visits
2018-05-18 17:10:35 +01:00
Neil Johnson
ef466b3a13
fix psql compatability bug
2018-05-18 15:51:21 +01:00
Erik Johnston
b725e128f8
Comments
2018-05-18 13:43:01 +01:00
Richard van der Hoff
ed3125b0a1
Merge pull request #3235 from matrix-org/rav/fix_receipts_deferred
...
Fix error in handling receipts
2018-05-18 11:23:11 +01:00
Erik Johnston
fa30ac38cc
Merge pull request #3221 from matrix-org/erikj/purge_token
...
Make purge_history operate on tokens
2018-05-18 10:35:23 +01:00
Richard van der Hoff
8b1c856d81
Fix error in handling receipts
...
Fixes an error which has been happening ever since #2158 (v0.21.0-rc1):
> TypeError: argument of type 'ObservableDeferred' is not iterable
fixes #3234
2018-05-18 09:15:35 +01:00
Erik Johnston
0504d809fd
More comments
2018-05-17 17:08:36 +01:00
Erik Johnston
12fd6d7688
Document case of unconnected chunks
2018-05-17 16:07:20 +01:00
Erik Johnston
a638649254
Make insert_* functions internal and reorder funcs
...
This makes it clearer what the public interface is vs what subclasses
need to implement.
2018-05-17 15:10:23 +01:00
Erik Johnston
d4e4a7344f
Increase range of rebalance interval
...
This both simplifies the code, and ensures that the target node is
roughly in the center of the range rather than at an end.
2018-05-17 15:09:31 +01:00
Erik Johnston
c771c124d5
Improve documentation and comments
2018-05-17 15:09:10 +01:00
Erik Johnston
3b505a80dc
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/chunk_base
2018-05-17 14:00:41 +01:00
Erik Johnston
943f1029d6
Begin adding implementing room chunks
...
This commit adds the necessary tables and columns, as well as an
implementation of an online topological sorting algorithm to maintain an
absolute ordering of the room chunks.
2018-05-17 12:05:22 +01:00
Erik Johnston
f7906203f6
Merge pull request #3212 from matrix-org/erikj/epa_stream
...
Use stream rather depth ordering for push actions
2018-05-17 12:01:21 +01:00
Erik Johnston
680530cc7f
Clarify comment
2018-05-16 11:47:29 +01:00
Erik Johnston
43e6e82c4d
Comments
2018-05-16 11:13:31 +01:00
Neil Johnson
dc8930ea9e
Merge pull request #3163 from matrix-org/cohort_analytics
...
user visit data
2018-05-16 10:09:24 +00:00
Erik Johnston
c945af8799
Move and rename variable
2018-05-16 10:52:06 +01:00