Fec-cms: User Provided Credentials from CF not working for careers page

Created on 17 May 2018  路  5Comments  路  Source: fecgov/fec-cms

The Careers page is not showing the one open job we have.

  • If I hardcode the credentials locally (being sure not to push anywhere) as a test, it works fine.
  • I logged into CF and doublechecked that the credentials are set there and that there is no typos.
    -These are the credentials, not working from /fec/settings/base.py
    -Maybe they are in the wrong place.
USAJOBS_WHOMAYAPPLY = env.get_credential('USAJOBS_WHOMAYAPPLY')
USAJOBS_AGENCY_CODE = env.get_credential('USAJOBS_AGENCY_CODE')
USAJOBS_API_KEY = env.get_credential('USAJOBS_API_KEY')
Bug

All 5 comments

I checked all the User Provided Service configurations in CF with help from @ccostino and they all seem to be correct, so something is awry in prod (and feature as well)
I manually published the current open job on the careers page and removed the USAJobs templatetag block until I can look further at this when I get back.(luckily that was built with a wagtail template)
https://www.fec.gov/about/careers/

Not sure if this info is helpful or not, but the current open job is an internal-only posting, so maybe that's a factor in whatever is happening.

Oh good call to check, @dorothyyeager! Debugging the issue with testing the API call directly was showing it coming back in the response though according to @johnnyporkchops, and the position is publicly visible on USAJOBS as well (but with the internal position marker on it).

Is this working now? I see the one internal posting. Am I missing something?

There was a mistake in the agency code for FEC, where zeros were input as Os. This should be fixed. There are no open jobs to test but on feature it no longer shows other agency jobs, which I am confident means its fixed.
Important Note: This was not a problem related to Cloud.gov or CF recognizing credentials as originally thought.

Was this page helpful?
0 / 5 - 0 ratings