Panopticon is an application originally built to act as a central repository for content on GOV.UK. It is being deprecated.
Features & deprecation
|Specifying legacy source||Feature removed||Done|
|Tagging documents||Any document on GOV.UK will be taggable in content-tagger||Partially done|
|Registering routes||The content-store registers routes for any content-item that doesn't have the "placeholder" format||Partially done|
|Creating tags (via API)||Creating tags is done in collections-publisher. Once nothing is using tags from the content-api this feature can be removed||Partially done|
|Creating artefacts for mainstream publisher||To be decided||Not started|
|Specifying related items||To be decided||Not started|
|Sending data to Rummager||The publishing-api will send the content item to the message queue, which will be picked up by rummager||Not started|
|Syncing links from publishing-api (see)||Frontend apps will start using the content-store for the taggings||Not started|
|See a history of document changes||To be decided||Not started|
- Artefact: a document on GOV.UK.
Panopticon provides three interfaces:
- An admin UI where items can be created and their metadata edited
- A writeable API where applications can register the content they provide
- A read API for retrieving metadata about a given item
- publishing-api for registering URLs.
- router-api also for registering URLs.
- rummager for sending data to search.
Running the application
In the development VM:
cd /var/govuk/development && bowl panopticon
The app with appear at http://panopticon.dev.gov.uk/.
Running the message queue
Frontend apps rely on the tagging data in content_api to show breadcrumbs. Panopticon listens to any changes in publishing-api via the message queue and saves this data.
To run the message queue:
govuk_setenv panopticon bundle exec rake message_queue:consumer
Running the test suite
bundle exec rake