[UIIN-1440] Filtering for Instance format fails Created: 19/Feb/21  Updated: 03/Nov/23  Resolved: 01/Mar/21

Status: Closed
Project: ui-inventory
Components: None
Affects versions: None
Fix versions: 6.0.0

Type: Bug Priority: TBD
Reporter: Theodor Tolstoy (One-Group.se) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Duplicate
duplicates UIIN-1423 Instance segment. Filtering on Format... Closed
Sprint:
Development Team: Other dev
Affected Institution:
OTHER

 Description   

Overview:

Front-end searches

instanceFormatIds=="5cb91d15-96b1-4b8a-bf60-ec310538da66"

where it should search

instanceFormatIds="5cb91d15-96b1-4b8a-bf60-ec310538da66"

Steps to Reproduce:

  1. Log into some Honeysuckle FOLIO environment, for example https://folio-snapshot.dev.folio.org/inventory?filters=format.5cb91d15-96b1-4b8a-bf60-ec310538da66&query=water&sort=title or https://folio-testing.dev.folio.org/inventory?filters=format.5cb91d15-96b1-4b8a-bf60-ec310538da66&query=water&sort=title
  2. Go to inventory
  3. Enter water into the instance keyword search box
  4. Open the "Format" drop down menu and select "audio – audio disc"
  5. Press "Search"

Expected Results:

The sample instance record with title "Transparent water" is found.

Actual Results:

No record is found.

Additional Information:
Workaround: Use "Query Search" with a CQL where == is replaced by =

instanceFormatIds = "5cb91d15-96b1-4b8a-bf60-ec310538da66"

This finds the records.

To do:

The "format" drop down menu should generate a CQL query with =, not ==.



 Comments   
Comment by Julian Ladisch [ 24/Feb/21 ]

Cannot reproduce.

This is what I do:

Open https://folio-testing.dev.folio.org or https://folio-snapshot.dev.folio.org

The sample data contains the "Transparent water" record with this property:

"instanceFormatIds" : [ "5cb91d15-96b1-4b8a-bf60-ec310538da66" ]

Go to inventory instance search, select "Query search" and enter

instanceFormatIds = "5cb91d15-96b1-4b8a-bf60-ec310538da66"

After pressing enter the "Transparent water" record is found.

Comment by Julian Ladisch [ 24/Feb/21 ]

https://bugfest-honeysuckle.folio.ebsco.com/inventory?qindex=querySearch&query=instanceFormatIds%20%3D%20%22%22b1d001a3-57ae-4e7c-aa6e-066d764a5fe7%22

finds more than 100 records when searching instanceFormatIds = "b1d001a3-57ae-4e7c-aa6e-066d764a5fe7"

Comment by Theodor Tolstoy (One-Group.se) [ 24/Feb/21 ]

Julian Ladisch The query search is not the issue. The Filtering in the UI is.

Comment by Theodor Tolstoy (One-Group.se) [ 24/Feb/21 ]

If you filter for formats like "unmediated – volume" in bugfest you should get data back, but you are not. Or are you?

This is the resulting URL in bugfest
https://bugfest-honeysuckle.folio.ebsco.com/inventory?filters=format.b1d001a3-57ae-4e7c-aa6e-066d764a5fe7&qindex=querySearch 

And this is the failing call to OKAPI:

  1. https://okapi-bugfest-honeysuckle.folio.ebsco.com/inventory/instances?limit=100&query=%28instanceFormatIds%3D%3D%22b1d001a3-57ae-4e7c-aa6e-066d764a5fe7%22%29%20sortby%20title

Comment by Theodor Tolstoy (One-Group.se) [ 24/Feb/21 ]

Same for Snapshot: Filtering for the format present in your Transparent water example renders nothing:

URL: https://folio-snapshot.dev.folio.org/inventory?filters=format.5cb91d15-96b1-4b8a-bf60-ec310538da66&sort=title
Failing OKAPI Call: 

  1. Request URL:
    https://folio-snapshot-okapi.dev.folio.org/inventory/instances?limit=100&query=%28instanceFormatIds%3D%3D%225cb91d15-96b1-4b8a-bf60-ec310538da66%22%29%20sortby%20title

Comment by Theodor Tolstoy (One-Group.se) [ 24/Feb/21 ]

In Snapshot, the OKAPI call does not time out. Not sure if that is because of the amount of data or something else

Comment by Julian Ladisch [ 01/Mar/21 ]

Thanks, I've changed the description and the project.

Comment by Charlotte Whitt [ 01/Mar/21 ]

Hi Theodor Tolstoy (One-Group.se) and Julian Ladisch - this bug ticket is already filed - please see: UIIN-1423 Closed . And work is In code review. 

I'll close this ticket as duplicate. 

Comment by Julian Ladisch [ 02/Mar/21 ]

Reopening because there is no "Issue links" "duplicates" entry that links to the issue this duplicates.

Generated at Thu Feb 08 22:21:30 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.