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

Fix casting of GHG metrics on Program Insight page #3880

Merged
merged 3 commits into from
Mar 21, 2023

Conversation

haneslinger
Copy link
Contributor

@haneslinger haneslinger commented Feb 24, 2023

Any background context you want to provide?

Column cast to string by default. This means that if the insights page tries to call /evaluate and one of the columns isn't custom cast, it'll 500. This fixed that by simply returning "unknown" instead and adding numeric casting for ghg and ghg_intensity.

What's this PR do?

How should this be manually tested?

What are the relevant tickets?

Screenshots (if appropriate)

@nllong nllong changed the title Fix ghg cast Fix casting of GHG metrics on Program Insight page Mar 11, 2023
@axelstudios axelstudios force-pushed the Fix-ghg-cast-and-exclude-non-numberic-from-eval branch from 8ccf108 to 8fb7fa7 Compare March 21, 2023 15:42
@axelstudios
Copy link
Member

@haneslinger I fixed one bug: The second numeric test was checking actual_val instead of target_val

@axelstudios axelstudios merged commit 031df13 into develop Mar 21, 2023
@axelstudios axelstudios deleted the Fix-ghg-cast-and-exclude-non-numberic-from-eval branch March 21, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants