You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Support list of external JSON inventory files #408
I would like to be able to list external JSON files that other groups within my agency are maintaining so that the central office maintaining the primary JSON inventory file does not need to maintain all listed project releases.This would distribute the load of maintaining the inventory across an agency while still allowing the code.gov team to maintain a singular reference for inventory culling.
Current Behavior
Currently, all release information must be included in a single JSON file for an entire agency. However, some agencies have a significantly large number of sub-orgs and OSS projects that this becomes quite arduous to maintain.
Possible Solution
I would suggest that the schema support a list (array) of external inventory files to be included in the primary file. For example, an agency might define something like:
The code.gov site would need to grab the "primary" JSON file first from the identified agency primary URL/code.json file, then grab any referenced external releases and merge those releases into the primary file.
In the interim, if you're looking at writing a script, I really like using node-fetch in JavaScript and requests in Python. Let me know if I can be of any further assistance.
Activity
DanielJDufour commentedon Jan 17, 2018
@jordangov , thanks for the insightful point. We'll discuss this next time we have a major schema upgrade, which could be a while.
DanielJDufour commentedon Jan 17, 2018
In the interim, if you're looking at writing a script, I really like using node-fetch in JavaScript and requests in Python. Let me know if I can be of any further assistance.