ERM Comparisons: e-resources plugin is not filtering by Package when used for first time

Description

Overview:
When creating a new comparison report for the first time in an ERM comparisons app session the set of e-resources displayed in the e-resources plugin should be filtered to show "Packages" only. The filter is not being applied. But when the plugin is closed and then re-opened the filter is applied.

Steps to Reproduce:

  1. Open the ERM comparisons app

  2. Select "New"

  3. In the form enter a Name

  4. Select "Add package"

Expected Results:
The set of e-resources listed in the "Select e-resources" plugin should be filtered to display packages only.

Actual Results:
In the plugin "Select e-resource" the set of e-resources displayed includes books as well as packages.

Additional Information:
When the plug-in is closed and re-opened the package filter is applied correctly (books are filtered out). The bug only occurs the very first time the "Add package" option is used.

Closing the app and re-opening it will cause the bug to appear again.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Owen Stephens September 8, 2022 at 11:07 AM

Ethan Freestone June 27, 2022 at 10:29 AM

Effectively done on this branch:
https://github.com/folio-org/ui-plugin-find-eresource/pull/66

Requires https://folio-org.atlassian.net/browse/STSMACOM-678#icft=STSMACOM-678, which won't be in place until Nolana, and the code there may need final checks – that PR looks like it doesn't utilise the new boolean just quite yet, but the rest is done.

That PR also includes a full refactor to react-query, which will necessitate regression tests across the plugin

Jag Goraya June 27, 2022 at 10:12 AM

Done

Details

Assignee

Reporter

Components

Priority

Sprint

Development Team

Bienenvolk

Release

Nolana (R3 2022)

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created June 22, 2022 at 2:13 PM
Updated September 21, 2022 at 10:26 AM
Resolved September 15, 2022 at 9:01 AM
TestRail: Cases
TestRail: Runs