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

Add EXTEXEM-8 TEE check #6126

Open annalbrecht opened 8 months ago

annalbrecht commented 8 months ago

Overview

This ticket is an offshoot of #5786 which identified that screen checks were not implemented for TEE and QCE. The decision was made to only implement the screen checks that were not also implemented as report checks. For TEE, EXTEXEM-8, which has result A, is the only screen check that is not also a report check. So this ticket was created to implement EXTEXEM-8 as a screen (and import) check.

Original Description

Originally reported in #5786. TEE screen checking needs to be added. Requirements needed.

Acceptance Criteria:

annalbrecht commented 8 months ago

Need the list of screen checks that should be running in 2.0. Then check that the list of screen checks is running.

lgiannini1 commented 7 months ago

List of TEE screen checks from 1.0:

List of TEE screen checks currently in 2.0:

Image

annalbrecht commented 7 months ago

Lane: check to make sure these issues would be caught by an evaluation.

QCE Check Specs: https://ecmps.camdsupport.com/documents/ECMPS%20QA%20and%20Cert%20Check%20Specifications%202022%20Q1.pdf

lgiannini1 commented 7 months ago

Was able to reproduce the following for the few evaluations that I did:

annalbrecht commented 7 months ago

The only change for this ticket: EXTEXEM-8: Need a check to stop people from manually adding a duplicate record in the TEE module.

djw4erg commented 5 months ago

Potential New Ticket

In ECMPS 1.0, an import of TEE can introduce duplicates because import checks do not exist, and ECMPS 2.0 does not appear to have import checks that would produce duplicates.

I believe that we should produce a ticket to check for duplicates, but that the ticket does not need to be implemented before the release.

Ticket created as #6308

yonatan-dp commented 4 months ago

I am able to generate the EXTEXEM-8 error code both for screen and import without making any code changes.

Please see screenshots below.

Tee Duplicate Error -Import Tee Duplicate Error - Screen

There is a slight difference in how duplicates are handled for screen vs import.

For screen entries, the code checks if a duplicate exists in the database.

For imports, the code checks if duplicate TEE's exist in the import file.

This logic also applies to 5786.

lgiannini1 commented 4 months ago

Verified on dev. Was able to generate EXTEXEM-8-A screen check by attempting to add a duplicate 2019 Q1 TEE record for ORIS 3, CS0AAN and importing the attached QA file which contains duplicate TEE records. Also verified that new TEE records can still be added through the UI and through file import.

QA & Certification _ Export - Barry (10).json

ntknguyen commented 3 months ago

Verified receiving screen check on duplicate TEE record and adding new TEE record from Add option, but still getting screen check [EXTEXEM-8-A] on importing new TEE record using the attachment json.

QA.Certification._.Export.-.Barry.CS0AAN.json

yonatan-dp commented 3 months ago

@ntknguyen , I looked at your attached JSON file and it has duplicate TEE records. The two TEEs in the JSON are exact duplicates. Can you change some of the values for one of the records and try your import again? Change the Extension/ Exemption Code, Year, Quarter, Monitoring System ID, Component ID, or Fuel Code for one of the records so that they are not duplicates and try again.

ntknguyen commented 3 months ago

I verified this issue is fixed.