Skip to content

Add single export method to service.#937

Merged
KevinJump merged 3 commits intov17/mainfrom
v17/single-export
Apr 8, 2026
Merged

Add single export method to service.#937
KevinJump merged 3 commits intov17/mainfrom
v17/single-export

Conversation

@KevinJump
Copy link
Copy Markdown
Owner

Adds a ExportSingleItem method to the service so you can just export one thing if you want to.

to used in the main export flow but here to provide a quick way to do it.

https://forum.umbraco.com/t/usync-api-for-a-single-item/7802/7

Copy link
Copy Markdown
Contributor

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

Adds a new service-level API to export a single item (by Udi) using the appropriate sync handler, intended as a helper for consumers who don’t want to run a full export flow.

Changes:

  • Add ExportSingleItem(Udi udi, string[] folders, SyncHandlerOptions options) to ISyncService.
  • Implement ExportSingleItem in SyncService by resolving a handler via entity type and delegating to ExportAsync.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
uSync.BackOffice/Services/SyncService_Single.cs Implements the new single-item export method by resolving a handler from the UDI entity type and exporting via the handler.
uSync.BackOffice/Services/ISyncService.cs Extends the service interface with the new single-item export method signature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

KevinJump and others added 2 commits April 8, 2026 09:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@KevinJump KevinJump merged commit 695a28c into v17/main Apr 8, 2026
4 checks passed
@KevinJump KevinJump deleted the v17/single-export branch April 8, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants