Filter Instance records by Date updated

CSP Request Details

None

CSP Rejection Details

None

CSP Approved

None

Description

Purpose: The Instance record Date updated value - date and time stamp - is set in the instance record by the metadata component (metadata.updateddate element). The filter for Date updated is to provide filter on a date range. The implementation will be reusing the Date range component developed, and implemented in the Orders app, the segment for Order lines - Date created.

Scenarios:

  1. Scenario

    • Login to FOLIO Snapshot, go to Inventory

    • When the Item segment is selected

    • Then filter for Date updated is listed in the order according to https://folio-org.atlassian.net/browse/UIIN-759#icft=UIIN-759 (after: Date created, and before Statistical code). The Date updated filter is displayed collapsed by default

  2. Scenario

    • When click on the little caret

    • Then the filter will be unfolded and two boxes where to enter the date range are being display as in the UX mock up:

  3. Scenario

    • When following the general UX pattern

    • Then the date format is shown as ghost text; e.g. YYYY-MM-DD

  4. Scenario

    • When entering the start date of the date range

    • Then the start date is entered in the "From" box

  5. Scenario

    • When entering the end date of the date range

    • Then the end date is entered in the "To" box

  6. Scenario

    • When both dates have been entered

    • Then click on the Apply button. The button has turned blue and the search is performed on the date range for the Date updated which is a value set in the system by the Metadata component. The search is performed from e.g. 2019-01-01 to 2019-01-31 both days included

  7. Scenario

    • When clearing out the dates of the form

    • Then click on the round icon with a white "x"

  8. Scenario

    • Ensure automated testing coverage for this new code is 80% plus and confirm with screenshot

Environment

None

Potential Workaround

None

Attachments

9
  • 04 May 2020, 09:41 AM
  • 04 May 2020, 09:23 AM
  • 04 May 2020, 09:07 AM
  • 04 May 2020, 09:06 AM
  • 10 Oct 2019, 07:03 AM
  • 10 Oct 2019, 07:03 AM
  • 10 Oct 2019, 06:46 AM
  • 10 Oct 2019, 06:46 AM
  • 10 Oct 2019, 06:46 AM

Checklist

hide

TestRail: Results

Activity

Show:

Cate Boerema June 17, 2020 at 9:10 AM

Removing "ui-only" label, as we now have a policy of adding indexes for all new search and filters.

Charlotte Whitt May 4, 2020 at 12:20 PM

Sounds good - then I close the ticket, as done.
I was able to verify the Date created filter has following URL https://folio-snapshot.aws.indexdata.com/inventory/view?filters=createdDate.2020-05-03%3A2020-05-05&segment=instances thumbs up

Sergiy Sergiyenko May 4, 2020 at 9:41 AM

Thank you for review, .

I think the cause is the same as in UIIN-788 - format of metadata.
Comment to UIIN-788.

Charlotte Whitt May 4, 2020 at 9:24 AM
Edited

- I took a look in the Bugfest environment, and here we have records looking like:

https://bugfest.folio.ebsco.com/inventory/view/64cc438d-f2a2-4ff8-94ed-5d4d55b2cb85?qindex=querySearch&query=indexTitle%20%3D%20water&sort=Title

So the problem re. verifying this story, might have to do with the way we load sample data into FOLIO Snapshot.

Charlotte Whitt May 4, 2020 at 9:07 AM

Manual test in FOLIO Snapshot version @folio/inventory 2.0.1000881, using Chrome.

- In the FOLIO Snapshot I have only updated one record (https://folio-snapshot.aws.indexdata.com/inventory/view/5bf370e0-8cca-4d9c-82e4-5170ab2a0a39?query=semantic%20web&segment=instances).

But if I search on Date updated 2020-05-03 - 2020-05-04 (https://folio-snapshot.aws.indexdata.com/inventory/view?filters=updatedDate.2020-05-03%3A2020-05-05&segment=instances) then I get all sample records (38 records found)

And I get the same result as if I used the Date created filter (https://folio-snapshot.aws.indexdata.com/inventory/view?filters=createdDate.2020-05-03%3A2020-05-05&segment=instances).

I'll put this back In progress.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Prokopovych

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 10, 2019 at 6:46 AM
Updated January 17, 2022 at 5:10 PM
Resolved May 4, 2020 at 12:21 PM
TestRail: Cases
TestRail: Runs

Flag notifications