Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EmissionFactorDS data model and update schema and fixtures #13

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

JohnVonNeumann
Copy link
Member

Please ignore branch name, these changes were larger than first intended, so I've shipped them separately..

… for NonEmptyString

The specification and the data model deviated in terms of what was expected for
the secondaryEmissionFactorSources field. A list of str was being provided, which
was incorrect. This represents the introduction of the new type, along with a base
type that is a type alias of string to implement NonEmptyString, in order to
more closely align with the specification. The next commit will be the introduction
and rewriting of module code and tests to reflect this change.
This change uses the EmissionFactorDS data model introduced in the previous commit,
along with updating the tests to use a single isolated and consistent CarbonFootprint
fixture, as there was too much separation and changes were required in multiple
places to reflect API schema changes, this has reduced code complexity significantly.
@JohnVonNeumann JohnVonNeumann merged commit 2c151d8 into master Feb 27, 2024
1 check passed
@JohnVonNeumann JohnVonNeumann deleted the add-carbon-footprint-database-model branch February 27, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant