Skip to content

Conversation

@reckart
Copy link
Member

@reckart reckart commented Oct 1, 2024

What's in the PR

  • Added new method to export multiple layers as JSON
  • Handle link features properly in that method
  • Added tests

How to test manually

  • Try exporting and re-importing the layers

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

@reckart reckart force-pushed the feature/4699-Ability-to-export-all-layers-as-JSON branch 3 times, most recently from 85b1450 to 102b097 Compare March 8, 2025 09:26
@reckart reckart force-pushed the feature/4699-Ability-to-export-all-layers-as-JSON branch from 102b097 to 41c3558 Compare March 24, 2025 20:28
@reckart reckart force-pushed the feature/4699-Ability-to-export-all-layers-as-JSON branch from 41c3558 to 04e1930 Compare June 10, 2025 15:35
@reckart reckart force-pushed the feature/4699-Ability-to-export-all-layers-as-JSON branch from 04e1930 to 9b5d0cf Compare December 31, 2025 22:32
@reckart reckart added this to the 40.0 milestone Jan 1, 2026
@reckart reckart added this to Kanban Jan 1, 2026
@reckart reckart self-assigned this Jan 1, 2026
@github-project-automation github-project-automation bot moved this to 🔖 To do in Kanban Jan 1, 2026
@reckart reckart marked this pull request as ready for review January 1, 2026 11:47
@reckart reckart force-pushed the feature/4699-Ability-to-export-all-layers-as-JSON branch from 9b5d0cf to 045cc2d Compare January 1, 2026 11:48
@reckart reckart requested a review from Copilot January 1, 2026 11:48
Copy link

Copilot AI left a 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 exportAllLayersAsJson method that exports multiple layers with dependency resolution
  • Refactored existing exportLayerToJson to 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.

- Added new method to export multiple layers as JSON
- Handle link features properly in that method
- Added tests
@reckart reckart force-pushed the feature/4699-Ability-to-export-all-layers-as-JSON branch from 045cc2d to 89a819c Compare January 1, 2026 12:03
@reckart reckart merged commit b5d787b into main Jan 1, 2026
3 checks passed
@github-project-automation github-project-automation bot moved this from 🔖 To do to 🍹 Done in Kanban Jan 1, 2026
@reckart reckart deleted the feature/4699-Ability-to-export-all-layers-as-JSON branch January 1, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🍹 Done

Development

Successfully merging this pull request may close these issues.

2 participants