-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This reverts commit 21be28f.
688b46d
to
035677f
Compare
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/fmt |
related_name='children', | ||
null=True, | ||
blank=True, | ||
db_index=False, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:
linter.IgnoreMigration(), |
_('index'), | ||
null=True, | ||
blank=True, | ||
default=None, |
There was a problem hiding this comment.
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
default=None, |
) | ||
|
||
# `index` is now only meaningful for **root** filters (parent is NULL) | ||
index = models.IntegerField( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Allow joining filters into a filterline