Open ibarra-michelle opened 3 months ago
Document the requirements and then implement them.
1. Version Attribute Requirement
Acceptance Criteria for JSON Schema Import
@yonatan-dp should an AC to update the "lastUpdated" schema field be added to the list of ACs you provided? Thx
@ibarra-michelle, I have updated the acceptance criteria to include that.
In addition to adding this version check to the Monitoring Plan import process, the check should be added to the import processes of the Emissions and QA modules.
@usmanahmederg @maxdiebold-erg please revert the merge of the associated PRs from the develop branches. We are not yet ready to merge Sprint 11 PRs into develop.
@usmanahmederg you will need to recreate the original PRs so the necessary changes can be merged into develop at the appropriate time.
Not sure if this issue is related to this ticket, but the following errors are returned when trying to import QA data from historical. This error was returned for ORIS 147, K-7 and ORIS 3, 1, 2, CS0AAN for all quarters I tried (2023 Q1 through 2023 Q3)
Not sure if this issue is related to this ticket, but the following errors are returned when trying to import QA data from historical. This error was returned for ORIS 147, K-7 and ORIS 3, 1, 2, CS0AAN for all quarters I tried (2023 Q1 through 2023 Q3)
Yes. These errors indicate that the logic used to generate the JSON from historical also needs to be updated.
Files (QA test, emissions) are able to be imported from historical successfully . All exported JSONs show version number, and files (MP, QA test, cert event, TEE, emissions) with version number omitted cannot be imported.
(As a side note, only MP shows one error message, whereas the other modules also state, "Version number must be a string.")
Verified in test for various facilities (ORIS 470 Config 2; Silverhawk 55841 Config A01; ORIS 612 Config FMCT2A):
MP
QA QA - Test Data -Removed version
QA- Cert Event
QA -TEE
Emissions
Description
When utilizing a json file that does not include a version data element (e.g. "version": "1.0.0",), then going through a series of steps adding, importing, deleting, and importing the file again, ECMPS 2.0 will still display the deleted component data in the UI, even though the latest imported file does not include component data. When JSON files with the version number that have componentID data deleted and then the file is imported, ECMPS 2.0 does not appear to display the delete componentID data (i.e., UI display matches the file data as expected).
Steps to reproduce the issue
file-2-MP Export - Comanche (470), undefined (6-24-2024).json file-1-MP Export - Comanche (470), undefined (6-24-2024).json
Acceptance Criteria