PolicyEngine / PolicyEngine/policyengine-app-v2
Start period defaults to 2025 even when a different start year is selected
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 50m
- Merged PRs (30d)
- 39
Description
Bug
When entering a value for a parameter with a custom start period, the start period appears to default to 2025 even when a different year has been selected as the start year elsewhere in the flow.
Impact
This is a data-entry defect in the policy parameter setter's multi-year date handling: a user who explicitly selects a non-2025 start year can still end up with a value keyed to 2025, silently changing what policy they're actually simulating.
Scope
Needs a fresh reproduction against the current parameter setter (v2's date-entry flow differs from v1's), but the underlying category of bug — start-period defaulting incorrectly regardless of the selected year — is worth tracking as its own issue.
Migrated from policyengine-app#2630.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the current v2 parameter setter's date-entry flow: select a non-2025 start year, enter a parameter value, and inspect the resulting start period. Trace how the selected year is carried into the value, and consider the work complete when the entered value is keyed to the selected year rather than 2025.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100