Skip to content

[sheet] warn if using stale data #690

@auniverseaway

Description

@auniverseaway

As an author, I would like to be notified if I am working with stale data so that I do not clobber updates made while I have my sheet open.

Potential solution

  1. Upon open, cache the original response JSON.
  2. Poll every 10s (while tab is active) to ensure JSON matches the original response.
  3. If the data has changed, pop a toast stating the data is out of date.

Other ideas

We could do this check on save to eliminate the polling noise. The only challenge here is what do we do with the data we want to save? It gets messy unless we have some sort of diff (plus merge tools) we can provide. Doing this every 10s would mean you do not get very far with edits before you see the toast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions