Skip to content

Feature: Improvements for the data sync feature #260

@williscool

Description

@williscool

Contrary to what the power sync library will try to make you believe the sync is not instant to your supabase pg setup.

There's a whole bunch of operations that happen in the background to make all of the events get properly synced up.

And I wouldn't consider the sinking actually being done until that is done.

So what I ended up to it is building a debug thing in the settings UI where I could watch the operation counts go up until it stops and that's how I know the sync is actually complete.

Also the insert into that we do there's weirdness when things get updated. I never had time to dig into.

So I end up just clearing out the previous events.

Which is not how it was originally intended to work you were supposed to just be able to tap the sync button and it would just figure out it out (by which I mean only sync events that are still in the active state and not dismissed)

So we should either

a) fix that
b) Make the sync button be a delete and re-update because that's what I end up actually doing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions