Skip to content

fix: better archive search links for group documents#6835

Merged
rjsparks merged 1 commit intoietf-tools:mainfrom
rjsparks:better_archive_links
Jan 9, 2024
Merged

fix: better archive search links for group documents#6835
rjsparks merged 1 commit intoietf-tools:mainfrom
rjsparks:better_archive_links

Conversation

@rjsparks
Copy link
Copy Markdown
Member

fixes #6823

@rjsparks rjsparks requested a review from rpcross December 21, 2023 23:20
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f3a574c) 88.78% compared to head (daec932) 88.80%.
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6835      +/-   ##
==========================================
+ Coverage   88.78%   88.80%   +0.01%     
==========================================
  Files         285      285              
  Lines       40324    40369      +45     
==========================================
+ Hits        35800    35848      +48     
+ Misses       4524     4521       -3     

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

@rjsparks rjsparks requested a review from kesara December 27, 2023 17:54
{% if doc.group and doc.group.list_archive %}
{% if doc.group.list_archive|startswith:settings.MAILING_LIST_ARCHIVE_URL %}
<a href="{{ doc.group.list_archive }}?q={{ doc.name }}">
<a href="{{ doc.group.list_archive }}?q={{ doc.name }}{% if doc.came_from_draft %} OR %22{{ doc.came_from_draft.name }}%22{% endif%}">
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.

Why not URL encode spaces around OR as well?

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.

Can you find an ecosystem where it's actually necessary? (escaping the double-quotes was mostly a quick way to construct a string that django wouldn't mangle on the way out).

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.

I requested a change just to avoid confusion. It's not apparent that spaces around OR are important.

@rjsparks rjsparks merged commit 3312913 into ietf-tools:main Jan 9, 2024
@rjsparks rjsparks deleted the better_archive_links branch January 9, 2024 21:17
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 13, 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.

the "Mailing list discussion" link for rfcs is incorrect

2 participants