openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

Add a way to recompute the indicator fields that are set to be recomputed daily

Open jeremi opened this issue 2 years ago • 4 comments

  • We could have a parameter on the field that specifies this, and a daily cron that run the update
  • Add the recompute daily boolean field in the custom fields UI

For fields meant to be updated on a daily basis, it's proposed to introduce a specific parameter, effectively marking them for daily reevaluation. This would be seamlessly facilitated by a daily cron job, which will scan and promptly update these marked fields. To streamline the user experience and allow administrators to easily set which fields require daily updates, a new 'Recompute Daily' boolean option will be integrated into the custom fields UI. This approach ensures that relevant data remains fresh and up-to-date, without the need for manual intervention.

image

How to use

  1. Go to Settings
  2. Database Structure by clicking (+) button on the menu
  3. You can't create fields but select one of them to computing dialy.
  4. You can use filter to select Dialy Recompute.
  5. Further, you can filter by "z_ind" for a model.

jeremi avatar Apr 13 '23 02:04 jeremi

  • Attribute to identify the fields
  • Create a cron job to update the indicators

dasunhegoda avatar Jun 30 '23 04:06 dasunhegoda

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Mar 03 '24 12:03 github-actions[bot]

Was this implemented?

jeremi avatar May 30 '24 03:05 jeremi

Yes, it's implemented @jeremi. PR: https://github.com/OpenSPP/openspp-modules/pull/251

dasunhegoda avatar May 31 '24 02:05 dasunhegoda