Skip to content

fix: OPTIC-1794: Improve handling of missing tasks and projects when fetching data within DataManager #7210

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

Merged
merged 29 commits into from
Mar 13, 2025

Conversation

bmartel
Copy link
Contributor

@bmartel bmartel commented Mar 11, 2025

This pull request includes a couple updates to error handling within the DataManager component. We are introducing more graceful ways of handling missing tasks and project data, siding with redirects and more subtle toast messages instead of crashing the page and leaving the user in an unusable state of the application. We are now no longer going to treat polling data the same as normal data requests, as one is non critical and nice to have, the other must exist for the application to work. In the case of polling interaction="timer" data we will ignore these errors completely and allow it to retry. The non polling data fetching the main project or task will be handled with a redirect back to the page previous, DataManager of the project (missing task), or the projects list itself (missing project) in that order based on what the missing data type is.

Kapture.2025-03-11.at.20.40.27.webm

Error Handling and Redirection Improvements:

Project and Task Data Handling:

bmartel and others added 20 commits March 4, 2025 11:30
…ast messages in favour of modals and increased Sentry reporting
…r of the hook to mock it in order to stop it from causing errors even if unused
@github-actions github-actions bot added the fix label Mar 11, 2025
Copy link

netlify bot commented Mar 11, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 0153425
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/67d2cdfba823ed00089520a9

Copy link

netlify bot commented Mar 11, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 0153425
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/67d2cdfc75c4790008dcdb14

Copy link
Collaborator

@hlomzik hlomzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some non-critical observations but would be really great to fix them, they are simple and precise.

@AndrejOros
Copy link
Contributor

AndrejOros commented Mar 13, 2025

/fm sync

Workflow run

@AndrejOros
Copy link
Contributor

AndrejOros commented Mar 13, 2025

/fm sync

Workflow run

@bmartel bmartel merged commit efe4608 into develop Mar 13, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants