Skip to content

feat: add export-content command with async job handling#8

Merged
patrick204nqh merged 1 commit into
mainfrom
feat/export-content
Feb 10, 2026
Merged

feat: add export-content command with async job handling#8
patrick204nqh merged 1 commit into
mainfrom
feat/export-content

Conversation

@patrick204nqh
Copy link
Copy Markdown
Owner

Summary

  • Add export-content --content-id command for exporting content library items as JSON
  • Handles async job lifecycle transparently: POST /v2/content/{id}/export → poll status → fetch result
  • 120s timeout with 2s polling interval

Test plan

  • All existing tests pass (138 total)
  • Full async lifecycle test (start → poll → fetch)
  • Polling test with multiple status transitions
  • Error handling for failed exports and network failures

Add content export via the async v2 API:
  POST /v2/content/{id}/export → poll status → fetch result

The command handles the full async job lifecycle transparently,
polling until the export completes or times out (120s default).

Usage: sumo-query export-content --content-id <id>

Includes tests for the complete lifecycle, polling, and error cases.
@patrick204nqh patrick204nqh merged commit fd10410 into main Feb 10, 2026
0 of 2 checks passed
@patrick204nqh patrick204nqh deleted the feat/export-content branch February 10, 2026 09:01
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.

1 participant