Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #5957 +/- ##
========================================
Coverage 78.16% 78.16%
========================================
Files 286 286
Lines 9167 9167
Branches 653 653
========================================
Hits 7165 7165
Misses 2002 2002 |
rfultz
approved these changes
Oct 17, 2023
Contributor
rfultz
left a comment
There was a problem hiding this comment.
Can't seem to break it! :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The new logic that shows file extension on
DocumentPages(Reports about the fec)was causing some report pages to get a 500 server error withindex out of rangeerror. Sinceself.file_extensionis a property on the model and not a field value it always returns "true" Example 500 error.This logic was added in #5931
Required reviewers
One frontend
Impacted areas of the application
Reports about the FEC pages that do not have a document associated with them like :
https://www.fec.gov/about/reports-about-fec/oig-reports/audit-agency-controls-governing-process-procurement-vendor-training-services-executive-summary/
modified: home/templates/home/document_page.html
How to test
Read more...links on this page do not get 500 Server error