The project is nearly complete I just need some help taking it across the finish line with default values.
*Desired Outcome:* Query firebase database to get the last event created by current user (if exists) so that some of the Vue form data can be initialized with default values when the user creates their next entry. If no previous event exists for this user, inputs should revert to a global default. As you can see from the git repo most of the pieces are already there. I would expect that a well qualified candidate could knock this out in a few hours tops.
Form input detailed description:
“Location”: default/selected will be the location assigned in the last event created by this user (if applicable), otherwise blank
StartDate: default to date assigned in the last event created by this user, otherwise “today”
Gender: default to gender assigned in the last event created by this user, otherwise “Any”
Players: default to number of players assigned in the last event created by this user, otherwise “4”
Generally, the default values should be set to the “last event” created by this user if one exists, if not, form inputs should revert to a global default value. For example, maybe the global default value for “players” is 6 but if the last event created by this user had 12 “players”, then when form is launched the “players” input should have a default value of 12, if no previous events then revert to 6, etc.
Only bids starting with the words, “I READ IT” will be considered.
Thank you in advance for your time and consideration of this project.
Current project code here:
[login to view URL]
Firestore Database schema
Collection: events, Document: (auto-id = true)
Collection: locations: Document: (auto-id = true)
**Important conditions to be met before acceptance and payment:
1.) Full project source coded loaded to git and functionality confirmed
2.) The document ID of the “last event” created by the user will not be known at the time the form is launched. For this reason the solution must query to obtain the last document ID.
3.) No modifications to the database content or structure is allowed unless agreed to in advance.
4.) Solution project should have the minimum changes to the original project required to provide the desired outcome specification.