estuary / ui

A web based UI to assist in working with Estuary Flow
https://dashboard.estuary.dev/
Other
12 stars 1 forks source link

"Reset" data flows with single click in the UI #1220

Open travjenkins opened 1 month ago

travjenkins commented 1 month ago

Overview

Need a way for the UI to allow users to do a full proper "backfill"

Before implementing this we need to see if it is technically easier to pull this off by adding it to the details page OR work it into the existing flows.

Notes from UI/UX

The batch script is not 100% correct and incorrect in small ways that are not huge. This is a good basis for making the final script

The core workflow is:

  1. Capture - Disable
  2. Capture - Publish
    • Runtime must stop 100% and is done writing documents (wait for publication to succeed and then wait… or keep looking for shards)
    • (IMPORTANT) - save current time
  3. Bindings - update backfill property
  4. Capture - enable
  5. Materialization - update notBefore property
  6. Capture & Materialization - Publish

Maybe still add a CTA next to backfill all button that tells the user to go to this flow.

Original Notes

Control plane:

  1. Extend automatic backfills to the collection level
  2. Change it so that it first disables the capture and then does what it currently does in two publications
  3. Turn it into a script that the UI could call to initiate a backfill when the user is in the loop

UI: New button on the the binding and capture level in the edit ui for captures next to "Backfill" that is called "Reset Dataflow" and calls the script as a cloud function.