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:

https://get.cpexp.de/pVSeJv399V64P29fAWO-gd67p5X48ivlDT383jySKM3Ylo9Qu1-bd8AzrJzBgvDw/officialodloshop_productfeedch.csv.

Actions

  1. The service triggers a function once a day that retrieves and parses the CSV file from the link.
  2. 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