Skip to content

feat: ROOT-29: Build control tags dropdown for filtering labels within a specific tag #7700

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 26 commits into
base: develop
Choose a base branch
from

Conversation

matt-bernstein
Copy link
Contributor

@matt-bernstein matt-bernstein commented Jun 5, 2025

This PR includes the FE changes for the LSE feature https://humansignal.atlassian.net/browse/ROOT-13.

Change to columns: add an internal flag for "virtual" columns that should not be selectable or viewable in DM; are only used for filtering.

Change to filters: allow overriding a column's normal filter behavior with a custom filter expression; used for new columns that do not correspond to a field on the Task model, so the usual ORM behavior doesn't work for them.

  • make orderable flag work properly - was not fully implemented before
  • add internal flag
  • ff
  • check project export compat - internal columns should be skipped
  • handle SDK compat - internal columns should be skipped

@matt-bernstein matt-bernstein requested a review from a team as a code owner June 5, 2025 13:38
Copy link

netlify bot commented Jun 5, 2025

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

Name Link
🔨 Latest commit 3978bc4
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/684754532d355600088cfae9

Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 3978bc4
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6847545399b92e00089bc34d
😎 Deploy Preview https://deploy-preview-7700--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.

Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 3978bc4
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/684754534800730008da549c
😎 Deploy Preview https://deploy-preview-7700--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 Jun 5, 2025
Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 3978bc4
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/684754531a8ec200086f4e00

Comment on lines 461 to 463
// if (col.internal) {
// return;
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// if (col.internal) {
// return;
// }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

still a WIP, keeping this around until the final pass in case I need it later :)

Comment on lines 95 to 96
// // Filter out internal columns so they never reach grid/column selector
// return list.filter((c) => !c.internal);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// // Filter out internal columns so they never reach grid/column selector
// return list.filter((c) => !c.internal);

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Jun 6, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 label_studio/session_policy/migrations/0003_alter_sessiontimeoutpolicy_max_session_age_and_more.py

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Jun 6, 2025

/fm sync

Workflow run

Comment on lines +64 to +65
const hasEqualOperators = operatorList.some((o) => ["equal", "not_equal"].includes(o.key));
const allowedOperators = hasEqualOperators ? ["equal", "not_equal"] : ["contains", "not_contains"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

so these vars are the same for any operator, so they can be moved out of this filter as a small improvement

@@ -107,6 +116,9 @@ export const Tab = types
},

get currentFilters() {
if (!isFF(FF_ANNOTATION_RESULTS_FILTERING)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's not a typo? here you are changing the old behaviour without FF and transforming the old one into new one

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Jun 6, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 web/libs/editor/src/tags/object/TimeSeries/README.md

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Jun 6, 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.

4 participants