Skip to content

fix: Use primary address for ballot email from for non ietf-stream docs - #11119

Merged
jennifer-richards merged 2 commits into
ietf-tools:mainfrom
rjsparks:balloter_from
Jun 30, 2026
Merged

fix: Use primary address for ballot email from for non ietf-stream docs#11119
jennifer-richards merged 2 commits into
ietf-tools:mainfrom
rjsparks:balloter_from

Conversation

@rjsparks

Copy link
Copy Markdown
Member

Fixes #11114

Note that this changes the default behavior of the Person factory to generate a primary Email object for the Person.

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.52%. Comparing base (4641d0d) to head (05f4107).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11119   +/-   ##
=======================================
  Coverage   88.51%   88.52%           
=======================================
  Files         334      334           
  Lines       45102    45105    +3     
=======================================
+ Hits        39924    39931    +7     
+ Misses       5178     5174    -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread ietf/person/factories.py
if create and extracted:
make_email = getattr(EmailFactory, 'create' if create else 'build')
make_email(person=obj, address=obj.user.email)
make_email(person=obj, address=obj.user.email, primary=True, **kwargs)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the if create... is always true since this is in a block where create and extracted is true, so this could just be EmailFactory.create() and the previous line could be removed

@jennifer-richards
jennifer-richards merged commit eba657a into ietf-tools:main Jun 30, 2026
9 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ballot "from" address needs to be more purposely chosen

2 participants