Skip to content
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

fix: LEAP-1379: disable non-functional export types for MIG projects #6657

Merged
merged 8 commits into from
Nov 18, 2024
105 changes: 105 additions & 0 deletions label_studio/tests/export.tavern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ stages:
response:
status_code: 200


---
test_name: YOLO_export_option_polygons
strict: true
Expand Down Expand Up @@ -173,3 +174,107 @@ stages:
name: 'ASR_MANIFEST'
disabled: true
status_code: 200


---
test_name: mig_export
strict: false
marks:
- usefixtures:
- django_live_url
stages:
- id: signup
type: ref
- name: stage
request:
headers:
content-type: application/json
json:
label_config:
<View>
<Image name="image" valueList="$images"/>
<RectangleLabels name="labels" toName="image">
<Label value="Cat"/>
<Label value="Dog"/>
</RectangleLabels>
</View>
method: POST
url: '{django_live_url}/api/projects'
response:
save:
json:
pk: id
status_code: 201
- name: stage_export
request:
method: GET
url: '{django_live_url}/api/projects/{pk}/export/formats'
response:
strict:
- json:list_any_order
json:
- title: 'JSON'
description: !anystr
link: 'https://labelstud.io/guide/export.html#JSON'
name: 'JSON'
- title: 'JSON-MIN'
description: !anystr
link: 'https://labelstud.io/guide/export.html#JSON-MIN'
name: 'JSON_MIN'
- title: 'CSV'
description: !anystr
link: 'https://labelstud.io/guide/export.html#CSV'
name: 'CSV'
- title: 'TSV'
description: !anystr
link: 'https://labelstud.io/guide/export.html#TSV'
name: 'TSV'
- title: 'COCO'
description: !anystr
link: 'https://labelstud.io/guide/export.html#COCO'
tags: ['image segmentation', 'object detection']
name: 'COCO'
disabled: true
- title: 'YOLO'
description: !anystr
link: 'https://labelstud.io/guide/export.html#YOLO'
tags: ['image segmentation', 'object detection']
name: 'YOLO'
disabled: true
- title: 'YOLOv8 OBB'
description: !anystr
link: 'https://labelstud.io/guide/export.html#YOLO'
tags: ['image segmentation', 'object detection']
name: 'YOLO_OBB'
disabled: true
- title: 'CONLL2003'
description: !anystr
link: 'https://labelstud.io/guide/export.html#CONLL2003'
tags: ['sequence labeling', 'text tagging', 'named entity recognition']
name: 'CONLL2003'
disabled: true
- title: 'Pascal VOC XML'
description: !anystr
link: 'https://labelstud.io/guide/export.html#Pascal-VOC-XML'
tags: ['image segmentation', 'object detection']
name: 'VOC'
disabled: true
- title: 'Brush labels to NumPy'
description: !anystr
link: 'https://labelstud.io/guide/export.html#Brush-labels-to-NumPy-amp-PNG'
tags: ['image segmentation']
name: 'BRUSH_TO_NUMPY'
disabled: true
- title: 'Brush labels to PNG'
description: !anystr
link: 'https://labelstud.io/guide/export.html#Brush-labels-to-NumPy-amp-PNG'
tags: ['image segmentation']
name: 'BRUSH_TO_PNG'
disabled: true
- title: 'ASR Manifest'
description: !anystr
link: 'https://labelstud.io/guide/export.html#ASR-MANIFEST'
tags: ['speech recognition']
name: 'ASR_MANIFEST'
disabled: true
status_code: 200
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0"
setuptools = ">=75.4.0"

# Humansignal repo dependencies
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/d6b2cea6a7a77ef877b44e3f8e5c36f0b96247b4.zip"}
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip"}

[tool.poetry.group.test.dependencies]
pytest = "7.2.2"
Expand Down
Loading