You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Event Check-In
Currently the Event Check-In system makes a query for a document that has the name of the checkin path. For example if someone lands on /checkin/mycoolevent then we search for a document called mycoolevent to retrieve event information from. However, this causes challenges in the future since we cannot reuse the same link for a different event. Cloud Firestore prevents us from renaming documents and so querying based on document names means we are locked into using it for just that one event.
We would instead like to search for the document that has the path_name value set to the checkin link. This ensures that in the future can easily adapt a link to point to a different event simply by modifying the path_name value. Making this change also means that when we create a new event we no longer care about what the name of the document is.
Task List
Refactor query here. View how to make a firestore query here
Change document write here. Save the document ref from the previous task to reuse here instead of making a fresh query again.
Change document write here when creating a new event. We no longer care about the document name so use .collection(event_collection).add().
The text was updated successfully, but these errors were encountered:
Refactor Event Check-In
Currently the Event Check-In system makes a query for a document that has the name of the checkin path. For example if someone lands on
/checkin/mycoolevent
then we search for a document calledmycoolevent
to retrieve event information from. However, this causes challenges in the future since we cannot reuse the same link for a different event. Cloud Firestore prevents us from renaming documents and so querying based on document names means we are locked into using it for just that one event.We would instead like to search for the document that has the
path_name
value set to the checkin link. This ensures that in the future can easily adapt a link to point to a different event simply by modifying thepath_name
value. Making this change also means that when we create a new event we no longer care about what the name of the document is.Task List
.collection(event_collection).add()
.The text was updated successfully, but these errors were encountered: