bcgov / cas-ggircs

Climate Action Secretariat's Greenhouse Gas Industrial Reporting and Control System
Apache License 2.0
3 stars 4 forks source link

EIO emisisons for the 2022 reporting year are not being parsed by the ETL [8] #531

Closed dleard closed 8 months ago

dleard commented 9 months ago

Describe the Bug:

Due to a swrs schema change for the 2022 reporting year, emissions from EIO facitlities are not being parsed into the Emission table & therefore cannot be queried in metabase.

2021 reports had an xml structure of: \ -- \ ---- \ ------ \

The 2022 reports for EIOs now have a structure of: \ -- \ ---- \ ------ \ ------ \

This structure change is why the emissions from EIOs are not being parsed. The ETL looks for the \ tag when parsing the XML reports into rows in the Emission table. It does not know about the new \ tag.

CAS has expressed a desire to have the emissions from the new schema parsed in the same place (into the emission table rather than separated).

How to fix it: We did something similar last year when adding emissions from R3 reports

Probability (how likely the bug is to happen, scored from 1-5): 5

Effect (how bad the bug is when it does happen, scored from 1-5): 3

Steps to reproduce the behaviour: