Change a government following a general election
Change a government in Whitehall
Following a general election or other reason for governmental change the current Government in Whitehall will need to be closed, and a new one created.
Closing a government
Governments are listed at the government path of Whitehall Admin.
- Select the current government, and click the
Prepare to close this governmentlink.
- Close the government.
This will close the current government and remove all ministerial appointments. Changes will instantly appear on the live site.
The Content Support team will be able to re-assign ministers once the new government has been opened.
Open a new government
This will instantly create a new government. Changes can be seen in
the Rails console by running
The new government should also instantly appear in the response from /api/governments.
Applying a banner to political content published by the previous government
Content in Whitehall can be marked as political. Political content which was published under a previous government is historic?. This is highlighted on the page, and in search results. See these pages for example.
Marking content as political can happen automatically through the
political flag on an
can also be set manually.
Updating newly historic content
There is a Rake task to republish all political content and ensure these banners are applied for political content which is now associated with a previous government..
In Integration, this will republish around 92,000 documents. The Publishing API may take between 4 and 6 hours to process these.
Grafana monitoring for:
This may trigger Icinga alerts for the Publishing API: