Skip to content

Commit

Permalink
Add "editionable_topical_events" to the topical events content type
Browse files Browse the repository at this point in the history
This means that we can start adding editionable topical events to whitehall using the existing schema
  • Loading branch information
JonathanHallam committed Dec 11, 2024
1 parent 833490b commit e962e9b
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions content_schemas/allowed_document_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- document_collection
- drcf_digital_markets_research
- drug_safety_update
- editionable_topical_event
- email_alert_signup
- embassies_index
- employment_appeal_tribunal_decision
Expand Down
1 change: 1 addition & 0 deletions content_schemas/dist/formats/generic/frontend/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"document_collection",
"drcf_digital_markets_research",
"drug_safety_update",
"editionable_topical_event",
"email_alert_signup",
"embassies_index",
"employment_appeal_tribunal_decision",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"document_type": {
"type": "string",
"enum": [
"topical_event"
"topical_event",
"editionable_topical_event"
]
},
"first_published_at": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"document_type": {
"type": "string",
"enum": [
"topical_event"
"topical_event",
"editionable_topical_event"
]
},
"email_document_supertype": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"document_type": {
"type": "string",
"enum": [
"topical_event"
"topical_event",
"editionable_topical_event"
]
},
"first_published_at": {
Expand Down
2 changes: 1 addition & 1 deletion content_schemas/formats/topical_event.jsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(import "shared/default_format.jsonnet") + {
document_type: "topical_event",
document_type: ["topical_event", "editionable_topical_event"],
definitions: (import "shared/definitions/_whitehall.jsonnet") + {
details: {
type: "object",
Expand Down

0 comments on commit e962e9b

Please sign in to comment.