Catalogue Update
Context
This function is required for Use Case 3. It is automatically triggered once a day, to parse information from the Odlo web feed and updates the garment database in the Dress Me Up Data Store.
Invocation
The cloud function runs once per day, reads the updated CSV file and makes the necessary changes in the Google Firestore Database of the project.
Input
The input is a CSV file in the following URL:
Actions
- The service triggers a function once a day that retrieves and parses the CSV file from the link.
- It then uploads new entries and refreshes the status of the garments in the Firebase Datastore.
Output
- Success / Error code.
- Results are written to
garments
Data Store collection.
Repository
https://gitlab.com/etryon/shared/gcf-catalogue-updater