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

[Policy Wizard / Violations] Add RENAME to File Operation options and rename Delete to Delete (unlink)

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • UI
    • Rox Sprint 4.11C

      Overview:
      Two label changes for file operations: (1) Add RENAME as a new file operation option in the policy criteria dropdown, and (2) rename "Delete" to "Delete (unlink)" for clarity in both the policy criteria and violation display.

      Implementation Details:
      Add ['RENAME', 'Rename'] to the fileOperationOptions array. Change ['UNLINK', 'Delete'] to ['UNLINK', 'Delete (unlink)']. Update the violation card label mapping in FileAccessCardContent.tsx.

      Acceptance Criteria:

      • RENAME appears as an option in the File Operation dropdown
      • "Delete" displays as "Delete (unlink)" in policy criteria dropdown
      • "Delete" displays as "Delete (unlink)" in violation FileAccessCard
      • RENAME violations render correctly in the FileAccessCard (already handled)

      Files to Update:
      1. apps/platform/src/Containers/Policies/Wizard/Step3/policyCriteriaDescriptors.tsx:132-138 - fileOperationOptions
      2. apps/platform/src/Containers/Violations/Details/FileAccessCardContent.tsx:11 - violation display label

      Related Tickets:

      • ROX-33001 - Add rename file operation (backend)
      • ROX-33073 - Rename file operation Delete to Delete (unlink) (backend)

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

                Created:
                Updated:
                Resolved: