-
Notifications
You must be signed in to change notification settings - Fork 165
#4699 - Ability to export all layers as json #5076
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
#4699 - Ability to export all layers as json #5076
Conversation
85b1450 to
102b097
Compare
102b097 to
41c3558
Compare
41c3558 to
04e1930
Compare
04e1930 to
9b5d0cf
Compare
9b5d0cf to
045cc2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the ability to export all annotation layers in a project as a single JSON file, extending the existing single-layer JSON export functionality. The implementation handles layer dependencies (attach layers and link features) to ensure all referenced layers are included in the export.
- Added a new
exportAllLayersAsJsonmethod that exports multiple layers with dependency resolution - Refactored existing
exportLayerToJsonto use the new multi-layer export method - Added comprehensive test coverage for various export scenarios including dependencies, deduplication, and edge cases
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| ProjectLayersPanel.utf8.properties | Added label for the new "export all layers as JSON" option |
| ProjectLayersPanel.html | Added UI menu item for exporting all layers as JSON |
| LayerDetailForm.java | Added handler method for the new export all layers action |
| LayerImportExportUtilsTest.java | New test file with comprehensive coverage of multi-layer export functionality |
| LayerImportExportUtils.java | Core implementation of multi-layer export with dependency resolution |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...ion-export/src/test/java/de/tudarmstadt/ukp/inception/export/LayerImportExportUtilsTest.java
Outdated
Show resolved
Hide resolved
...ion-export/src/test/java/de/tudarmstadt/ukp/inception/export/LayerImportExportUtilsTest.java
Outdated
Show resolved
Hide resolved
...ion-export/src/test/java/de/tudarmstadt/ukp/inception/export/LayerImportExportUtilsTest.java
Outdated
Show resolved
Hide resolved
...ception-export/src/main/java/de/tudarmstadt/ukp/inception/export/LayerImportExportUtils.java
Show resolved
Hide resolved
- Added new method to export multiple layers as JSON - Handle link features properly in that method - Added tests
045cc2d to
89a819c
Compare
What's in the PR
How to test manually
Automatic testing
Documentation