ebdb icon indicating copy to clipboard operation
ebdb copied to clipboard

Allow overriding field creation prompts (was: Editing Bidirectional Relationships)

Open DerBeutlin opened this issue 3 years ago • 4 comments

Very minor issue regarding https://github.com/girzel/ebdb/issues/86

A short example I have two contacts Alice and Bob, I add a relationship of Bob as the boyfriend of Alice, everything works fine due to your work in the other issue, and Alice becomes the girlfriend of Bob. Now they marry and I want to update their relationship. Now if I edit Alice's relationship to Bob (from Alice's entry) I cannot update the relationship while if I do it from Bob's entry I can update it.

Finally there is probably potential for auto-guessing the corresponding role if you keep track of the gender of the contact, but most probably that is not worth the hassle

DerBeutlin avatar Sep 06 '20 19:09 DerBeutlin

Huh, I thought for sure I had provided for "reverse editing" relationships, I will check this out tomorrow, thanks for the report.

girzel avatar Sep 08 '20 01:09 girzel

What I'm seeing is that you can edit the relationship field from either record, but the prompts ("this label", "the other label") don't change depending on which record you're on. ie, the label prompts are "backwards" if you're editing from the record that doesn't actually own the field instance.

Is that consistent with what you're seeing?

girzel avatar Sep 08 '20 23:09 girzel

Yes I tested it again, and it seems to be that way. Sorry I actually did it because I did the role association wrong with brother and sister and wanted to change it and probably I then did not look at the labels and did it wrong again and therefore it did not change. Sorry for the wrong issue description.

DerBeutlin avatar Sep 09 '20 20:09 DerBeutlin

Okay, no problem -- this is a real issue (it has annoyed me in other circumstances), but one that's going to take a little bit of thought. Let me sit on this for a bit.

girzel avatar Sep 09 '20 20:09 girzel