transition icon indicating copy to clipboard operation
transition copied to clipboard

transition: Node: Update transferable nodes when node(s) are deleted

Open kaligrafy opened this issue 5 years ago • 6 comments

we should update only the affected nodes (the modified ones + the nodes around them)

kaligrafy avatar Sep 10 '20 15:09 kaligrafy

Where are the transferrable nodes located? In DB and/or in cache?

tahini avatar Feb 05 '21 14:02 tahini

Only in cache

kaligrafy avatar Feb 05 '21 14:02 kaligrafy

I moved the Node class to the transition-common workspace. I'll work on this with TDD, writing the unit tests for it first.

tahini avatar Feb 08 '21 02:02 tahini

not urgent for first formation though, moving to 0.2.3

kaligrafy avatar Feb 10 '21 15:02 kaligrafy

For the record, transferable nodes are updated when a single node is edited/added (with PR chairemobilite/transition-legacy#904, when a node changes position, previously transferable nodes now inaccessible are updated as well).

What is left is to update the previously transferable nodes when deleting potentially multiple nodes.

tahini avatar Jun 24 '21 02:06 tahini

Now that those nodes are in the database, the content of the database will automatically delete all delete transferable nodes. What remains is to sync the cache when that happens.

tahini avatar May 03 '24 14:05 tahini