This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use a chain cover index to efficiently calculate auth chain difference #8868
Merged
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
49e888d
Change alg
erikjohnston 8c760ff
Calculate chain ID/seq no on event insertion
erikjohnston 85348e1
Add some docs about the chain cover
erikjohnston 02d1198
Handle old rooms
erikjohnston 61ab47e
Fix schema for sqlite
erikjohnston 6141825
Fix up _get_auth_chain_difference_using_chains_txn
erikjohnston c7e2ce5
Newsfile
erikjohnston 66e779d
Add type
erikjohnston cf2243f
Fixup
erikjohnston bd30c9e
Fix take1
erikjohnston 55f03b9
Fixup
erikjohnston 3e98fb7
More fixups
erikjohnston 9087033
Newsfile
erikjohnston 21b3ef0
Test both new and old methods
erikjohnston fdaf4da
Note
erikjohnston 7f5ac13
isort
erikjohnston afb7f80
Don't add links where start and end chain are the same
erikjohnston dec1f74
Have exists_path_from handle same chain case correctly
erikjohnston 9279940
Add some tests
erikjohnston 6a74e21
Fix unit tests on postgres
erikjohnston 654eff1
Add missing 'auth'
erikjohnston dbecefd
Fixup typing for execute_values
erikjohnston 123b431
Rename _get_auth_chain_difference_using_chains_txn and add comment
erikjohnston 883e922
Add some definitions
erikjohnston 988f25a
Fixup link confusion
erikjohnston 08ec78b
Make para less dense (hopefully)
erikjohnston 024c802
Add note about auth chain
erikjohnston 4cc769f
Be explicit
erikjohnston 7d75efb
rm variant
erikjohnston 92b5e4b
Add note about current algo
erikjohnston a9552c2
Update docs/auth_chain_difference_algorithm.md
erikjohnston 7cc6d7e
Fix up _LinkMap
erikjohnston 5fa05f2
Fix up event_chain tests
erikjohnston 8dac80c
Merge remote-tracking branch 'origin/develop' into erikj/auth_chains_…
erikjohnston e3d0be4
Make sorted_topologically stable and add tests
erikjohnston cdb88c2
Make _LinkMap use tuples
erikjohnston 0f91c86
Review comments
erikjohnston 888450a
Fix typo
erikjohnston c9422b6
Handle rooms the server used to be in correctly.
erikjohnston c8758af
Handle case where we don't have chain info for an event
erikjohnston b2ac553
Merge remote-tracking branch 'origin/develop' into erikj/auth_chains_…
erikjohnston d96264d
Merge remote-tracking branch 'origin/develop' into erikj/auth_chains_…
erikjohnston d64f5f8
Typo
erikjohnston 6071eff
Split out a has_auth_chain_index
erikjohnston 368d3b8
Update docstring
erikjohnston bea2c47
Move to schema 59
erikjohnston 03dd636
Merge remote-tracking branch 'origin/develop' into erikj/auth_chains_…
erikjohnston 8c1e32c
Fix tests after merge from develop
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need this comment anymore (and the one near line 1267) as it is in the
has_auth_chain_index
method now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its a bit unclear why we're bothering to call the function otherwise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel strongly. I'm OK with leaving it.