Skip to content

Conversation

@matt-bernstein
Copy link
Contributor

Shuffle around DB queries for this codepath

@matt-bernstein matt-bernstein requested a review from a team as a code owner October 23, 2025 21:10
@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit e64d9c2
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6904b90590612700084b7ec3
😎 Deploy Preview https://deploy-preview-8700--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.

@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit e64d9c2
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6904b905967a4b000863ef3c
😎 Deploy Preview https://deploy-preview-8700--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 23, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit e64d9c2
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6904b905444c7100083efb82
😎 Deploy Preview https://deploy-preview-8700--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 Oct 23, 2025
@netlify
Copy link

netlify bot commented Oct 23, 2025

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

Name Link
🔨 Latest commit e64d9c2
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6904b905ad693200088ef009
😎 Deploy Preview https://deploy-preview-8700--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.

@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.78%. Comparing base (c4bf052) to head (e64d9c2).
⚠️ Report is 2 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
label_studio/data_manager/actions/basic.py 25.00% 3 Missing ⚠️
label_studio/data_manager/api.py 62.50% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #8700       +/-   ##
============================================
+ Coverage    67.04%   79.78%   +12.74%     
============================================
  Files          790      239      -551     
  Lines        60686    21691    -38995     
  Branches     10316        0    -10316     
============================================
- Hits         40684    17306    -23378     
+ Misses       19999     4385    -15614     
+ Partials         3        0        -3     
Flag Coverage Δ
lsf-e2e ?
lsf-integration ?
lsf-unit ?
pytests 79.78% <50.00%> (-0.05%) ⬇️

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 matt-bernstein changed the title feat: ROOT-223: Optimize "Delete predictions" DM action fix: ROOT-223: Optimize "Delete predictions" DM action Oct 24, 2025
@github-actions github-actions bot added the fix label Oct 24, 2025
@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Oct 27, 2025

/fm sync

Workflow run

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Oct 27, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 web/libs/ui/src/assets/icons/clipboard-check.svg

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Oct 28, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 web/libs/datamanager/src/hooks/useActions.ts

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Oct 29, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 label_studio/core/static/samples/opossum-cuteness.pdf

project = generics.get_object_or_404(Project, pk=pk)
self.check_object_permissions(request, project)

queryset = get_prepared_queryset(request, project)
Copy link
Contributor

Choose a reason for hiding this comment

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

why not keep this codepath unchanged if the FF is off?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ff-off path is identical to the body of get_prepared_queryset, I figured the effect of the change is more readable this way

Copy link
Contributor Author

@matt-bernstein matt-bernstein Oct 30, 2025

Choose a reason for hiding this comment

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

def get_prepared_queryset(request, project):
prepare_params = get_prepare_params(request, project)
queryset = Task.prepared.only_filtered(prepare_params=prepare_params)
return queryset

It's only used in one other place, could be worth removing this function entirely if we end up touching the other callsite

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Oct 30, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 web/libs/ui/src/assets/icons/ui.svg

Copy link
Contributor

@jombooth jombooth left a comment

Choose a reason for hiding this comment

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

LGTM, cool idea of cutting ordering from delete queries 👍

@matt-bernstein
Copy link
Contributor Author

matt-bernstein commented Oct 31, 2025

/git merge develop

Workflow run
Successfully merged: create mode 100644 docs/source/images/tutorials/tutorials-hugging-face-ls-sdk.png

@robot-ci-heartex robot-ci-heartex merged commit deed6b9 into develop Oct 31, 2025
52 of 53 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-ROOT-223 branch October 31, 2025 17:50
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