-
Notifications
You must be signed in to change notification settings - Fork 117
Organization member at wrong level for Agency-wide inventories #187
Comments
@mattbailey0 and @michael-balint, I think @apyle is right. The organization field should probably be nested inside the projects object, right? |
@okamanda, a more radical restructuring might be in order. If we create
This is definitely something for a new schema version and not addressing the immediate issue. |
Yes, if we're listing sub-agencies as |
I guess I'd thought of the Therefore, from the original example above, the "USDA OCIO" and "USDA APHIS" would each have their own projects and not actually get combined. At least in the code.json file.. |
@IanLee1521, I'm not quite following you. Could you provide a code.json snippet to show me what you're thinking? |
Sure, I was thinking something like:
|
@IanLee1521, gotcha. That would work too and would be pretty simple to build from sub-agency inventories. |
That's what I was thinking, though @mattbailey0 or others should probably chime in with the official answer. FWIW, I created a simpler example over on: #196 (comment) Edit: I should also add that I posted a sample code.json for DOE @LLNL projects which I generated from our @llnl/scraper tool as a gist for reference: https://gist.github.com/IanLee1521/b7d7c0c2d8c24b10dd04edd5e8cab6c4 Note it is just the JSON object for DOE LLNL, and another process would have to append them into a JSON array. |
Based on discussion in GSA#187
FYI -- This was also mentioned just today:
Perhaps the change to move the organization key could be made in v1.1.0 of the schema? (Though according to semantic versioning, maybe that should actually appear in v2.0 of the schema). Currently, v1.0.1 defines it: {
"agency": "USDA",
"projects": [{
"organization": "OCIO",
"name": "DigitalGov Analytics",
...
}, {
"organization": "OCIO",
"name": "Gov-Drupal",
...
}, {
"organization": "APHIS",
"name": "Animal Disease Spread Model",
...
}]
} |
Hi all - sorry to have been so absent on this discussion. A few things:
|
Thanks @mattbailey0, some responses:
I totally understand wanting to keep this stable. Perhaps a way to move forward into the
My 2 cents are that the schema should handle organizations under agencies as far as an agency That would allow flexibility for independent organizations under an agency to host their own
My feeling is that would be solved by keeping the |
Resolved in version 1.0.1 of the schema |
When an Agency has multiple sub-agencies or bureaus the
organization
field will cause a JSON duplicate key error when trying to combine these sub-agency's inventories for the Agency inventory. For instance, if we combine the USDA OCIO inventorywith the USDA APHIS inventory
and create
we get the duplicate key error. There isn't a way in the current specification to combine these inventories and keep the
organization
associated with itsprojects
. Since the specification version 1.0 seems to be set (see #46), a solution for Agency-wide inventories is to use theagency
name for the mandatoryorganization
member and then add anorganization
member to eachproject
object. This will still associate the sub-agency with the project details.Anyone have another approach?
The text was updated successfully, but these errors were encountered: