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

Query USAJobs API to populate list on about/careers #769

Closed
2 tasks done
Tracked by #60
johnnyporkchops opened this issue Jan 27, 2017 · 2 comments
Closed
2 tasks done
Tracked by #60

Query USAJobs API to populate list on about/careers #769

johnnyporkchops opened this issue Jan 27, 2017 · 2 comments
Assignees
Milestone

Comments

@johnnyporkchops
Copy link
Contributor

johnnyporkchops commented Jan 27, 2017

I have a proof of concept in the form simple app n FEC-CMS that works to query the API and return open jobs every time a user navigates to about/careers. Right now this is a separate app but could be added to the main views.py if that makes more sense for any reason. A PR will be created for this shortly

We currently have a Python script that runs via cron job to query USAJobs API and return all open FEC positions. It creates a table that is then included in the current /pages/jobs/jobs.shtml.

A simpler way to do this would be to use jQuery/AJAX to query the api on page-load. We originally had this solution on our website but it would not work consistently across IE/versions and various Windows configurations (even with polyfills and/or IE-hacks). Some members of the FEC HR department had laptops that that defaulted to IE-7 or 8 when logged into the network (to support internal legacy applications). Although it is now widely considered OK to abandon support for LTE IE8, when members of HR cannot see jobs on the jobs page, they are not very responsive to this argument. So we switched to the current Python/ cron jobs solution.

@noahmanger
Copy link

Sounds good. I think this can all be handled server-side. What about making it an inclusion tag, which can then be added as a StaticBlock on the ResourcePage template?

@noahmanger
Copy link

Resolved by #799 . Nice work @johnnyporkchops !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants