Open nathanielrindlaub opened 1 year ago
@nathanielrindlaub Two Immediate Thoughts:
@ingalls ok cool - I'm not sure we want to disallow users from uploading images w/o automation rules set because there's a chance someone would not want and ML predictions at all. I think what I'm looking for is suggestions for how we might support that use-case (while making sure users understand the implications before initiating an upload), rather than prevent it.
It seems like we'd probably need to figure out how to make ingest-zip
aware that there are no automation rules, and not to create the processing stack if so. Perhaps this could be accomplished by somehow passing that info in from the frontend during createUpload
- not sure.
We'd also likely need to update how we handle getBatches
and display the status on the frontend, as batch.remaining
and probably some other batch fields would no longer be relevant.
That said I think this is low priority for now so I think I'll kick it to a future milestone.
If a user uploads a batch to their project but doesn't have any ML-related automation rules currently set (and by default that is the case w/ new Projects), the queues get spun up and querying the batch will return
batch.remaining: 0
until (I'm guessing??) the scheduledingest-delete
gets run and cleans it up. From the users' perspective this may be confusing as it will look like the image processing has hung.@ingalls - any ideas for a cleaner fix for this? I put a band-aid on it by checking whether or not a user's project has automation rules set when they click "upload", and if not, an alert pops up that says:
And forces them to click "upload anyway" to continue, but it's not a perfect solution and the user experience will still be confusing if they do proceed.