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

A few more item groups #160

Merged
merged 1 commit into from
May 15, 2024
Merged

A few more item groups #160

merged 1 commit into from
May 15, 2024

Conversation

oyamauchi
Copy link
Member

@oyamauchi oyamauchi commented May 14, 2024

Description

After going through all the existing incentives and giving them more
granular items, I found some common combinations that are worth
handling: door/window replacement, and audits plus weatherization.

There was one combined incentive (CO's state tax credit for air source
heat pumps and HPWHs) which I elected to split into two incentives; it
felt too awkward to create a group for those technologies.

Test Plan

Unit test.

I found all the multi-item combos in the incentives data by running
this in the incentives repo:

echo data/**/incentives.json | xargs jq '.[] | select((.items | length) > 1) | .items | sort | join(",")' | sort | uniq

There are no combos in there that will result in null here.

## Description

After going through all the existing incentives and giving them more
granular items, I found some common combinations that are worth
handling: door/window replacement, and audits plus weatherization.

There was one combined incentive (CO's state tax credit for air source
heat pumps and HPWHs) which I elected to split into two incentives; it
felt too awkward to create a group for those technologies.

## Test Plan

Unit test.

I found all the multi-item combos in the incentives data by running
this in the incentives repo:

`echo data/**/incentives.json | xargs jq '.[] | select((.items | length) > 1) | .items | sort | join(",")' | sort | uniq`

All the resulting combos are now handled in here.
Copy link

vercel bot commented May 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
embed-rewiringamerica-org ✅ Ready (Inspect) Visit Preview May 14, 2024 7:40pm

@oyamauchi oyamauchi merged commit 2332ab5 into main May 15, 2024
3 checks passed
@oyamauchi oyamauchi deleted the owen.more-groups branch May 15, 2024 14:45
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.

2 participants