medic / cht-conf

A command-line interface for configuring Community Health Toolkit applications
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
22 stars 25 forks source link

csv-to-docs should have a way to set reported date to a none static value. #365

Open newtewt opened 3 years ago

newtewt commented 3 years ago

What feature do you want to improve? csv-to-docs allows you to specify all kinds of report data. Some of our values can have special types like timestamp, number, etc.. but there is no way to specify a relative date. Meaning all data will have a reported data potentially of years ago if you don't update your csvs regularly.

Describe the improvement you'd like Similar to how we set the data types we should add another option for date relative to. Something like being able to set 7 days ago so the report will be within a task period and could potentially generate a bunch of tasks.

Describe alternatives you've considered You could mass update reported_dates in the csvs but that is cumbersome

Additional context Add any other context or screenshots about the feature request here.

MaxDiz commented 3 years ago

related: https://github.com/medic/cht-core/issues/6680

newtewt commented 3 years ago

@MaxDiz I'm actually going to close this issue. As after starting to implement the change. It has been found out we do support this. I'm waiting for my cht-docs pr to finish and then will close and link here.

https://github.com/medic/cht-docs/pull/354