US-EPA-CAMD / easey-ui

Project Management repo for EPA Clean Air Markets Division (CAMD) Business Suite of applications
MIT License
0 stars 0 forks source link

Bug: Narrow all emissions filters based on time period #2227

Closed JanellC closed 2 years ago

JanellC commented 2 years ago

Test Case

Test Case: TC420

Actual Results

  1. The custom data download allows a user to select and apply filter criteria for items greyed out from the check list. Users can apply filter criteria for greyed out items by selecting the select all check box. image.png

  2. For facility/ unit attributes the UI is saying that data is not available for 1995 but the API returns data

image.png https://easey-dev.app.cloud.gov/api/facility-mgmt/facilities/attributes?year=1995

Requirements

User Story

As a custom data download user I want the all the emissions filters to narrow based on time period so that I can avoid producing a query with no results

Acceptance Criteria

Given that a user has selected an emissions subtype When the functionality is displayed Then the user is required to apply filter criteria for time period first AND the optional filters are greyed out until time period criteria is applied

Given that a user has selected an emissions subtype on the custom data download When filter criteria is applied for time period Then the system displays a spinner until the filter logic is engaged

Given that the filter logic is engaged When filter panel functionality is displayed Then non applicable selections are removed from the combo box AND grayed out from the check list

Given that a user has selected a time period where data is not available (dev environment) When the time period criteria is applied Then the system will display the following message: "Data is not available for the selected time period. Enter a new time period" And require the user to apply a new time period

Given that the filter logic is engaged When new filter criteria is applied for year Then the system will display the warning message: Changing the year will clear out previously selected criteria. Do you want to proceed? AND if the user choses to proceed then all previously selected criteria are cleared AND the time period is updated

Given that the filter logic is engaged When new filter criteria is applied for year Then the system will display the warning message: Changing the year will clear out previously selected criteria. Do you want to proceed? AND if the user choses to cancel then all previously selected criteria are maintained

Given that the filter logic is engaged When new filter criteria is applied for the month, day, or quarter Then all previously selected criteria are maintained

Given that the filter logic is engaged When the time period filter tag is cleared Then the system will display the warning message: Removing time period will clear out previously selected criteria. Do you want to proceed? AND if the user choses to proceed then all previously selected criteria are cleared and all the optional filters are greyed out until time period criteria is applied

JanellC commented 2 years ago

https://epacamd.testquality.com defect D82.