Skip to content

Make automatic process for the weekly dates parameters generation. #28

@zimzoom

Description

@zimzoom

Context:

  • Once a week, the Logic App calls the scraper by iterating over a list of parameters. The scraper is called with "start date" and "end date" parameters -- the Logic App calls it using 2 week increments, going back 5 years. This means that this list of date parameters needs to be re-generated every week.
  • Currently, the Python script that generates the array of data parameters is run manually on a dev's computer. It creates a json file, which is then manually uploaded to a specific container that the Logic App reads from.

Goal:

  • This needs to be an automated process rather than something that is run manually. The recommended way is: create a new Azure Function with a "timer trigger", set to go off once a week, that generates logic-app-dates.json and writes it to the container "logic-app-resource" (next to "case-html").
  • No changes need to be made to the Logic App, as long as it results in a json file with the same name, in the same container, with the same structure. ( [["2018-04-25", "2018-05-01"], ["2018-05-02", "2018-05-08"], ...(etc to present)... ]
  • Contact Luci for the dates generator python script and example json file.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions