Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #290 from alphagov/history-mode
Browse files Browse the repository at this point in the history
Add government and political fields to detailed guides
  • Loading branch information
fofr committed Apr 26, 2016
2 parents 68c9774 + 4c63fbd commit 39c468e
Show file tree
Hide file tree
Showing 129 changed files with 3,501 additions and 5 deletions.
27 changes: 27 additions & 0 deletions dist/formats/case_study/frontend/schema.json
Expand Up @@ -291,6 +291,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -327,6 +350,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/case_study/publisher/schema.json
Expand Up @@ -162,6 +162,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -198,6 +221,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/case_study/publisher_v2/links.json
Expand Up @@ -89,6 +89,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -125,6 +148,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/case_study/publisher_v2/schema.json
Expand Up @@ -102,6 +102,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -138,6 +161,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/coming_soon/frontend/schema.json
Expand Up @@ -209,6 +209,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -245,6 +268,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/coming_soon/publisher/schema.json
Expand Up @@ -80,6 +80,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -116,6 +139,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/coming_soon/publisher_v2/links.json
Expand Up @@ -68,6 +68,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -104,6 +127,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/coming_soon/publisher_v2/schema.json
Expand Up @@ -41,6 +41,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -77,6 +100,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down
27 changes: 27 additions & 0 deletions dist/formats/contact/frontend/schema.json
Expand Up @@ -396,6 +396,29 @@
],
"description": "A short identifier we send to Google Analytics for multi-valued fields. This means we avoid the truncated values we would get if we sent the path or slug of eg organisations."
},
"government": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"slug",
"current"
],
"properties": {
"title": {
"type": "string",
"description": "Name of the government that first published this document, eg '1970 to 1974 Conservative government'."
},
"slug": {
"type": "string",
"description": "Government slug, used for analytics, eg '1970-to-1974-conservative-government'."
},
"current": {
"type": "boolean",
"description": "Is the government that published this document still the current government."
}
}
},
"guid": {
"type": "string",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
Expand Down Expand Up @@ -432,6 +455,10 @@
}
}
},
"political": {
"type": "boolean",
"description": "If the content is considered political in nature, reflecting views of the government it was published under."
},
"route": {
"type": "object",
"additionalProperties": false,
Expand Down

0 comments on commit 39c468e

Please sign in to comment.