Filter Instance records by Date updated
CSP Request Details
CSP Rejection Details
CSP Approved
Description
Environment
Potential Workaround
Attachments
- 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
defines
has to be done after
is cloned by
relates to
Checklist
hideTestRail: Results
Activity
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 @Sergiy Sergiyenko - 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
Sergiy Sergiyenko May 4, 2020 at 9:41 AM
Thank you for review, @Charlotte Whitt.
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 AMEdited
@Sergiy Sergiyenko - I took a look in the Bugfest environment, and here we have records looking like:
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.
@Sergiy Sergiyenko - 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.
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:
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
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:
Scenario
When following the general UX pattern
Then the date format is shown as ghost text; e.g. YYYY-MM-DD
Scenario
When entering the start date of the date range
Then the start date is entered in the "From" box
Scenario
When entering the end date of the date range
Then the end date is entered in the "To" box
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
Scenario
When clearing out the dates of the form
Then click on the round icon with a white "x"
Scenario
Ensure automated testing coverage for this new code is 80% plus and confirm with screenshot