Hammer CLI CSV: Issueshttps://projects.theforeman.org/https://projects.theforeman.org/favicon.ico?16970236342017-06-06T14:55:12ZForeman
Redmine Bug #19945 (New): Consider matching records on import using label instead of namehttps://projects.theforeman.org/issues/199452017-06-06T14:55:12ZDavid Davisdaviddavis@redhat.com
<p>Consider the following scenario:</p>
<p>1. I export a content view to csv<br />2. I import that record into another instance<br />3. I change the content view name in the original instance<br />4. I do another import into my other instance.</p>
<p>This'll create a new record in my second instance instead of updating the existing one. With labels being immutable, the above scenario would work if we were using labels during import.</p>
<p>Not sure if this is a feature or a bug.</p> Bug #19722 (New): Content view filter export/import does not support archhttps://projects.theforeman.org/issues/197222017-05-31T10:36:36ZDavid Davisdaviddavis@redhat.com
<p>The architecture field seems to be missing.</p> Feature #18097 (New): As a user, I want to name :export: config sections for convenient use on th...https://projects.theforeman.org/issues/180972017-01-16T12:34:43ZThomas McKaythomasmckay@redhat.com
<p>For example, I have a custom export defined for content-hosts</p>
<pre>
:csv:
:enable_module: true
:columns:
:content-hosts:
:define:
- :name: Subscription Status
:json:
- subscription_status_label
- :name: Last Checkin
:json:
- subscription_facet_attributes
- last_checkin
:export:
- Name
- Organization
- Subscription Status
- Last Checkin
</pre>
<p>Currently the above config means that --export will always export just those four columns.</p>
<p>Instead, let me add a :name: to the :export: section that may be referred to. Something like this if I had included ":name: substatus" in the conf</p>
<p>hammer csv content-hosts --export --export-name substatus</p> Bug #17817 (New): content-hosts import should honor --search and only process the matched hostshttps://projects.theforeman.org/issues/178172016-12-21T08:54:33ZThomas McKaythomasmckay@redhat.com
<p>Using --search during import should only process the matching hosts.</p>
<p>One problem, though, would be the processing of hypervisor and guests which occurs at the end of the import.</p> Bug #17716 (New): content-hosts - skip setting values for columns that are not specifiedhttps://projects.theforeman.org/issues/177162016-12-16T12:06:22ZThomas McKaythomasmckay@redhat.com
<p>For example, if no columns are present that require the setting of facts, do not try to update. If Subscriptions column not present, don't modify subscriptions.</p> Bug #17693 (New): content-hosts --help missing description for SUBS_GUEST columnhttps://projects.theforeman.org/issues/176932016-12-15T14:39:25ZThomas McKaythomasmckay@redhat.com
<p>The --help is missing description of SUBS_GUEST. Another case where a more robust column definition would be better; too many manual places in the code.</p> Bug #17684 (New): content-hosts non-itemized export/import missing subscription parity w/ --itemi...https://projects.theforeman.org/issues/176842016-12-15T07:16:26ZThomas McKaythomasmckay@redhat.com
<p>The all-in-one subscription export/import default mode is not capable of the same features as the itemized method. Specifically, all the columns used for --itemized-subscriptions need to be represented in the all-in-one data in order to handle hypervisor and guest subscriptions properly. Once the fields are all represented then the code can be refactored to a single implementation.</p> Bug #17645 (New): add a --import just because it's natural to type it after using --exporthttps://projects.theforeman.org/issues/176452016-12-12T16:09:50ZThomas McKaythomasmckay@redhat.com
<p>The default is to import the specified --file, however it is natural for user to think that --import is an option to use. Add that option (make it conflict with --export) but no need to actually check it since code should always "if !--export, then import"</p> Bug #17551 (New): change content-hosts columns --help output to use new help extensionshttps://projects.theforeman.org/issues/175512016-12-01T10:51:10ZThomas McKaythomasmckay@redhat.com
<p><a class="external" href="https://github.com/theforeman/hammer-cli-foreman/pull/263/files#diff-d97db2a6b7f5e45c90b2311d60668dc9R5">https://github.com/theforeman/hammer-cli-foreman/pull/263/files#diff-d97db2a6b7f5e45c90b2311d60668dc9R5</a></p>
<p>The ability to add extended command info was added and the column help for content-hosts should leverage that rather than trying to just output more strings.</p>
<p>May also be worth changing the way columns are defined to be more structured so that the help framework can be shared between commands. At the moment with the columns simply being variables rather than a list or hash or something the help is very manual process.</p> Bug #16672 (New): column to disable console passwordshttps://projects.theforeman.org/issues/166722016-09-23T10:19:26ZThomas McKaythomasmckay@redhat.com
<p>Need a column to set console passwords toggle</p> Bug #16234 (New): content hosts import does not populate host collectionshttps://projects.theforeman.org/issues/162342016-08-22T18:36:42ZThomas McKaythomasmckay@redhat.com
<p>The API for adding host collections to imported content hosts has changed and no longer works. Needs to support export Sat-6.1, import/export Sat-6.2, import/export katello latest.</p> Bug #15937 (New): add auto-attach column to content-hostshttps://projects.theforeman.org/issues/159372016-08-01T13:22:12ZThomas McKaythomasmckay@redhat.comBug #15747 (New): add column for download policyhttps://projects.theforeman.org/issues/157472016-07-19T14:44:08ZThomas McKaythomasmckay@redhat.com
<p>The download policy should be reflected in the export/import of repositories.</p> Bug #15587 (New): convert Sat-5 export format to hammer csv input formathttps://projects.theforeman.org/issues/155872016-07-06T08:59:00ZThomas McKaythomasmckay@redhat.com
<p>The 'hammer import' command takes in csv from a Sat-5 export. The intention is to replace the import command with the appropriate 'hammer csv' commands, which will be supported both upstream and downstream.</p> Bug #15106 (New): arch and release not calculated correctly on subscriptions exporthttps://projects.theforeman.org/issues/151062016-05-20T04:45:19ZThomas McKaythomasmckay@redhat.com
<p>Red Hat OpenShift Enterprise 3.1 (RPMs)<br />Red Hat Enterprise Linux 7 Server (RPMs)</p>
<p>Perhaps there is a field in json to use instead of trying to parse the content set name</p>