Closed jeffplays2005 closed 1 month ago
Visit the preview URL for this PR (updated for commit 85beba4):
https://uasc-ceebc--pr787-786-backend-rewrite-1yks42u1.web.app
(expires Tue, 08 Oct 2024 10:38:01 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 36296ceaed1d43e92e7d5e81a72a7bd987560bfa
Note that this endpoint still doesn't have tests due to the nature of it having an open socket.
I've conducted some manual tests but had an inability to add an event of the correct data structure which results in problems with fetching all the events with a later date.
See the images attached below: The following image depicts that the endpoint returns an object instead of a number now:
Upon adding an event with the admin endpoint, the event doesn't seem to be fetched (this is perhaps due to some firestore timestamp issue again)
Note that the first dump was of just fetching regular events(this included the new event I created) but upon filtering with dates in Firestone, it only returns the empty lists after.
Despite the errors with running the manual requests on Swagger, the service methods still pass the expected tests.
do we not have confirmation that the endpoint can provide signups for each event id?
do we not have confirmation that the endpoint can provide signups for each event id?
I've tested the function in the service tests and this endpoint essentially just returns that. I'll try and get some jest tests set up if it's doable.
It isn't working when I manually add a payload to the admin/events POST method
Works properly now, can assume that the counts will be accurate as the service methods have been tested and the SSE just returns the tested service methods.
The changes on the admin endpoint should convert the raw timestamps to firestore timestamps
I've changed the method in the controller to use the modified method.
Also changed EventService to return a Record instead of just a number.
Updated tests