Closed SiriChandanaGarimella closed 1 month ago
following up on a questoin from @tnhi26990 "do we display the shift details for one single shelter?". if the goal here is to replace the static shifts = [
declaration in work_shift.py with a database call. the result would be an array of shelters. is that right @SiriChandanaGarimella?
@kungfuchicken - The shift details are needed for a single shelter with a 1-hour time interval. Using the counts API (http://127.0.0.1:5000/counts/30207?filter_start_after=1714107600000&filter_end_before=1714193999999), we can get the number of volunteers registered to volunteer at shelter id 30207 between the specified filter_start_after and filter_end_before timestamps. With this API, we should get the number of volunteers registered for each hour. The upcoming 3-hour data should be displayed on the dashboard page, while all other shifts should be displayed on the Shift Details page.
Is your feature request related to a problem? Please describe. Currently, the data in 'Today's Roster' is static. Fetch the data from the database and update the details in Today's Roster component.
Describe the solution you'd like Use the existing API to get the information on the number of shifts and fetch the data as required. API: http://127.0.0.1:5000/counts/30207?filter_start_after=1714107600000&filter_end_before=1714193999999 Fetch the user name from the volunteer list using the existing user profile APIs.
User profile.postman_collection.json SLU Volunteer QA.postman_collection.json GetHelp-OAuth QA SLU.postman_collection.json