Perhaps leave the python step as is and convert to Timestamp objects before upload in UploadMock.js
export interface MissionInterface {
id: string;
type: MissionType;
createdDate: string; // TODO should be a date?
missionDetails: FoodBoxDetails | {};
status: MissionStatus;
fundedStatus: MissionFundedStatus;
fundedDate: string | null; // TODO should be a date?
// TODO make sure this gets set when things get funded
readyToStart: boolean;
organizationId: string;
If we switch these to timestamp, as described here https://firebase.google.com/docs/reference/js/firebase.firestore.Timestamp
Then we can resolve two of the TODOs in the below.
Attention has to be paid to the mock data uploader, which is python based. https://github.com/factn/resilience-app/blob/master/scheme/data.py
Perhaps leave the python step as is and convert to Timestamp objects before upload in UploadMock.js