Actions
Bug #31406
closedAs a user I 'd like to export library content
Difficulty:
Triaged:
Yes
Description
`hammer content-export library --organization-id=100`
- API
- Investigate whether the proposed hammer workflow could be achieved via API (and to what extent) * Make destination server optional/nullable (model change) * If incremental the export action should fetch the correct export history (either choose the latest for a given destination server or if history-id is provided use that ) * if you cant find an export history error out * history-id & destination server are optional.
- Hammer endpoint should
- Take in the organization id and optionally destination server
- Create a content view if necessary with a name like `Export-Library-<destination-server-name>-view` or `Export-Library-view` if destination server is not provided.
- Remove all the yum repositories this view
- Add all the yum repositories in library to this view
- Publish the content view
- Call Export on the generated content view version, with the same destination server as provided
Actions