Closed johnnyporkchops closed 1 week ago
Attention: Patch coverage is 72.72727%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 77.99%. Comparing base (
e20a3e4
) to head (3388d23
). Report is 47 commits behind head on develop.
Files | Patch % | Lines |
---|---|---|
fec/home/templatetags/open_jobs.py | 70.00% | 3 Missing :warning: |
fec/home/tests/test_usajobs.py | 75.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@JonellaCulmer . Do you think we could come up with different wording for the first sentence in the usajobs error message "USAJobs is unavailable"
. After digging into this more for this ticket, I realized that there could be a scenario where it is indeed unavailable or "down", but it could also be that just the API is down or not returning the data we need to post jobs. So rather than saying "USAJobs is unavailable"
, could we say something more generic in the first sentence like "Something went wrong."
? That way we are not essentially saying "USAJobs is unavailable....Please visit usajobs.gov..."
Here is the current error message:
"USAJOBS is unavailable. We are temporarily unable to post open FEC positions. Please visit usajobs.gov for more information."
UPDATE: After pairing with UX/Content team, we agreed we can leave this comment as is.
Summary (required)
500 Internal server error
Required reviewers
One python developer
Impacted areas of the application
/about/careers/
open_jobs.py - get_jobs()
templatetagHow to test
Export the following env vars from CF in your shell :
PU00
forPeace Corps
if you want to confirm job data renders to the page)/about/careers/
pytest
from /fec-cms and /fec-cms/fec directoriesBelow are a few ways to trigger various error scenarios if you are interested in testing them:
open_jobs.py
to a non existent website. Should get (ConnectionError) at the end of the error message in the page.querystring["page"] = 2
to the querystring parameters, should see: "There are currently no open positions..." message (since it shows a max of 25 jobs per page, it will return no jobs)"host": "data.usajobs.gov"
(@ line 36) and then change the JOB_URL to"https://dummyjson.com/products"
, should get a (KeyError)