mozilla-iam / dino-park-front-end

Front-end for Mozillians.org
Mozilla Public License 2.0
37 stars 32 forks source link

"Contact Me" list on organisation view only shows LDAP email address, ignores secondary #679

Open globau opened 2 years ago

globau commented 2 years ago

My preferred name is different from my legal name; and my LDAP account is set up using my legal name.

I would prefer that it becomes possible to hide my LDAP account from the Contact Me list, only showing my secondary, but I suspect that isn't viable.

When viewing my full profile (https://people.mozilla.org/p/glob) the Contact Me dropdown contains both my LDAP and secondary email addresses.

When viewing my profile as part of the org chart (https://people.mozilla.org/o/highlight/glob) the Contact Me dropdown does not contain my secondary email address.

The list of contacts should be the same in both locations.

floatingatoll commented 2 years ago

The plumbing for primaryEmail makes a lot of assumptions, and I'm not sure if the ContactMe component — or the underlying schema — have any comprehension for storing a userpref "don't show this in my ContactMe button".

But at the very least, we should show your secondary email in the org tree ContactMe button, so I filed #680 to take a first stab at maybe doing that, because I think it's just that we forgot to offer up a bind parameter for an inbound value. We'll see, I suppose.