Skip to content

Conversation

@bmartel
Copy link
Contributor

@bmartel bmartel commented Nov 6, 2025

This PR adds the foundational code for exposing FSM state in API responses:

  • FSMStateField: DRF serializer field for exposing state
  • FSMStateMetadataField: DRF serializer field for exposing state with metadata
  • FSMStateQuerySetMixin: QuerySet mixin for annotating state (prevents N+1 queries)
  • FSMMultiStateQuerySetMixin: Extended mixin with metadata support

This is foundation code only - no implementation/usage is included in this PR.

…ation)

This PR adds the foundational code for exposing FSM state in API responses:
- FSMStateField: DRF serializer field for exposing state
- FSMStateMetadataField: DRF serializer field for exposing state with metadata
- FSMStateQuerySetMixin: QuerySet mixin for annotating state (prevents N+1 queries)
- FSMMultiStateQuerySetMixin: Extended mixin with metadata support

This is foundation code only - no implementation/usage is included in this PR.
@netlify
Copy link

netlify bot commented Nov 6, 2025

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

Name Link
🔨 Latest commit e5e215a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/690e669bb6a51c000860daa2
😎 Deploy Preview https://deploy-preview-8774--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 Nov 6, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit e5e215a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/690e669b65e97300081d0bed
😎 Deploy Preview https://deploy-preview-8774--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.

@github-actions github-actions bot added the feat label Nov 6, 2025
@netlify
Copy link

netlify bot commented Nov 6, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit e5e215a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/690e669b1e66160009fbb962
😎 Deploy Preview https://deploy-preview-8774--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 Nov 6, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit e5e215a
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/690e669b1c682900080a79e6
😎 Deploy Preview https://deploy-preview-8774--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.

@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 0% with 100 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.34%. Comparing base (0b92945) to head (e5e215a).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
label_studio/fsm/queryset_mixins.py 0.00% 50 Missing ⚠️
label_studio/fsm/serializer_fields.py 0.00% 50 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #8774       +/-   ##
============================================
+ Coverage    67.31%   80.34%   +13.03%     
============================================
  Files          804      253      -551     
  Lines        62347    23090    -39257     
  Branches     10419        0    -10419     
============================================
- Hits         41966    18552    -23414     
+ Misses       20378     4538    -15840     
+ Partials         3        0        -3     
Flag Coverage Δ
lsf-e2e ?
lsf-integration ?
lsf-unit ?
pytests 80.34% <0.00%> (-0.36%) ⬇️

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 bmartel changed the title feat: Add FSM serializer fields and queryset mixins feat: FIT-710: Add FSM serializer fields and queryset mixins Nov 7, 2025
@bmartel
Copy link
Contributor Author

bmartel commented Nov 7, 2025

/fmt

Workflow run

@bmartel bmartel requested review from mcanu and wesleylima November 7, 2025 17:24
@bmartel
Copy link
Contributor Author

bmartel commented Nov 7, 2025

/fm sync

Workflow run

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.

3 participants