shinycal icon indicating copy to clipboard operation
shinycal copied to clipboard

backend ideas for new streamer form

Open rpodcast opened this issue 3 years ago • 0 comments

There are a few approaches to plugging in the backend for a user to submit a new streamer to shinycal. Assorted notes:

Goal

After completing the form, the app should dynamically send a pull request to the streamer_data repository that contains a new yaml file for the requested streamer

Initial Requirements

  • Until I get the YouTube API sorted out, the requested streamer must have a Twitch account
  • Assuming the streamer has a Twitch account, they need to have a schedule set up in their account. I'm not satisfied with my current mechanism of deriving the typical streaming days for those who don't have a schedule established.

Backend

  • At app started, the create_from_github from the usethis package could clone the streamer data repo to a temporary directory
  • The form data is then translated to a yaml file via the yaml package written to the temp directory
  • Create a pull request dynamically with the pr_init() function to a new branch on the same repo that has the streamer ID as the branch name

rpodcast avatar Sep 22 '21 23:09 rpodcast