Skip to content

Conversation

@guilhermemachado26
Copy link
Contributor

Description of the proposed changes

These changes add a new command to export a Label Studio project in a specific format.

label-studio export <project-id> <export-format>

  • The file generated will be saved inside settings.EXPORT_DIR folder.
  • All the project tasks will be included in the process.
  • Default values will be used to flags like INTERPOLATE_KEY_FRAMES and CONVERTER_DOWNLOAD_RESOURCES defined in the settings file.

Jira Ticket

https://heartex.atlassian.net/browse/DEV-3145

@guilhermemachado26 guilhermemachado26 self-assigned this Aug 15, 2022
@swarmia
Copy link

swarmia bot commented Aug 15, 2022

✅  Linked to Story DEV-3145 · Add command for export in opensource
➡️  Part of Epic DEV-2854 · Export issues - no epic

@github-actions github-actions bot added the feat label Aug 15, 2022
@codecov
Copy link

codecov bot commented Aug 15, 2022

Codecov Report

Merging #2824 (a4d0b15) into develop (c800f2b) will increase coverage by 0.10%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #2824      +/-   ##
===========================================
+ Coverage    77.04%   77.14%   +0.10%     
===========================================
  Files          144      144              
  Lines        10599    10643      +44     
===========================================
+ Hits          8166     8211      +45     
+ Misses        2433     2432       -1     
Impacted Files Coverage Δ
label_studio/label_studio/server.py 41.63% <0.00%> (-0.90%) ⬇️
label_studio/label_studio/core/utils/common.py 84.29% <0.00%> (-0.27%) ⬇️
label_studio/label_studio/data_export/mixins.py 88.02% <0.00%> (+0.06%) ⬆️
label_studio/label_studio/core/argparser.py 96.72% <0.00%> (+0.42%) ⬆️
label_studio/label_studio/data_export/models.py 91.20% <0.00%> (+10.98%) ⬆️
label_studio/label_studio/tasks/functions.py 66.10% <0.00%> (+27.39%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@makseq
Copy link
Member

makseq commented Aug 16, 2022

@guilhermemachado26
Let's extend documentation:
1 right after this section https://labelstud.io/guide/export.html#Export-timeout-in-Community-Edition (export timeout) - insert your new command
2 in export timeout section please write: "Also you can use a console command for export, (see more below)[link to your new section]

Copy link
Member

@makseq makseq left a comment

Choose a reason for hiding this comment

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

image
unfortunately this PR breaks LS completely. Tests are broken too.

@guilhermemachado26 guilhermemachado26 requested review from anithamuthu2022 and removed request for makseq August 18, 2022 16:49
@makseq makseq marked this pull request as ready for review August 22, 2022 22:06
@makseq makseq merged commit f997fc6 into develop Aug 25, 2022
@makseq makseq deleted the fb-dev-3145 branch August 25, 2022 09:33
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.

5 participants