Skip to content

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Sep 28, 2025

First try

Copy link

netlify bot commented Sep 28, 2025

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

Name Link
🔨 Latest commit 85ac05d
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/68dd3550a6b5fa0008718249

Copy link

netlify bot commented Sep 28, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 85ac05d
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/68dd35507557ef00082e0810
😎 Deploy Preview https://deploy-preview-8547--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

netlify bot commented Sep 28, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 85ac05d
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/68dd355043a9cf0008b19061

@github-actions github-actions bot added the feat label Sep 28, 2025
Copy link

netlify bot commented Sep 28, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 85ac05d
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/68dd3550f8fe0f0008a4fbd0
😎 Deploy Preview https://deploy-preview-8547--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

codecov bot commented Sep 28, 2025

Codecov Report

❌ Patch coverage is 3.93013% with 220 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.06%. Comparing base (3f41aa1) to head (85ac05d).
⚠️ Report is 19 commits behind head on develop.

Files with missing lines Patch % Lines
web/libs/editor/src/tags/custom/Custom.jsx 2.09% 187 Missing ⚠️
web/libs/editor/src/tags/custom/CustomRegion.js 8.33% 33 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (3f41aa1) and HEAD (85ac05d). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3f41aa1) HEAD (85ac05d)
pytests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8547      +/-   ##
===========================================
- Coverage    67.46%   58.06%   -9.41%     
===========================================
  Files          780      560     -220     
  Lines        59861    39025   -20836     
  Branches     10136    10356     +220     
===========================================
- Hits         40387    22660   -17727     
+ Misses       19471    16362    -3109     
  Partials         3        3              
Flag Coverage Δ
lsf-e2e 48.65% <3.94%> (-6.14%) ⬇️
lsf-integration 50.88% <3.94%> (-0.47%) ⬇️
lsf-unit 8.66% <0.00%> (+0.04%) ⬆️
pytests ?

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.

@niklub
Copy link
Collaborator

niklub commented Sep 28, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 label_studio/tests/sdk/test_project_annotators_api.py

try {
const areaValue = { custominterface: value };
const resultValue = { custominterface: value };
self.annotation.createResult(areaValue, resultValue, self, self.toname);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why did you remove the main call creating result and region?

Comment on lines 252 to 253
if (store && store.events) {
store.events.invoke("updateAnnotation", store, annotation).catch(() => {});
if (store && store.events && typeof store.events.invoke === "function") {
try {
const res = store.events.invoke("updateAnnotation", store, annotation);
if (res && typeof res.catch === "function") res.catch(() => {});
} catch (e) {}
}
} else {
if (store && store.events) {
store.events.invoke("submitAnnotation", store, annotation).catch(() => {});
if (store && store.events && typeof store.events.invoke === "function") {
try {
const res = store.events.invoke("submitAnnotation", store, annotation);
if (res && typeof res.catch === "function") res.catch(() => {});
} catch (e) {}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we have to remove all these calls completely! result update should not submit annotation, that's totally wrong. also it looks like it doesn't work anyway.

detector: (sn: any) => Boolean(sn?.value?.custominterface || sn?.custominterface),
// Do not detect regions by value for CustomInterface. Classification areas (global results)
// should deserialize as ClassificationArea, not CustomRegionModel, otherwise addResult is missing.
detector: () => false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if there are problems with false detection of classification we should fix the problem, not break the detection completely.

- Proper relations to other parts of LSF like `object` and types
- Remove some excess functions and fields breaking the LSF
- Add missing AreaMixin
We should not call annotation submission methods from the tag,
it's totally wrong.
- Add missing serialize() to save results properly
- Add `update(value)` and `get value` for better region api
- Fix tag type: not a control, not a classification; we should use ObjectBase
- Remove more useless code
- Use `observer()` for rendered tag so it reacts on region changes
  - Also fix dependency to react on regions
That allows to use usual JS code with &, <, etc.
@hlomzik hlomzik closed this Oct 2, 2025
@hlomzik hlomzik deleted the fb-custom-regions branch October 2, 2025 13:29
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