Closed rousik closed 4 years ago
Note that the output of this script is part of this pull request. We can retain the old resources files and remove it from this pull request if that's preferred.
Super cool! I'll need some time to review this. @matiasgarciaisaia if you want to lend a hand here, can you explore ways of triggering Jan's import script? There are two possible triggers: we can either trigger it each time a resource is posted to the spreadsheet, or simply have a "cron" somewhere take care of this daily.
OAuth tokens to access google spreadsheets that is used by this script may not be suitable to fully automated cron-like access, yet. I will look into whether there are alternatives to this. There may be some but google public api auth is a mess.
So for now I would suggest running this script by hand when new resources land. This might be an acceptable strategy while the incoming rate of resources remains low & we can invest into further automation once this no longer scales well.
I'm willing to be oncall for running this integration process in the interim.
Can we abandon this pull request and move the disussion over to https://github.com/flattenthecurve/guide/pull/248 which is copy of this? I have realized I shouldn't be working in the master branch of my fork and I'm trying to salvage my master branch now.
This script processes responses in the Resource responses and turns them into md files under _resources/. Few things to note:
Next step is to add Slack notification when new responses are added to the sheet.