estuary / ui

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

Tests initiated by field selection can be cancelled #1201

Open kiahna-tucker opened 1 month ago

kiahna-tucker commented 1 month ago

Bug

The poller monitoring a test initiated by field selection can be cancelled when the selected binding changes.

Reproduction Steps

Initializing the field selection table:

  1. Enter the edit workflow for a materialization with two or more bindings.

  2. Change the selected binding in the Source Collections section of the form while the field selection table is still in a loading state.

  3. Observe that the field selection table indefinitely remains in a loading state for all bindings. Inspecting the API calls made in the workflow reveals that the poller responsible for monitoring background test progress was cancelled when the selected binding changed.

Refreshing the field selection table:

  1. Enter the edit workflow for a materialization with at least one binding.

  2. Add a binding to the materialization.

  3. Click the Next CTA.

  4. Click the field selection Refresh button in the Source Collections section of the form.

  5. Change the selected binding while the field selection table is still in a loading state.

  6. Observe that the field selection table indefinitely remains in a loading state for all bindings. Inspecting the API calls made in the workflow reveals that the poller responsible for monitoring test progress was cancelled when the selected binding changed.

Expected

The field selection table should be initialized if the test succeeded in producing a built_spec and validation object. In the event of a failed test, the table should enter an idle state and the error should be handled appropriately. Additionally, the client state should enter an idle state once the test concludes.

Screenshots

Include a screenshot of what you saw when the bug happened.

Desktop

Additional Context