Commit graph

178 commits

Author SHA1 Message Date
kim
dd0f51ed1e ensure edit submodels are dropped on cache insertion 2025-04-25 15:28:07 +01:00
kim
4a4364ff42 fix repeatBoost logic that doesn't account for already-hidden repeatBoosts 2025-04-25 15:24:39 +01:00
kim
c8de7f2760 fix test broken due to addition of preloader 2025-04-25 15:24:39 +01:00
kim
db91fe5a94 better concurrency safety in Clear() and Done() 2025-04-25 15:24:39 +01:00
kim
c6df3f610d don't return on status filter errors, these are usually transient 2025-04-25 15:24:39 +01:00
kim
acba53a354 fix preload repeatBoost checking logic 2025-04-25 15:24:39 +01:00
kim
a76ac5e098 remove unsetting of lo, hi 2025-04-25 15:24:39 +01:00
kim
525807f07e fix-up some comments referring to old logic 2025-04-25 15:24:39 +01:00
kim
379105e837 remove trim-after-insert behaviour 2025-04-25 15:24:39 +01:00
kim
a526541050 shift around some logic to make sure things aren't accidentally left set 2025-04-25 15:24:39 +01:00
kim
b76398f685 more code comments, don't bother inserting statuses if timeline not preloaded 2025-04-25 15:24:39 +01:00
kim
00d8a1f8ac much improved status timeline code comments 2025-04-25 15:24:39 +01:00
kim
cc86a08f15 fix timeline preload state check 2025-04-25 15:24:39 +01:00
kim
83f6685437 add logic to allow dynamic clear / preloading of timelines 2025-04-25 15:24:39 +01:00
kim
b04b4f8516 share a bunch of the database load code in timeline cache, don't clear timelines on relationship change 2025-04-25 15:24:39 +01:00
kim
0982a4b671 ensure repeat boosts are marked in preloaded entries 2025-04-25 15:24:39 +01:00
kim
b3c9bfde18 start adding preloading support 2025-04-25 15:24:39 +01:00
kim
6210ea33ee add more status timeline tests 2025-04-25 15:24:39 +01:00
kim
57ef7847ec add StatusTimeline{} tests 2025-04-25 15:24:39 +01:00
kim
2300882a83 remove unused field 2025-04-25 15:24:39 +01:00
kim
8a6ff1631a add important note 2025-04-25 15:24:39 +01:00
kim
e762577179 more code comments 2025-04-25 15:24:39 +01:00
kim
50805fac53 add repeat boost filtering logic, update go-structr, general improvements 2025-04-25 15:24:38 +01:00
kim
cf405352e6 do a maximum of 5 loads, not 10 2025-04-25 15:23:34 +01:00
kim
be75246307 remove comments for repeat code 2025-04-25 15:23:34 +01:00
kim
8dfce9fa84 fix use of timeline.lastOrder, fix incorrect range functions used 2025-04-25 15:23:34 +01:00
kim
8c09d0f20d move boost checking to prepare function 2025-04-25 15:23:34 +01:00
kim
6fa0033a45 remove unused function to appease the linter 2025-04-25 15:23:34 +01:00
kim
9baa3da081 again, remove more unused code 2025-04-25 15:23:34 +01:00
kim
0955d1b86a remove unnecessary change 2025-04-25 15:23:34 +01:00
kim
227d6edc3e remove local / public caches (is out of scope for this work), share more timeline code 2025-04-25 15:23:34 +01:00
kim
96250a941c swap the lo, hi values 🤦 2025-04-25 15:23:34 +01:00
kim
53817c23fd simplify timeline cache loading, fix lo/hi returns, fix timeline invalidation side-effects missing for some federated actions 2025-04-25 15:23:34 +01:00
kim
7ee2ef039c update go-structr version to latest with changed timeline unique indexing logic 2025-04-25 15:23:34 +01:00
kim
f62cc52761 fill in more code comments 2025-04-25 15:23:34 +01:00
kim
ba3ddd32f9 finish writing code comments for the StatusTimeline{} type itself 2025-04-25 15:23:34 +01:00
kim
10d2c12c6f improved code comments for updated / returned lo , hi paging values 2025-04-25 15:23:34 +01:00
kim
158463908a change the way we update lo,hi paging values during timeline load 2025-04-25 15:23:34 +01:00
kim
791d7c5aef some variable renaming, for ease of following 2025-04-25 15:23:34 +01:00
kim
e99d0d7276 finish writing more code comments 2025-04-25 15:23:34 +01:00
kim
f715bec563 don't allow multiple entries for BoostOfID values to prevent repeated boosts of same boosts 2025-04-25 15:23:34 +01:00
kim
5bab57226e improved code comments 2025-04-25 15:23:34 +01:00
kim
a48527282e continued from previous commit 2025-04-25 15:23:34 +01:00
kim
5ef24340f7 reslice the output if it's beyond length of 'lim' 2025-04-25 15:23:34 +01:00
kim
28499335ec fix linter hints 2025-04-25 15:23:34 +01:00
kim
015938cdea linter, ssssssssshhhhhhhhhhhh please 2025-04-25 15:23:34 +01:00
kim
24ae7bec49 tweak cache size limits 2025-04-25 15:23:34 +01:00
kim
64564496f1 fix up more tests, fix missing required changes, etc 2025-04-25 15:23:34 +01:00
kim
61f8da707c fix test-identified timeline cache package issues 2025-04-25 15:23:34 +01:00
kim
4e80d0bf79 start adding page validation 2025-04-25 15:23:34 +01:00