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

Write data to firestore #169

Merged
merged 16 commits into from
Dec 16, 2019
Merged

Write data to firestore #169

merged 16 commits into from
Dec 16, 2019

Commits on Dec 7, 2019

  1. file for user data

    iritush committed Dec 7, 2019
    Configuration menu
    Copy the full SHA
    c20858b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed4a330 View commit details
    Browse the repository at this point in the history
  3. Added code that writes the parsed data to Firestore:

    In the parseCSVFromServer() function, a new User object is created with the new data.
    On the updateOrCreateUseronFireStore() the new data is updated in the user record or a new user is created if that user does not exist
    iritush committed Dec 7, 2019
    Configuration menu
    Copy the full SHA
    23db54b View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. Update functions/models/user.js

    Co-Authored-By: Micah Mutrux <micah.mutrux@gmail.com>
    iritush and doub1ejack committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    320bd65 View commit details
    Browse the repository at this point in the history
  2. Update functions/index.js

    Co-Authored-By: Micah Mutrux <micah.mutrux@gmail.com>
    iritush and doub1ejack committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    ed48dd6 View commit details
    Browse the repository at this point in the history
  3. Update functions/index.js

    Co-Authored-By: Micah Mutrux <micah.mutrux@gmail.com>
    iritush and doub1ejack committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    3c39afc View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2019

  1. Configuration menu
    Copy the full SHA
    3de4c67 View commit details
    Browse the repository at this point in the history
  2. add 2 new methods to the user class: createNewUserInFirestore and upd…

    …ateExistingUserInFirestore
    iritush committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    a621a42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9be92ef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    abe0ce8 View commit details
    Browse the repository at this point in the history
  5. -Removed updateOrCreateUseronFireStore(). Instead, write data to the …

    …Firestore database using class methods in the ‘user’ class
    
    -Changed some function and variable names for clarity
    -Added comments, TODOs, and did some cleanup
    iritush committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    d2236b2 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'write-data-to-firestore' of https://github.com/codeforb…

    …tv/cvoeo-app into write-data-to-firestore
    
    Resolving conflicts
    iritush committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    c9d4ffc View commit details
    Browse the repository at this point in the history
  7. add colon

    iritush committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    3a5e7ed View commit details
    Browse the repository at this point in the history
  8. switch var with let

    iritush committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    4a7272a View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2019

  1. Configuration menu
    Copy the full SHA
    240e2dd View commit details
    Browse the repository at this point in the history
  2. Created new goal.js file with class definition for goal.

    parseCSVAndSaveToFireStore: added reading goal fields from CSV and saving to firestore.
    Known issue: When parsing a csv file with multiple lines that have goal data, saving to firestore is not working properly
    iritush committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    63de666 View commit details
    Browse the repository at this point in the history