Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-32445

[Base Images Mgmt] Add UI support for updating base image tag pattern

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.10.0
    • None
    • UI
    • Rox Sprint 4.10F, Rox Sprint 4.10G

      Overview:

      Implement UI functionality to allow users to update the tag pattern of an existing base image reference. Backend adds a new PUT /v2/baseimages/{id} API in PR #18151 (ROX-32108).

      Backend API:

      • Endpoint: PUT /v2/baseimages/{id}
      • Method: UpdateBaseImageTagPattern
      • Request payload:
         
         
        {   
            id: string;                      // Base image reference ID           
            base_image_tag_pattern: string;  // New tag pattern
        }

         
         
         

      • Response: Empty (success/error)

      Acceptance Criteria:

      • [ ] Add edit functionality to existing BaseImagesTable component (ROX-31797)
      • [ ] Create inline edit or modal for updating tag pattern only (repo path cannot be changed)
      • [ ] Call PUT /v2/baseimages/{id} with new tag pattern
      • [ ] Display success/error feedback to user
      • [ ] Refresh table after successful update
      • [ ] Validate tag pattern format client-side before submission

      Related Tickets:

      • ROX-32108 - Backend PR adding the API
      • ROX-31797 - BaseImagesTable (where edit would be triggered from)
      • ROX-31796 - BaseImagesForm (can potentially reuse validation logic)

      Notes:

      • Only the tag pattern is editable; repository path is immutable after creation
      • Backend enforces that repo path must not include tag (tag goes in tag_pattern field)

              schaudhr Saif Chaudhry
              schaudhr Saif Chaudhry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: