OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
216 stars 68 forks source link

Improve collection edit performance #3185

Closed keikari closed 5 days ago

tzarebczan commented 5 days ago

Awesome, thank you! Saw the discussion in the issue as well.

infinite-persistence commented 5 days ago

Just a quick check, Miko:
the previous code performs the deletion for both QUEUE_EDIT and COLLECTION_EDIT, but now it's only for the latter. Does it need to happen for both? (not familiar with the purpose of these 2 lists).

keikari commented 5 days ago

Didn't thought about that, but should still be fine.

updated seems to be used to keep track of the last edited timestamp in cases where one decides to clear edits instead of publishing them.

unsavedChanges is used so that changing the sorting of the list won't become permanent until user saves the changes. It's only used in the "Arrange"-mode.