Skip to content

Fix server error on some reports - #5957

Merged
rfultz merged 3 commits into
developfrom
feature/fix-500-error-for-some-reports
Oct 17, 2023
Merged

rfultz merged 3 commits into
developfrom
feature/fix-500-error-for-some-reports

Conversation

@johnnyporkchops

@johnnyporkchops johnnyporkchops commented Oct 14, 2023 •

Copy link
Copy Markdown
Contributor

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 with index out of range error. Since self.file_extension is a property on the model and not a field value it always returns "true" Example 500 error.

Screen Shot 2023-10-13 at 9 25 19 PM

This logic was added in #5931

  • Resolves #issue_number

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

@codecov

codecov Bot commented Oct 15, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #5957 (75820b3) into develop (bbb15a7) will not change coverage.
The diff coverage is n/a.

@@           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 rfultz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can't seem to break it! :)

@rfultz
rfultz merged commit f019707 into develop Oct 17, 2023
@rfultz
rfultz deleted the feature/fix-500-error-for-some-reports branch October 17, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants