bruin-tennis-consulting / match-manager

A web app for custom tennis match playback, allowing coaches to easily filter and search points by attributes for film review.
https://match-viewing-dashboard.web.app
8 stars 8 forks source link

Created cloud functions entry point along with a test script that runs on the Test collection #183

Open sacaarjain opened 2 months ago

sacaarjain commented 2 months ago

Still working on it Created a cloud function entry point called main.py in app/functions/ which essentially just listens to see if any new document has been added to the "Test" collection. This new document must contain a "name" field. After a new document is created with the "name" field and value, it updates that document by running a test script called "points_calculator.py" on that document that just returns a JSON output in the form "points": "Hello " + name. This document subsequently gets a field called "points" whose value is "Hello " + the name field's value.

This has been thoroughly tested in the cloud firestore emulator which should accurately mimic the production database

Future with this new updates: