Skip to content

feat: ROOT-45: Filter by annotator prototype #7783

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

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from

Conversation

matt-bernstein
Copy link
Contributor

Allow joining filters into a filterline

@matt-bernstein matt-bernstein requested review from a team as code owners June 17, 2025 18:30
Copy link

netlify bot commented Jun 17, 2025

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

Name Link
🔨 Latest commit 7fff391
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6855b49bf350b80008438a58

Copy link

netlify bot commented Jun 17, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 7fff391
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6855b49bd9f4aa00081072c8

Copy link

netlify bot commented Jun 17, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 7fff391
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6855b49bdfbd78000876e872
😎 Deploy Preview https://deploy-preview-7783--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 feat label Jun 17, 2025
Copy link

netlify bot commented Jun 17, 2025

Deploy Preview for label-studio-playground ready!

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

Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 14 lines in your changes missing coverage. Please review.

Project coverage is 78.51%. Comparing base (9b06605) to head (1b11cd2).
Report is 5 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
label_studio/data_manager/serializers.py 61.11% 14 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7783      +/-   ##
===========================================
- Coverage    78.56%   78.51%   -0.06%     
===========================================
  Files          206      206              
  Lines        16478    16516      +38     
===========================================
+ Hits         12946    12967      +21     
- Misses        3532     3549      +17     
Flag Coverage Δ
pytests 78.51% <71.42%> (-0.06%) ⬇️

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.

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Jun 18, 2025

/fmt

Workflow run

related_name='children',
null=True,
blank=True,
db_index=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this to satisfy the linter? While it's strictly necessary, I always like to have indices on FKs to support flexible querying

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep - I tried adding an index in a concurrent migration, but wasn't able to do it in a way that passed the migration linter

Copy link
Contributor

Choose a reason for hiding this comment

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

It's fine to suppress the migration linter like so:

- the index operation will be fast because this is a new column where all the new values will be NULL

_('index'),
null=True,
blank=True,
default=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit - as long as we are making other changes, we can remove this

Suggested change
default=None,

)

# `index` is now only meaningful for **root** filters (parent is NULL)
index = models.IntegerField(
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a way we could name this field to make it clearer what it really represents? display_index or display_order_index would both help in this regard, imo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This field isn't new, renaming it would have increased change surface area, but yes it's possible. Could do it in a separate chore PR

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