supabase-community / seed

Automatically seed your database with production-like dummy data based on your schema for local development and testing.
MIT License
489 stars 19 forks source link

feat: Find out if data generation jobs have started sooner #170

Closed justinvdm closed 6 months ago

justinvdm commented 6 months ago

UX changes

Code changes

Corresponding snaplet PR: https://github.com/snaplet/snaplet/pull/2638

Demo: https://www.loom.com/share/2665a08668a74eabb3b1680a3b9830fd?from_recorder=1&focus_title=1

linear[bot] commented 6 months ago
S-2112 Find out if data generation job has started sooner

At the moment, we use some guesses to determine whether we need to wait for data generation jobs to start, and then poll until they have. This guesswork isn't robust though, and there are edge cases where it won't be the case. In these cases, the users will either not get the AI results they need, or wait for them indefinitely. Fixing this will also enable us to show progress for both shape prediction and data generation together (e.g. as a single percent), which means the user isn't sometimes seeing progress and sometimes not.