Re-add support for dispatch/divide by days#1143
Conversation
83cca33 to
2366128
Compare
|
I will postpone reviewing this PR until the one it depends on is approved, and suggest that this one is set to draft. Indeed, I fail to see how it could be approved when #1141 might not go through. Do you truly need #1141 for this one to be reviewed? 🙂 As an alternative to switching to draft, I suggest to remove the dependency and rebase straight on |
2366128 to
c2c2d20
Compare
|
Done! |
c2c2d20 to
6e782e7
Compare
|
I'm not sure if this is a new feature, or a bug-fix as the behaviour this adds was introduced as a replacement of a behaviour that was deprecated, however the pull request forgot to include |
|
@maukoquiroga : looks very good to me. |
I didn't do a lot more than «reenabling» a feature that already existed. If you see in the tests, month days are handled appropriately (31 + 28 + 30). Maybe test should be more precise about leap years. |
|
(By the way, I think that holders implements it's own logic in terms of equivalences between days, months and years. We should see which is better, and keep just one in periods, as holder should not handle that kind of logic IMHO). |
6e782e7 to
8644ef9
Compare
Fixes digitalaotearoa/openfisca-aotearoa#15
Depends on #1141
New features
daydate unit inholders.set_input_dispatch_by_periodandholders.set_input_divide_by_period