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

Add local event log storage #390

Merged
merged 12 commits into from
Nov 4, 2022
Merged

Add local event log storage #390

merged 12 commits into from
Nov 4, 2022

Conversation

ellie
Copy link
Member

@ellie ellie commented May 5, 2022

Start storing an event log locally!

This will allow us to eventually start syncing events, rather than pure history items.

When merging an event log, we will pair up CREATEs with DELETEs. If there is a pair, we won't create the history. If there is not a pair (and just a CREATE), then the item is created. I've also started on the server end of this, while I had the context in my head. Obviously it's no use just yet

I've been running this branch locally for a bit, and have had no issues.

@ellie ellie mentioned this pull request Oct 8, 2022
@ellie ellie changed the title Switch to event log sync Add local event log storage Nov 2, 2022
@ellie ellie marked this pull request as ready for review November 2, 2022 20:22
@ellie ellie mentioned this pull request Nov 2, 2022
ellie and others added 11 commits November 4, 2022 08:43
This adds the data structures required to start syncing events, rather
than syncing history directly.

Adjust event

Fix

Add event data structure to client
Right now this just ensures we have the right amount of events given the
history we have

BUT it will also be used to merge CREATE/DELETE events, resulting in
history being deleted :)
Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
@ellie ellie merged commit e297b98 into main Nov 4, 2022
@ellie ellie deleted the event-log branch November 4, 2022 09:08
@ellie ellie mentioned this pull request Nov 6, 2022
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.

None yet

2 participants