datatracker icon indicating copy to clipboard operation
datatracker copied to clipboard

document_main and document_json can show different email addresses for the document shepherd

Open jennifer-richards opened this issue 1 year ago • 0 comments

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

jennifer-richards avatar Jul 05 '24 19:07 jennifer-richards