Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Fix implementation of collection snapshot #956

Merged
merged 5 commits into from
Feb 15, 2021
Merged

Conversation

leplatrem
Copy link
Contributor

The previous implementation was not handling properly deletions/recreations. This one is much simpler and works as expected.

@github-actions
Copy link

github-actions bot commented Feb 12, 2021

Size Change: -53 B (0%)

Total Size: 39.9 kB

ℹ️ View Unchanged
Filename Size Change
dist/kinto-http.min.js 8.9 kB -18 B (0%)
dist/kinto-http.node.js 14.7 kB -17 B (0%)
dist/moz-kinto-http-client.js 16.2 kB -18 B (0%)

compressed-size-action

Copy link
Member

@dstaley dstaley left a comment

Choose a reason for hiding this comment

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

Looks great! Definitely easier to read.

src/collection.ts Outdated Show resolved Hide resolved
Copy link
Member

@dstaley dstaley left a comment

Choose a reason for hiding this comment

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

I'll leave it up to you if you want to remove the call to console.debug.

}
}
console.debug(`Found ${recordsById.size} records in snapshot (at=${at}).`);
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I agree, this shouldn't be the first one

@leplatrem leplatrem merged commit da2d02c into master Feb 15, 2021
@leplatrem leplatrem deleted the fix-collection-snapshot branch February 15, 2021 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants