Skip to content

Conversation

@bmartel
Copy link
Contributor

@bmartel bmartel commented Oct 6, 2025

Removing the very old FF fflag_fix_all_lsdv_4711_cors_errors_accessing_task_data_short as it causes more harm than good by not being on, and is creating more bugs in its wake given it is expected to be on for everyone by this point in time.

This pull request removes the feature flag FF_LSDV_4711 and its associated conditional logic throughout the codebase. This flag previously controlled the application of the crossOrigin: "anonymous" property for media elements to address CORS issues. With this change, the crossOrigin: "anonymous" property is now always applied, simplifying the logic and ensuring consistent handling of media resources across the application.

Feature flag removal and code simplification:

  • Deleted the definition and all references to FF_LSDV_4711 from feature flag files (feature-flags.ts, feature-flags.js). [1] [2] [3]
  • Removed all conditional checks for FF_LSDV_4711 and updated media-related default props to always include crossOrigin: "anonymous" in components such as ImageCell.jsx, AnnotationPreview.jsx, MediaPlayer.jsx, Image.jsx, ImageView.jsx, VirtualVideo.tsx, WaveformAudio.ts, and HtxParagraphs.jsx. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
  • Removed conditional logic for error handling and source resetting that depended on FF_LSDV_4711 in media player and audio components, ensuring these behaviors are always active. [1] [2] [3] [4] [5]
  • Updated model logic for image cross-origin handling in Image.js to always default to "anonymous" when not explicitly set, removing the feature flag dependency. [1] [2]
  • Cleaned up imports and removed unused feature flag references in various files for clarity and maintainability. [1] [2] [3]

These changes ensure consistent cross-origin handling for media elements and simplify the codebase by removing unnecessary feature flag logic.

@bmartel bmartel requested review from a team, hlomzik and nick-skriabin as code owners October 6, 2025 21:28
@netlify
Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit 1ea43ad
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/68e6e71347eb290008f6c81c
😎 Deploy Preview https://deploy-preview-8597--label-studio-docs-new-theme.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.

@netlify
Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 1ea43ad
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/68e6e713d18b6b0008342058
😎 Deploy Preview https://deploy-preview-8597--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.

@netlify
Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit 1ea43ad
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/68e6e71391e5cf0008f93b7e
😎 Deploy Preview https://deploy-preview-8597--heartex-docs.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 chore label Oct 6, 2025
@netlify
Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 1ea43ad
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/68e6e7132b07f60008e0a862
😎 Deploy Preview https://deploy-preview-8597--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 Oct 6, 2025

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.40%. Comparing base (fef7e8a) to head (1ea43ad).
⚠️ Report is 3 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
web/libs/editor/src/components/ImageView/Image.jsx 33.33% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8597      +/-   ##
===========================================
- Coverage    67.43%   67.40%   -0.03%     
===========================================
  Files          782      782              
  Lines        60008    60001       -7     
  Branches     10161    10154       -7     
===========================================
- Hits         40467    40446      -21     
- Misses       19538    19552      +14     
  Partials         3        3              
Flag Coverage Δ
lsf-e2e 54.75% <66.66%> (-0.01%) ⬇️
lsf-integration 51.24% <77.77%> (-0.05%) ⬇️
lsf-unit 8.59% <37.50%> (-0.02%) ⬇️
pytests 79.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bmartel
Copy link
Contributor Author

bmartel commented Oct 7, 2025

/fm sync

Workflow run

@bmartel bmartel requested a review from yyassi-heartex October 8, 2025 22:14
@bmartel
Copy link
Contributor Author

bmartel commented Oct 8, 2025

/fm sync

Workflow run

@bmartel bmartel merged commit b431672 into develop Oct 9, 2025
52 of 53 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-fit-760 branch October 9, 2025 14:03
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