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
When a user is interacting with the timesheet, we need to be saving what they are updating to our DB to allow persistence across the timesheet.
There are also differences between the frontend and backend schemas, we need conversions defined in the types for the backend for inputting and outputting what was changed with mappings.
Terms of Acceptance:
Backend Endpoint for updating timesheets refactored to accept the fields it will be overwriting / mutating only those. POST: timesheets and GET: timesheets for what we are retrieving.
Plan outline to ensure that only fields that should be overwritten are - they shouldnt be able to overwrite fields like state, etc.
Frontend updated to actually make the relevant API calls when updates are received.
Mappings defined for converting from backend to frontend fields and vice versa. This is for both retrieving and uploading timesheets. .pick and .transform in zod would be useful here.
The text was updated successfully, but these errors were encountered:
When a user is interacting with the timesheet, we need to be saving what they are updating to our DB to allow persistence across the timesheet.
There are also differences between the frontend and backend schemas, we need conversions defined in the types for the backend for inputting and outputting what was changed with mappings.
Terms of Acceptance:
.pick
and.transform
in zod would be useful here.The text was updated successfully, but these errors were encountered: