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

corrects jq syntax for displaying carbon intensity of regions #4321

Conversation

gilzow
Copy link
Collaborator

@gilzow gilzow commented Jan 7, 2025

Why

Closes #4320

What's changed

Carbon intensity field environmental_impact.carbon_intensity is now returned as a number instead of string. Previous jq syntax expected a string and therefore was throwing an error when trying to add a number to a string. This updates the syntax to use jq string interpolation on the items.

Where are changes

Updates are for:

  • platform (sites/platform templates)
  • upsun (sites/upsun templates)

@gilzow gilzow requested a review from Kemi-Elizabeth January 7, 2025 17:49
@gilzow gilzow self-assigned this Jan 7, 2025
@gilzow gilzow linked an issue Jan 7, 2025 that may be closed by this pull request
Copy link
Collaborator

@chadwcarlson chadwcarlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested 👍

@chadwcarlson chadwcarlson merged commit f0935d5 into main Jan 9, 2025
16 checks passed
@chadwcarlson chadwcarlson deleted the 4320-update-example-jq-for-retrieving-regions-and-carbon-intensity branch January 9, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update example jq for retrieving regions and carbon intensity
3 participants