Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35940

Unable to delete empty CCV

XMLWordPrintable

    • 2
    • False
    • Moderate
    • Artemis Sprint 162, Artemis Sprint 163
    • sat-artemis
    • Bug Fix
    • Hide
      .Empty CCVs can be deleted

      Before this update, users were unable to delete composite content views (CCVs) that did not contain any content views, if these CCVs were previously published and promoted. With this update, users can delete empty CCVs as expected.
      Show
      .Empty CCVs can be deleted Before this update, users were unable to delete composite content views (CCVs) that did not contain any content views, if these CCVs were previously published and promoted. With this update, users can delete empty CCVs as expected.
    • In Progress
    • To Do
    • Yes

      Description of problem:

      It is not possible to delete an empty CCV which was previously published and promoted. 

      How reproducible:

      Delete the CV from the CCV with: 

      hammer content-view remove --id $ID --destroy-content-view yes

      Delete the CCV (which is now empty)

       

      Is this issue a regression from an earlier version:

       

      Steps to Reproduce:

      1.

      2.

      3.

      Actual behavior:

      hammer content-view remove --id 65 --destroy-content-view yes
      Could not remove objects from content view:
        PG::NotNullViolation: ERROR:  null value in column "katello_content_view_version_id" of relation "katello_content_view_histories" violates not-null constraint
        DETAIL:  Failing row contains (3858, null, 7, e0c529b2-7c2e-4df2-89c6-203533b8ea28, admin, in progress, null, 2025-07-17 07:11:46.423636, 2025-07-17 07:11:46.423636, 3, null).

      [root@satellite rex]#

      Expected behavior:

      The CCV is deleted.

      Business Impact / Additional info:

      Found this: https://community.theforeman.org/t/cant-remove-content-view/38403
      But cannot be considered as an official solution. 

       

              sbible@redhat.com Sam Bible
              rhn-gps-gsigrisi Gianfranco Sigrisi (Inactive)
              Vladimír Sedmík Vladimír Sedmík
              Aneta Šteflová Petrová Aneta Šteflová Petrová
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: