Refactor the logic in the API call to send back partial data when updating a facility in the ModEditFacilitySection.vue
#1029
Labels
code quality
enhancement
New feature or request
moderation panel
pair programming
This is a ticket that is good to pair with someone on
Problem
Currently we send back all the key value pairs when clicking update for a facility within the moderation panel. We would like to use checks to either set the keys to
undefined
if there are no changes or the value of the change (can be primitive data type or non-primitive) to the appropriate key.Success
Partial data is being send and is checked manually with what is being sent within the
POST
request within the network tab. The PR includes screenshots from the firebase emulator database to prove that it is still updating partially or fully and screenshots of the network tab show that partial data is being sent when there are changes to only some keys.Requirements
Implementation notes
Run the moderation panel with the documentation and use the comparison for arrays provided in array utils file.
The text was updated successfully, but these errors were encountered: