-
Notifications
You must be signed in to change notification settings - Fork 107
Review revised schema content and push to production #217
Comments
@mattbailey0 I just updated the sample code.json file to the one on the master branch: @michael-balint can you take a look at:
and let me know if you think we're missing anything and being inconsistent? @lukad03 with balint's ok, can you then push to staging? |
@mattbailey0 - I just updated with my changes. We should also do something with the |
It looks like the link to the schema is broken now; go to https://code.gov/#/policy-guide/docs/compliance/inventory-code and click on the link there, and you get a 404 error. It links to https://github.com/presidential-innovation-fellows/code-gov-web/blob/master/_draft_content/02_compliance/schema/code.json, but the sample @okamanda mentioned is at https://github.com/presidential-innovation-fellows/code-gov-web/blob/master/src/assets/sample_code.json. |
Hi Cem, We're updating it now.
…On Fri, Jan 6, 2017 at 1:25 PM, Cem Karan ***@***.***> wrote:
It looks like the link to the schema is broken now; go to
https://code.gov/#/policy-guide/docs/compliance/inventory-code and click
on the link there, and you get a 404 error. It links to
https://github.com/presidential-innovation-fellows/code-gov-web/blob/
master/_draft_content/02_compliance/schema/code.json, but the sample
@okamanda <https://github.com/okamanda> mentioned is at
https://github.com/presidential-innovation-fellows/code-gov-web/blob/
master/src/assets/sample_code.json.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#217 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGKYYmYEgF66PBxnUjyu6d7MqaIzSlq6ks5rPocNgaJpZM4LcNX1>
.
--
--
olivier kamanda
white house presidential innovation fellow
e: [email protected]
t: @kamanda
w: pif.gov
|
Couple thoughts --
One of the reasons for doing that is it highlights a change that needs to be made to the schema. Namely https://github.com/presidential-innovation-fellows/code-gov-web/blob/master/src/app/components/policy-guide/docs/compliance/compliance-inventory-code/compliance-inventory-code.template.html#L20 which says that the code.json file contains a "JSON Object" at the top level, but in reality, it would be better for the top level to be a "JSON Array" of objects.
Instead of:
It looks like that line should be another nested list:
|
@IanLee1521 - these are thoughtful questions, here are my (hopefully) thoughtful responses... 1.) Yes, for now, changes to the schema revolve around changing that HTML file. I would take your suggestion a bit further - the core file should be json (in the json-schema format). If the file is more machine-readable, we can apply automated tests and it makes it far less likely that human errors will be introduced. Any HTML, markdown, or sample json can also be generated based upon the schema file. 2.) The issue that v1.0.0 of the schema had with the 3.) This isn't a bug, but perhaps it could be called out / visualized differently. I believe the intent was to note that the I'm closing this issue since we've pushed our revisions to production (see https://code.gov/#/policy-guide/docs/compliance/inventory-code). |
@michael-balint - Sounds reasonable. Perhaps we should open a new issue to track the idea of moving the core schema to a json-schema from the final HTML form? |
Great idea - go for it!
…On Wed, Jan 11, 2017 at 9:58 AM, Ian Lee ***@***.***> wrote:
@michael-balint <https://github.com/michael-balint> - Sounds reasonable.
Perhaps we should open a new issue to track the idea of moving the core
schema to a json-schema from the final HTML form?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#217 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADV2c3hL2E3WqJoVZgpjHn8YumKYrE4Yks5rRO4vgaJpZM4LcNX1>
.
|
I've reviewed and revised the content in ok-schema-fix and merged into master as discussed. We need a final review from the team and then to deploy the revisions to production.
TODO: change link under the second h2 to the sample json file to point to the production endpoint.
The text was updated successfully, but these errors were encountered: