flexion / ef-cms

An Electronic Filing / Case Management System.
24 stars 10 forks source link

Reporting: Custom Case Inventory Report #9723

Closed cholly75 closed 1 year ago

cholly75 commented 2 years ago

As a court employee, so that I can understand our case data, I need to be able to run reports on cases in DAWSON using multiple criteria.

There are many situations in which the Court requests data around the case inventory in DAWSON that are ad hoc, one-time requests that cannot be satisfied using the current reports available in DAWSON. To begin facilitating self-service for these users and enable better visibility into Court data, we want to provide users with a way to query DAWSON's case inventory using a variety of criteria associated with the case.

Pre-Conditions

Acceptance Criteria

Notes

Tasks

Questions

Test Cases

Story Definition of Ready (Created on 9/26/21)

The following criteria must be met in order for the user story to be picked up by the Flexion development team. The user story must:

Process: Flexion developers and designers will test if the story meets acceptance criteria and test cases in Flexion dev and staging environments (“standard testing”). If additional acceptance criteria or testing scenarios are discovered while the story is in progress, a new story should be created, added to the backlog and prioritized by the product owner.

Definition of Done (Updated 5-19-22)

Product Owner

UX

Engineering

swongCO commented 1 year ago

UX Notes

Mockups:

9723 Mockup - default state.png

9723 Mockup.png

Full Mockup.png

Link to clickable prototype of mockup: https://www.figma.com/proto/DsiP6YBBn3rxCCwFWK8ZjG/USTC-%7C-Reports-%7C-Advanced-Case-Inventory-9723?page-id=93%3A1718&node-id=93%3A3763&viewport=-920%2C-514%2C0.43&scaling=min-zoom&starting-point-node-id=93%3A3763

Figma file, page "Concepts round 6": https://www.figma.com/file/DsiP6YBBn3rxCCwFWK8ZjG/USTC-%7C-Reports-%7C-Advanced-Case-Inventory-9723?node-id=121%3A2462&t=ptGYE0ViSB14lX8g-1

swongCO commented 1 year ago

Keeping the UX Needed tag until the outstanding question above has been addressed.

ttlenard commented 1 year ago

Test Cases

1) Court User clicks on the reports dropdown menu; Advanced Case Inventory Report is now available in the dropdown.

Expected Results:

2) Court User selects the option for Advanced Case Inventory Report; User is navigated to a new report page.

Expected Results:

3) User types in a date in an incorrect format; receives error message

Expected Results:

*Repeat this test by inputting other invalid date options (i.e., end date is before start date). You should receive appropriate validation error messages.

4) User types in dates in correct format; Leaves the default filing method set to All, clicks Run Report; Results list populates correctly.

Expected Results:

5) User types in dates and selects Electronic filing type; Clicks Run Report; Results list populates correctly

Expected Results:

6) User types in dates and selects Paper filing type; Clicks Run Report; Results list populates correctly

Expected Results:

7) User types in dates, selects All for filing type and selects a case type; Clicks Run Report; Results list populates correctly

Expected Results:

8) User types in dates, selects All for filing type and selects a case type; Selects a Case Status; Clicks Run Report; Results list populates correctly

Expected Results:

jimlerza commented 1 year ago

I currently provide a report of "petitions filed - paper vs electronic" each month by running the get-petition-counts script:

npx ts-node shared/admin-tools/elasticsearch/get-petition-counts.js 2023
swongCO commented 1 year ago

Updated UX notes after a convo with Jason and Zach. Changes include adding pagination, re-ordering the optional input fields and keeping the primary btn enabled.

@cholly75 @ttlenard

zachrog commented 1 year ago

In order to not allow end dates in the future we will not be adding new validation rules but constraining the picker to disable any dates in the future.

jasonfu9966 commented 1 year ago

We are aware of and working on a bug where the app crashes when navigating to high-numbered pages. We have identified the cause of the problem and will be fixing it before completing.

swongCO commented 1 year ago

Discussion today with Chris, Jim and mob on how to handle ES constraints of displaying more than 20,000 results. Decision is to modify the pagination component to only include the current page and "Previous" and/or "Next". Also need to display the pagination below the table.

9723 Mockup - new pagination.png

jasonfu9966 commented 1 year ago

This story will require a migration to expose some fields on cases that are not currently queryable.

jasonfu9966 commented 1 year ago

Implementation of the Consolidated Icon was not included in this story but will be picked up in the next one.

cholly75 commented 1 year ago

Doing a search w/ 918 results and paging through the results list (search cases from 6/1/2021 - 6/4/2021, no other filters)

Pages 5 and 10 are blank, all other surrounding pages contain expected results:

image.png

image.png

Additional Info:

Modifying the query to only select paper filings in this range also produces these results, but on different pages (presumably due to the new result count):

image.png

image.png

Modiying the query in that range for only electronic results does not produce this behavior.

CC: @jasonfu9966 @zRogersFlexion

cholly75 commented 1 year ago

All other testing passes! Sending this back to In Progress to address/discover root cause of issue mentioned above.

jasonfu9966 commented 1 year ago

re: the last message with the pagination bug:

we have identified the issue and have solutioned a fix for it, and are working on updating tests before redeploying. great catch!

zachrog commented 1 year ago

Fixed the issue which was caused by paginating through results with the exact same date of creation. Fix has been deployed to test.