FamilyGem icon indicating copy to clipboard operation
FamilyGem copied to clipboard

Change ID

Open Machion opened this issue 3 years ago • 1 comments

I assume, the ID is somehow the backbone of the database and adding a new person obviously gives it a new upcounted ID, but I don't like it, when I sort the person list after ID and because (for example) I forgot my brother and added him later, he is far down in the list. So I want to asign him an ID near me and the others move up.

So is it possible to make the ID editable?

Machion avatar Aug 10 '21 19:08 Machion

Yes, it's possible to make the ID editable. And not only for each person record, but also for families, shared media, shared notes etc. I keep it on the list of things to do.

michelesalvador avatar Aug 31 '21 19:08 michelesalvador

I don't think an id would be the best way to do this. I think a UI should be implemented to set custom sort order (2-line grab handle on list item), and a new field should be created. Alternatively, it can be implemented as a linked list sort of structure, alleviating the need to cascade-edit the IDs (changing the id of an item requires changing the id of every consecutive item, which can take a very long time).

Sternbach-Software avatar Oct 30 '22 20:10 Sternbach-Software

Looks like this was implemented in the latest release?

Sternbach-Software avatar Oct 30 '22 20:10 Sternbach-Software

@shmueldabomb441 you are right that editing IDs it's not the best way to customize sorting order. But Family Gem aims to be a complete GEDCOM editor, and IDs are something that a user could want to edit, for many reasons. So IDs editing has been implemented, from version 0.9.1.

michelesalvador avatar Nov 02 '22 11:11 michelesalvador

What other reasons would they want to edit the id?

Sternbach-Software avatar Nov 02 '22 14:11 Sternbach-Software