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
Allow retrieving the relations of a redacted event #12130
Merged
Merged
Changes from 9 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
995c7b2
Requesting of relations of redacted events is allowed.
clokep 1b182a0
Refactor to keep a map of input event ID -> event.
clokep a1fe62a
Include bundled aggregations for redacted events.
clokep 0ed4bac
Add tests for thread relations.
clokep 05ecc61
Newsfragment
clokep f9ed38c
Pass both event_id and event for caching.
clokep c97c4a8
Fix incorrect redaction parameters.
clokep 16cf9c0
Properly invalidate edits when redacting a parent event.
clokep 252c851
Merge remote-tracking branch 'origin/develop' into clokep/relation-re…
clokep 6c58509
Allow for ignoring some arguments when caching.
clokep a4a1c31
Require caches to use kwargs.
clokep 18805d0
Make a function private.
clokep 020f0c6
Add a test for keyword arguments.
clokep f69b643
Keyword-only arguments are not supported.
clokep 8fa311e
Newsfragment
clokep 2d41a6c
Add a comment.
clokep 4460e92
Properly handle passing a uncached parameter as an arg.
clokep 02fc051
Remove debugging code.
clokep ad0a3a6
Merge remote-tracking branch 'origin/clokep/uncached-args' into cloke…
clokep ecbc2d9
Use uncached_args parameter instead of num_args.
clokep f15a031
Move cache invalidation to a single place.
clokep 6b1cf03
Merge remote-tracking branch 'origin/develop' into clokep/relation-re…
clokep f885036
Newsfragment
clokep d2321b9
Avoid streaming caches which will be invalidated anyway.
clokep 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix a long-standing bug when redacting events with relations. |
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
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
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
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
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.
This feels duplicative to what happens in
_invalidate_caches_for_event
, but I think that doesn't run on the main process?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.
_invalidate_caches_for_event
happens on the main process? Otherwise the event caches on the main process would be wrong?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 see any place that would be called on the main process, it only gets called via
CacheInvalidationWorkerStore.process_replication_rows
(either directly or via_process_event_stream_row
).I see some calls directly to
_invalidate_get_event_cache
though? These lines should actually be next to that, most likely...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 made a change in f15a031 which consolidates the logic a bit, which gives apples-to-apples comparison of what to clear when redacting an event.