Full repository exports #11521#11678
Merged
vbradnitski merged 8 commits intomasterfrom Jan 19, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for configurable batch size in repository export functionality, allowing users to control the number of nodes exported in each batch for better performance optimization.
Changes:
- Added
batchSizeparameter to export APIs (REST, JavaScript library, and core export service) - Modified export implementation to process nodes in batches using the specified batch size
- Refactored node export logic to use a query-based approach instead of recursive parent-child traversal
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| export_params_with_batch_size.json | Test resource with batch size parameter |
| ExportRunnableTaskTest.java | Added tests for batch size functionality |
| RepositoryResourceTest.java | Added test for REST endpoint with batch size |
| ExportRunnableTask.java | Added batch size field and builder method |
| ExportNodesRequestJson.java | Added batch size parameter to request model |
| RepositoryResource.java | Passes batch size to export task |
| ExportHandlerTest.java | Added test for JavaScript library batch size |
| export.ts | Added batch size to TypeScript interface and documentation |
| exportNodesWithBatchSize.js | Example showing batch size usage |
| ExportHandler.java | Added batch size setter method |
| NodeExporter.java | Core implementation of batched export logic |
| ExportServiceImpl.java | Passes batch size to NodeExporter |
| ExportNodesParamsTest.java | Tests for batch size parameter |
| ApplyVersionAttributesParams.java | Removed empty JavaDoc line |
| ExportNodesParams.java | Added batch size field with default value of 1000 |
…tNodesParams.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
# Conflicts: # modules/core/core-api/src/main/java/com/enonic/xp/node/ApplyVersionAttributesParams.java
rymsha
approved these changes
Jan 19, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11678 +/- ##
=========================================
Coverage 86.66% 86.66%
- Complexity 19714 19721 +7
=========================================
Files 2538 2538
Lines 66802 66835 +33
Branches 5363 5368 +5
=========================================
+ Hits 57894 57924 +30
Misses 6317 6317
- Partials 2591 2594 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.