Skip to content

Conversation

Kaushl2208
Copy link
Member

Description

This pull request updates the "Exclude Folders" functionality in the upload UI and backend logic to use a unified chips-based mechanism. Users can now add or remove folders to be excluded from scanning using a single chips input. The backend processes the list only if the "Ignore Configured Folders" checkbox is checked, and all folder entries are sanitized before being passed to the unpack agent.

Changes

  • upload.html.twig:

    • The chips UI and input for excluding folders are now combined into a single, compact flex container.
    • The input and chips are visually grouped, and the input does not stretch across the screen.
    • The "Ignore Configured Folders" label, chips container, and tooltip are aligned in a single row.
    • The "Folders to ignore for this upload" section was removed; only one unified input is used.
  • UploadPageBase.php:

    • The backend now checks if the "Ignore Configured Folders" checkbox (excludefolder) is checked.
    • If checked, it retrieves the list of folders from excludefolderSpecific, sanitizes them, and passes them as the -E argument to the unpack agent.
    • The logic for merging configured and user folders was removed; only the user-managed list from the chips UI is used.

How to test

  1. Go to upload page
  2. At point 6, a chips based UI with pre-cofigured folders loaded is there, User can add new or remove folders.
  3. Checkbox should be checked
  4. Select analysis
  5. Upload
  6. Check Browse page, mentioned folder should be ignored.

Screenshot:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants