Add document_collection schema #312
Merged
Conversation
Closing while adding more examples. |
Details: * Body is optional for collections * First public at is required like other editioned content * A document collection must have an ordered list of groups * Each group must have a title and an ordered list of documents, the group may have some body copy * Collections can be political * Collections can be withdrawn * Include tags – these are not really used except for emails, see #292 for why they weren't removed from other formats Links: * Add documents GUID list, make this a required field * Whitehall marks "policy areas" as being required in the editor, but content schemas say this is "largely deprecated", so it has been intentionally left out. (Policy areas are included by base links) * Add topical events * Lead organisations are also required, we've changed the pattern for organisations to "organisations" in links and emphasised organisations in details – there isn't a pattern yet for which bits must be required to match current behaviour.
"document_collections" was included twice. Interestingly this didn’t cause validations to fail.
Include features so they can be tested in the frontend
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Details:
Links:
to match current behaviour.
Include examples based on:
https://www.gov.uk/government/collections/national-driving-and-riding-standards
https://www.gov.uk/government/collections/financial-sanctions-regime-specific-consolidated-lists-and-releases
https://trello.com/c/PMeMQb5E/410-11-document-collection-migration-mvp-content-schema-examples-and-front-end-work