archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: "not" search in Archival Storage tab doesn't work #987

Open sallain opened 4 years ago

sallain commented 4 years ago

Expected behaviour In the Archival Storage tab, you can build complex queries by selecting the "Add new" button to bring up a second row of search boxes. There are three Boolean operators - "and", "or", and "not". The "and" and "or" options seem to be working fine, but if you use the "not" option the search breaks.

(Just a note - it's possible that I am interpreting the Boolean logic incorrectly, it's been a while.)

Current behaviour Adding a "not" line to the search results in the search just kind of... breaking.

Steps to reproduce

  1. Search for something like the AIP UUID.

image

  1. Click on "Add new" and select "not" from the operators dropdown, then search for some parameter that appears in the search results from Step 1 that you can exclude - e.g. I want all of the items from the AIP with the above UUID but NOT .png files.

image

There was 1 PNG file in the search results in Step 1, so the results in Step 2 should have been 10 entries (all of the files in the AIP except for the PNG.)

Your environment (version of Archivematica, operating system, other relevant details) AM 1.10.1


For Artefactual use:

Before you close this issue, you must check off the following:

jraddaoui commented 4 years ago

Probably related to https://github.com/archivematica/Issues/issues/404 (point 10).