Skip to content

Comments

Fix server error on some reports#5957

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

Fix server error on some reports#5957
rfultz merged 3 commits intodevelopfrom
feature/fix-500-error-for-some-reports

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