Skip to content

refactor: authors() -> author_persons()#10237

Merged
rjsparks merged 5 commits intoietf-tools:feat/rpc-apifrom
jennifer-richards:author-persons
Jan 9, 2026
Merged

refactor: authors() -> author_persons()#10237
rjsparks merged 5 commits intoietf-tools:feat/rpc-apifrom
jennifer-richards:author-persons

Conversation

@jennifer-richards
Copy link
Copy Markdown
Member

Rename the DocumentInfo.authors() method to author_persons() and formalize that it omits any authors that do not have a Person. Refactor code using this. In most cases this is just using the new method, but in a couple templates I've switched to the author_persons_or_names() method. That's likely a moot distinction for now, but looks ahead to when we eventually unify the author models between drafts and RFCs.

Copy link
Copy Markdown
Member

@rjsparks rjsparks left a comment

Choose a reason for hiding this comment

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

One nit

Comment thread ietf/doc/models.py Outdated
authors_qs = self.rfcauthor_set.filter(person__isnull=False)
else:
authors_qs = self.documentauthor_set.all()
print(f"nyah: {authors_qs.count()}")
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.

leftover debug

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

nyah!

@rjsparks rjsparks merged commit 9bce778 into ietf-tools:feat/rpc-api Jan 9, 2026
2 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 13, 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.

2 participants