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

re-exec a query if items were removed from the persistent results #12

Conversation

TristanH
Copy link
Member

@TristanH TristanH commented Dec 4, 2023

this is the only way to be confident about our results. i think there's a chance the restore function could move stuff around to not do the (somewhat expensive) lwt query until we know nothing has been removed, but might not be worth it.

@TristanH TristanH requested a review from eliias December 4, 2023 23:29
@@ -1834,7 +1834,7 @@ describe('rx-query.test.ts', () => {
collection.database.destroy();
});

it.skip('gives correct limit results when items were removed', async () => {
it('gives correct limit results when items were removed', async () => {
Copy link
Member Author

@TristanH TristanH Dec 4, 2023

Choose a reason for hiding this comment

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

this test passes now (fails on readwise)

@eliias eliias force-pushed the tristan/persistence-improvments branch from 6020302 to 249ec1a Compare December 5, 2023 14:55
@eliias eliias force-pushed the tristan/fix-persistent-limit-buffer-case branch from a7b67a9 to 2df803b Compare December 5, 2023 14:56
@TristanH TristanH merged commit a958b6a into tristan/persistence-improvments Dec 5, 2023
13 of 21 checks passed
@TristanH TristanH deleted the tristan/fix-persistent-limit-buffer-case branch December 5, 2023 16:30
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