8000 fix: guard against KeyError in telechat_page_count by jennifer-richards · Pull Request #8485 · ietf-tools/datatracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: guard against KeyError in telechat_page_count #8485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

jennifer-richards
Copy link
Member

Fixes server errors when a pre-AD views the agenda_documents view.

The root cause of the issue is including pre-AD roles here:

ad = request.user.person if has_role(request.user, "Area Director") else None

The ad value set in that view is only used to compute the pages left to ballot, where it's assumed that the ad will be an active balloter. The bug being fixed comes from that assumption being violated.

@jennifer-richards jennifer-richards changed the title fix: guard against KeyError fix: guard against KeyError in telechat_page_count Jan 30, 2025
@rjsparks rjsparks merged commit da85872 into ietf-tools:main Jan 30, 2025
8 checks passed
Copy link
codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.80%. Comparing base (896968d) to head (9fa6176).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8485   +/-   ##
=======================================
  Coverage   88.80%   88.80%           
=======================================
  Files         312      312           
  Lines       40886    40856   -30     
=======================================
- Hits        36307    36284   -23     
+ Misses       4579     4572    -7     

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

@jennifer-richards jennifer-richards deleted the page-count-for-pre-ad branch January 30, 2025 16:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2025
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
0