preferred_email_address is not included in confirmed_email_addresses

Bug #254696 reported by Soren Hansen
12
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When using the new Launchpad API, I found that a person's preferred_email_address not included in the confirmed_email_addresses. That seems a bit odd. If it is indeed intentional, could you please make a note of it in the documentation. If not, I suggest that the first address returned in confirmed_email_addresses simply be the preferred one.

Changed in launchpad:
status: New → Confirmed
Revision history for this message
Guilherme Salgado (salgado) wrote :

That's because preferred_email_address and confirmed_email_addresses are the internal API we use to display a person's preferred email and the confirmed ones in separate sections of the web UI. That's indeed confusing, but I'm not yet sure it's worth having a separate API which included the preferred email and all confirmed ones, so I'm leaning towards fixing the docs for now.

Soren, would you be okay if we did just that for now or do you have any use-cases for a field containing all of a person's confirmed emails?

Changed in launchpad:
status: Confirmed → Incomplete
Revision history for this message
Soren Hansen (soren) wrote :

My specific use case is this: I use it to set up e-mail forwarding for members of the Danish Ubuntu loco-team. I need to go through all the user's confirmed addresses (including the preferred one), but if someone has set their @ubuntu-dk.org address as their preferred address, I need to skip that one and grab one of the confirmed_email_addresses. The optimal solution for me would be to include the preferred one in the confirmed list, but I understand your point, and just fixing the documentation would be cool with me.

Changed in launchpad-foundations:
status: Incomplete → Triaged
Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-registry
Changed in launchpad-registry:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.