datatracker
datatracker copied to clipboard
document_main and document_json can show different email addresses for the document shepherd
Describe the issue
The Stream section of the document_main page for a document (/doc/draft-some-draft/) and the JSON for the document (/doc/draft-some-draft/doc.json) sometimes show different email addresses for the document shepherd. This is because the former uses the document_draft.html template which renders the shepherd with {% person link doc.shepherd.person%}, which uses the current primary email address, whereas the latter uses doc.shepherd.formatted_email(), which uses the address that was specified when assigning the shepherd.
These should display the same email address. I think it should be doc.shepherd.formatted_email(), though that needs some work to be sure it's not left pointing at a deactivated address.
Code of Conduct
- [X] I agree to follow the IETF's Code of Conduct