DigitalCommons / land-explorer-back-end

GNU Affero General Public License v3.0
0 stars 0 forks source link

LX-216 Don't duplicate UUIDs #46

Closed rogup closed 1 year ago

rogup commented 1 year ago

What? Why?

Closes https://github.com/DigitalCommons/land-explorer-front-end/issues/216

Making a snapshot / copy of a map creates objects with duplicate UUIDs. This causes unwanted behaviour e.g. if you change the description of a marker in the original map, its description changes in any snapshots too.

These changes fix this logic, so that the objects in the snapshot or copy have new UUIDs.

What should we test?

Repeat the above for a snapshot

Release notes

Deployment notes

Documentation updates

lin-d-hop commented 1 year ago

had a pretty thorough play with this and everything is working perfectly :)