ZeroTwentyFifty / zero_twenty_fifty

Open Source Product Carbon Footprint exchange platform that is PACT Conformant.
https://www.zerotwentyfifty.com
4 stars 3 forks source link

carbon footprint scope fields are out of alignment, not populating correctly #26

Open JohnVonNeumann opened 8 months ago

JohnVonNeumann commented 8 months ago

Fields that are related to this part of the spec, https://wbcsd.github.io/tr/2023/data-exchange-protocol-20231207/#dt-carbonfootprint-scope, are not implemented correctly. The schema needs to be adjusted to include them as possible options, according to the requirements docs, as well as adjustments made on the database end as well. along with then ensuring that None fields are not rendered by the api, and example of this can be seen in the code somewhere.

An interesting thought here is that I think this is a good issue to start the introduction of the business domain model layer, as this issue of deciding whether something is global, regional etc, does not belong anywhere else, and it's better to represent such core logic without it being tightly bound to a technology such as Pydantic or SQLAlchemy