hasadna / datacity-k8s

1 stars 0 forks source link

resource processing dgp tasks should run on change (instead of daily) + after some daily from last update #129

Open OriHoch opened 3 years ago

OriHoch commented 3 years ago

@niryariv

Would it make sense to add it to the upload process instead of a background task, is it too time consuming? So that the user can know about the xlsx file and check it as soon as they upload

niryariv commented 3 years ago

@niryariv define UI while the process is incomplete, or the task has failed

@OriHoch run the update task every hour instead, let CKAN know there'll be new files here

niryariv commented 3 years ago

UI: There are three stages:

  1. A file has been uploaded but the XLS/GeoJSON files haven't been created yet - to admin user, show XLS/GeoJSON links in grey, not clickable, with the message ״[קובץ בהכנה]״. For regular user, don't show links

  2. XLS/GeoJSON files ready - display normally per default behavior

  3. Failed to create XLS/GeoJSON files - to admin user, show message ״[תקלה ביצירת קובץ]״ next to the link, the error message in the log. To regular visitor, show nothing.