tmilar/meli-manager

Optimize handling of entity row Save vs entity row Update

tmilar opened this issue · 0 comments

Right now, the entire row is being written in the spreadsheet.

If it's a Save operation, it will append the row in the end of the sheet document.
If it's an Update operation, it will overwrite the row that matches the 'id' field. But, in this case, we probably should only write the desired/updatable fields, not all of them?

For example: if a question/answer text is banned/deleted, we probably should not overwrite the info from the spreadsheet when updating the row.

This would require a refactor in the current flow.