Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debounce modify annotation requests #918

Open
mzur opened this issue Sep 5, 2024 · 0 comments
Open

Debounce modify annotation requests #918

mzur opened this issue Sep 5, 2024 · 0 comments
Labels

Comments

@mzur
Copy link
Member

mzur commented Sep 5, 2024

For each modification of an annotation, a request is sent to the backend which in turn triggers a ProcessAnnotatedImage/Video job to reprocess the annotation. Modifications can happen in quick succession, e.g. if a polygon is adjusted or if the brush/eraser/fill tools are used.

To reduce the number of requests sent, use the debounce() function to delay sending requests until no modification happened for 5 s. All requests for modifications within this 5 s window are not sent.

One possible problem with this could be that the user closes the window/tab while the 5 s timeout is still running. Then all modifications are not saved. We could add an unload event listener that always fires and asks the user to wait when there are unfinished timeouts captured by the debounce() function.

@mzur mzur added the discuss label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Medium Priority
Development

No branches or pull requests

1 participant