#18654 closed enhancement (fixed)
[Patch] Separate unique identifiers per primitive type
Reported by: | Don-vip | Owned by: | Don-vip |
---|---|---|---|
Priority: | normal | Milestone: | 20.02 |
Component: | Core | Version: | |
Keywords: | Cc: | Klumbumbus, GerdP, simon04 |
Description
To solve #18653 I had to apply this patch so that we get rid of a unique id counter across all primitive types to get one per primitive type.
Attachments (1)
Change History (7)
by , 5 years ago
Attachment: | 18654.diff added |
---|
comment:1 by , 5 years ago
comment:2 by , 5 years ago
I don't understand how an upload is related to this. Isn't about stable negative ids so that when you save data to a file, load it again, add some objects and save it again the ids are not completely different?
comment:3 by , 5 years ago
I was unsure whether id=-1
could be used for a new node as well as a new way. That's what I've verified.
comment:5 by , 5 years ago
It also helps a lot when debugging. Much easier to understand what's going on when ids don't change :)
+1
Successfully tested uploading way/-1 consisting of node/-1 and node/-2 – https://api06.dev.openstreetmap.org/way/4305500424