Skip to content
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

Fix server error on some reports #5957

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

johnnyporkchops
Copy link
Contributor

@johnnyporkchops johnnyporkchops commented Oct 14, 2023

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
Copy link

codecov bot commented Oct 15, 2023

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           

Copy link
Contributor

@rfultz rfultz left a comment

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