18F / FAC-Distiller

Federal Audit Clearing House Distiller
2 stars 4 forks source link

Bug - error filtering by # of findings #104

Closed bpdesigns closed 4 years ago

bpdesigns commented 4 years ago

steps to reproduce the bug.

  1. Selected "Dept of Transportation" from dropdown,
  2. Clicked on "Only show audits with findings" and "Include audits with findings for specified agency"
  3. Clicked on "findings count" to sort by least to greatest #
  4. Clicked on "findings count" again
  5. Returns "502 Bad Gateway: Registered endpoint failed to handle the request."

Desired update

Step 5 above should sort findings by greatest # to least #

danielnaab commented 4 years ago

You'll get a 502 if a request takes too long to complete, which, given our resource constraints, might happen with large search results.

There have been some changes that will speed up some queries so hopefully it is less common.

bpdesigns commented 4 years ago

Thanks @danielnaab is there a way to estimate when this will happen - such as size of result?

Can we create a custom 502 response explaining what's happening?

danielnaab commented 4 years ago

@bpdesigns not sure on estimates, but yes we can likely create a custom error message.

bpdesigns commented 4 years ago

Thanks Dan, how about:

"Sorry for this 502 response. Our prototype system cannot handle this size of a search at the moment due to resource constraints. Please try another search and if this problem persists contact: federal-grant-reporting@gsa.gov and we'll work to resolve it.

Thanks for using Distiller!"

bpdesigns commented 4 years ago

This is a cloud.gov issue that we don't control