Skip to content

Support adding matches to a Google Sheet #10

@TheAnnalyst

Description

@TheAnnalyst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions