Skip to content

refactor: Clarify which mail archive is being searched#7117

Merged
rjsparks merged 2 commits intoietf-tools:mainfrom
pselkirk:fix-6993
Mar 11, 2024
Merged

refactor: Clarify which mail archive is being searched#7117
rjsparks merged 2 commits intoietf-tools:mainfrom
pselkirk:fix-6993

Conversation

@pselkirk
Copy link
Copy Markdown
Contributor

Fixes #6993

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.

I'm not following part of the suggested change:

Comment thread ietf/doc/views_review.py Outdated

mail_archive_query_urls = mailarch.construct_query_urls(doc, team)

team_list_email = team.list_email or "directorate"
Copy link
Copy Markdown
Member

@rjsparks rjsparks Feb 29, 2024

Choose a reason for hiding this comment

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

This conditional isn't making sense to me. Isn't it the case that if team.list_email is not Truthy, that mail_archive_query_urls will be None? (see the first return in `construct_query_urls).

I also don't think you need this extra variable - if mail_archive_query_urls exists, see if you can get what need out of it in the template?

@rjsparks rjsparks merged commit 528d697 into ietf-tools:main Mar 11, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 15, 2024
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.

mail archive search URL (sometimes?) wrong

2 participants