Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding matches to a Google Sheet #10

Open
1 of 6 tasks
TheAnnalyst opened this issue Mar 6, 2022 · 0 comments
Open
1 of 6 tasks

Support adding matches to a Google Sheet #10

TheAnnalyst opened this issue Mar 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@TheAnnalyst
Copy link
Member

See #scouting-app on Slack for details on why this is desirable. Currently, I feel the best way to do this is to add generic hooks that run when matches are stored/deleted, and then add default hooks that sync the changes to a Google Sheet.

  • Add match hooks (done in ef1f250)
  • Create a function to generate a StorageHooks object with configuration options that can be passed in as parameters (API key and spreadsheet ID)
    • This is a library, so we don't want to assume a particular configuration structure (our scouting frontend uses a global Config object).
  • Implement an onSaveMatch hook to add matches to a Google Sheet
  • Implement an onDeleteMatch hook to remove matches from the spreadsheet
  • Test the above hooks
  • Use these hooks on the scouting app

It may be useful to look at the Google Sheets API documentation.

@TheAnnalyst TheAnnalyst added the enhancement New feature or request label Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant