You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sc-17432 decouple Indicator from Target period; use ActionPlan.target… (#5742)
**Story card:**
[sc-17432](https://app.shortcut.com/simpledotorg/story/17432/fix-targets-association)
### **Because**
Indicators were using indicator.target.period, which caused
numerator/denominator to be calculated using the wrong quarter. The
ticket requires that ActionPlan’s target.period should be the source of
truth.
### **This addresses…**
1. Removed the Indicator → Target link (no more indicator.target).
2. Targets are now created independently and attached only to
ActionPlans.
3. ActionPlan#numerator now passes its own quarter:
`indicator.numerator(region, Period.new(type: :quarter, value:
target.period))
`
4. Updated controller, specs, and factories.
5. Made dr_rai_indicators_id nullable via migration.
### **Test Instructions**
Suite test
0 commit comments