Skip to content

fix: FIT-1520: Annotations no longer load in Compare All > Side-by-side mode (again?)#9604

Open
yyassi-heartex wants to merge 3 commits intodevelopfrom
fb-fit-1520/annotation-fix
Open

fix: FIT-1520: Annotations no longer load in Compare All > Side-by-side mode (again?)#9604
yyassi-heartex wants to merge 3 commits intodevelopfrom
fb-fit-1520/annotation-fix

Conversation

@yyassi-heartex
Copy link
Contributor

This pull request updates the logic in the AnnotationMixin to prevent unnecessary error logging when accessing the annotation getter during initialization, specifically when both FF_SIMPLE_INIT and FF_DEV_3391 feature flags are enabled. It also adds comprehensive unit tests to verify this behavior.

Feature flag logic update:

  • The annotation getter in AnnotationMixin now skips logging the "annotation accessed before store is initialized" error if both FF_SIMPLE_INIT and FF_DEV_3391 feature flags are enabled, preventing false-positive error logs during certain initialization flows.

Testing improvements:

  • Added unit tests in AnnotationMixin.test.js to ensure:
    • No error is logged when both FF_SIMPLE_INIT and FF_DEV_3391 are enabled and STORE_INIT_OK is false.
    • Error is still logged when FF_DEV_3391 is disabled, maintaining correct behavior for other scenarios.

@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 618728f
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/69b3035cf7b3410007dc909a

@netlify
Copy link

netlify bot commented Mar 12, 2026

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

Name Link
🔨 Latest commit 618728f
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/69b3035c12aaa5000793686a

@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 618728f
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/69b3035cfaba000007f5b62d
😎 Deploy Preview https://deploy-preview-9604--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the fix label Mar 12, 2026
@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 618728f
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/69b3035c881d4c000839d3e4
😎 Deploy Preview https://deploy-preview-9604--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yyassi-heartex yyassi-heartex requested review from a team March 12, 2026 18:18
@hlomzik
Copy link
Collaborator

hlomzik commented Mar 12, 2026

PR description is not about an actual fix at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants