Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to persistent query cache from testing (RW-34462) #9

Merged
merged 6 commits into from
Dec 5, 2023

Conversation

TristanH
Copy link
Member

@TristanH TristanH commented Dec 2, 2023

Improvements:

  • Prevent case in mobile app where the same query was being restored multiple times at once
  • Don't bother trying to persist showInUnseenAfter queries (in rekindled PR)
  • Test for case where persistence gives incorrect results (limit buffer case)
  • Detect persistence incorrect limit buffer case and re-exec query

Also see: https://github.com/readwiseio/rekindled/pull/3391

@TristanH TristanH force-pushed the tristan/persistence-improvments branch 2 times, most recently from 99c2926 to 0c3d9d8 Compare December 3, 2023 00:01
@@ -521,6 +521,10 @@ export class RxQueryBase<
}

enablePersistentQueryCache(backend: QueryCacheBackend) {
if (this._persistentQueryCacheBackend) {
Copy link

@eliias eliias Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh… this happened when a component re-rendered I assume?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i'm not fully sure yet, something like that

@TristanH TristanH changed the title Improvements to persistent query cache from testing Improvements to persistent query cache from testing (RW-34462) Dec 4, 2023
@eliias eliias force-pushed the tristan/persistence-improvments branch from 6020302 to 249ec1a Compare December 5, 2023 14:55
@TristanH
Copy link
Member Author

TristanH commented Dec 5, 2023

@eliias tests are still failing on this branch even though it has your fix 🤔

@TristanH TristanH force-pushed the tristan/persistence-improvments branch from 6f2d9ec to 372ba29 Compare December 5, 2023 19:23
@TristanH TristanH merged commit aa98e5a into readwise Dec 5, 2023
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants