This repository was 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
Limit and filter the number of backfill points to get from the database #13879
Merged
MadLittleMods
merged 93 commits into
develop
from
madlittlemods/backfill-points-filtering-and-limits
Sep 28, 2022
Merged
Changes from 10 commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
e0d7fab
Keep track when we tried to backfill an event
MadLittleMods b8d55d3
Record in some fail spots
MadLittleMods f63d823
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods bec26e2
Record and clear attempts
MadLittleMods fee37c3
Add changelog
MadLittleMods d1290be
Remove from when spam checker fails
MadLittleMods f9119d0
Custom upsert to increment
MadLittleMods f5c6fe7
Fix lints
MadLittleMods 16ebec0
Remove extra whitespace
MadLittleMods ce07aa1
Move to correct folder
MadLittleMods 5811ba1
Set the version back
MadLittleMods cf2b093
Fix `TypeError: not all arguments converted during string formatting`
MadLittleMods cbb4194
Add test to make sure failed backfill attempts are recorded
MadLittleMods 621c5d3
Clean up test
MadLittleMods 75c07bb
Fix comments
MadLittleMods 783cce5
Add test for clearing backfill attempts
MadLittleMods 54ef84b
Maybe a better comment
MadLittleMods 7bf3e7f
WIP: Just working on the query
MadLittleMods 37ff009
Move comment to where it matters
MadLittleMods a58d191
Silly graph pt 1
MadLittleMods f127ad1
Silly graph pt 2
MadLittleMods 18abbf4
Tests running (not working)
MadLittleMods 23310f5
Passing test
MadLittleMods 64e01d8
Add test for A and B
MadLittleMods 47bac25
Add tests for backfill attempts
MadLittleMods 2ebed9d
Remove `GROUP BY backward_extrem.event_id` (seems unnecessary)
MadLittleMods 60b3b92
Clarify why that much time
MadLittleMods e9f603d
Label ? slot
MadLittleMods a8f1464
Better explanation
MadLittleMods bbd1c94
Add changelog
MadLittleMods dd1db25
Fix lints
MadLittleMods c583eef
Update docstring
MadLittleMods ea4a3ad
Apply same changes to `get_insertion_event_backward_extremities_in_room`
MadLittleMods f495752
Use power and capitalize AS
MadLittleMods f2061b9
Use SQLite compatible power of 2 (left shift)
MadLittleMods e4192d7
Update table name with "failed" and include room_id in the primary key
MadLittleMods 7a44932
Rename to record_event_failed_backfill_attempt
MadLittleMods 86d98ca
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods 29f584e
Merge branch 'madlittlemods/keep-track-when-we-tried-to-backfill-an-e…
MadLittleMods 506a8dd
Changes after merging madlittlemods/keep-track-when-we-tried-to-backf…
MadLittleMods 361ce5c
Use compatible least/min on each db platform
MadLittleMods b09d8a2
Fix SQLite no such column error when comparing table to null
MadLittleMods 965d142
Add comment about how these are sorted by depth now
MadLittleMods 267777f
Apply same least compatiblity to insertion event extremities
MadLittleMods d0cd42a
Fix lints
MadLittleMods 3d9f625
Try fix ambiguous column (remove unsued table)
MadLittleMods 33a3c64
Fix ambiguous column
MadLittleMods 6736d10
Add tests for get_insertion_event_backward_extremities_in_room
MadLittleMods 6eba1d4
Fix up test descriptions
MadLittleMods 1464101
Add _unsafe_to_upsert_tables check
MadLittleMods 71c7738
Add foreign key references
MadLittleMods df8c76d
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods d45b078
Remove reference to event that won't be in the events table
MadLittleMods c939422
Merge branch 'madlittlemods/keep-track-when-we-tried-to-backfill-an-e…
MadLittleMods 599e212
Fix approximate typo
MadLittleMods bc8046b
Clarify what depth sort
MadLittleMods ea08006
Fix typos
MadLittleMods 9a85bb4
Normal is not obvious
MadLittleMods 7204cce
Fix left-shift math
MadLittleMods 8f214b1
Fix foreign key constraint
MadLittleMods 33ad64e
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods 63bec99
Remove emulated upsert code (all of our dbs no support it)
MadLittleMods 31d7502
Table rename `event_failed_pull_attempts`
MadLittleMods 0b5f1db
Add `last_cause` column
MadLittleMods 4ce7709
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods d3a1f84
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods 1347686
Update schema version summary
MadLittleMods 57182dc
Remove backfilled check since we plan to go general anyway
MadLittleMods e58bc65
Merge branch 'develop' into madlittlemods/keep-track-when-we-tried-to…
MadLittleMods 70019d2
Move change to latest delta 73
MadLittleMods 46a1a20
Merge branch 'madlittlemods/keep-track-when-we-tried-to-backfill-an-e…
MadLittleMods 91c5be0
Merge branch 'develop' into madlittlemods/13622-do-not-retry-backfill…
MadLittleMods 7ea40b1
Updates after schema changes in the other PR
MadLittleMods 40ec8d8
Remove debug logging
MadLittleMods 47aa375
Merge branch 'develop' into madlittlemods/13622-do-not-retry-backfill…
MadLittleMods 1208540
Remove orthogonal `current_depth` changes
MadLittleMods 1738619
Revert "Remove orthogonal `current_depth` changes"
MadLittleMods 3f1b695
Typos
MadLittleMods aae06fd
Merge branch 'develop' into madlittlemods/backfill-points-filtering-a…
MadLittleMods bae72e4
I didn't try to change the lock (shrug)
MadLittleMods 4f2b3ae
Make sure our timing doesn't get thrown off
MadLittleMods 44e2a5d
Add limit, fix lints and add changelog
MadLittleMods 685bbee
Fixup language
MadLittleMods 9921f24
Remove redundant comment
MadLittleMods 7c96481
Simpler, behavior equivalent condition when nothing to backfill
MadLittleMods b7368ba
Explain what passing None does
MadLittleMods 4823bb2
Only explain what's necessary to understand current_depth
MadLittleMods 829cef8
Explain what the depth correlates to
MadLittleMods db90283
More accurate descroption of get_backfill_points_in_room
MadLittleMods aba8b0f
Remove extra context that describes our usage
MadLittleMods e727a31
Merge branch 'develop' into madlittlemods/backfill-points-filtering-a…
MadLittleMods 379ccb4
Point at specific event
MadLittleMods 21f5933
Start with a one line description
MadLittleMods 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.