usrse.github.io icon indicating copy to clipboard operation
usrse.github.io copied to clipboard

Issue #1587: Fixes a bug in the JSON API for jobs

Open exoticDFT opened this issue 1 year ago • 0 comments

With the current jobs.yml, we are missing a , after our last job object in our generated JSON at https://us-rse.org/api/jobs.json.

Description

The JSON API for the jobs occasionally misses a , after our last jobs object due the to way we sort. It seems to happen if the last non-expired job in our jobs.yml has a posted date that is earlier than other jobs that are not expired. This should fix #1587 by enforcing a , at the end of every object in the JSON and ending the array with an empty object i.e. {}.

  • Adds a , for every element in our jobs array
  • Updates formatting to see the liquid logic more clearly
  • Moves nowunix capture outside of the for loop for jobs

Checklist:

  • [x] I have previewed changes locally or with CircleCI (runs when PR is created)
  • [x] I have completed any content reviews, such as getting input from relevant working groups. If no, please note this and wait to post the PR to the #website channel until the content has been settled.

When you are ready for a technical review/merge, post the for the link for the PR in the US-RSE Slack (#website) to ask for reviewers.

exoticDFT avatar Sep 26 '24 23:09 exoticDFT