Skip to content

Commit

Permalink
Allow edition links for worldwide organisations
Browse files Browse the repository at this point in the history
We are working in Whitehall to make Worldwide Organisation editionable.

Therefore we need to be able to link the links to editions, rather than
documents, to prevent draft updates becoming live before publication.

The standard links will be removed when we have fully migrated to having
editionable worldwide organisations.
  • Loading branch information
brucebolt committed Jan 18, 2024
1 parent 7cad8f3 commit 8d5109b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,45 @@
"type": "object",
"additionalProperties": false,
"properties": {
"corporate_information_pages": {
"description": "Corporate information pages for this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"home_page_offices": {
"description": "The offices, other than the main office, to be shown on the home page of this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"main_office": {
"description": "The main office for this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"office_staff": {
"description": "People currently appointed to office staff roles in this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"policy_areas": {
"description": "A largely deprecated tag currently only used to power email alerts.",
"$ref": "#/definitions/guid_list"
},
"primary_role_person": {
"description": "The person currently appointed to a primary role in this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"roles": {
"description": "All roles associated with this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"secondary_role_person": {
"description": "The person currently appointed to a secondary role in this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"sponsoring_organisations": {
"description": "Sponsoring organisations for this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
},
"world_locations": {
"description": "World Locations associated with this Worldwide Organisation",
"$ref": "#/definitions/guid_list"
}
}
},
Expand Down
11 changes: 11 additions & 0 deletions content_schemas/formats/worldwide_organisation.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,15 @@
world_locations: "World Locations associated with this Worldwide Organisation",
roles: "All roles associated with this Worldwide Organisation",
},
edition_links: (import "shared/base_edition_links.jsonnet") + {
corporate_information_pages: "Corporate information pages for this Worldwide Organisation",
main_office: "The main office for this Worldwide Organisation",
home_page_offices: "The offices, other than the main office, to be shown on the home page of this Worldwide Organisation",
primary_role_person: "The person currently appointed to a primary role in this Worldwide Organisation",
secondary_role_person: "The person currently appointed to a secondary role in this Worldwide Organisation",
office_staff: "People currently appointed to office staff roles in this Worldwide Organisation",
sponsoring_organisations: "Sponsoring organisations for this Worldwide Organisation",
world_locations: "World Locations associated with this Worldwide Organisation",
roles: "All roles associated with this Worldwide Organisation",
},
}

0 comments on commit 8d5109b

Please sign in to comment.