Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The know-all app
branch: release

This branch is even with master

Merge pull request #245 from alphagov/bump-govuk-content-models-to-28…

…-5-0

Bump govuk_content_models to 28.5.0
latest commit 3f69ef6adf
Isabell Long issyl0 authored

README.md

Panopticon

The GOV.UK content platform has been built with a focus on tools over content. That is manifest in the existence of numerous small applications that provide focussed solutions to specific user needs, or offer a suite of similar but distinct solutions; alongside the 'publisher/frontend' editorial tools there are apps like 'smart answers', 'planners', and so on.

To bring that all together as a single site a single interface was required to attach consistent metadata to the pieces, connect them together as 'related items' and generally have a complete overview of all the solutions/artefacts in the system. That's this app: Panopticon.

Interfaces

Panopticon provides:

  • an admin UI where items can be created and their metadata edited. This is authenticated in conjunction with sign-on-o-tron.
  • a writeable API where applications can register the content they provide. This is authenticated using OAuth2.
  • a read API for retrieving metadata about a given item

Importing organisation tags

Panopticon includes a Rake task to create tags for each organisation from the Whitehall app. To run this in the development environment, the production data source can be used, so that there is no need to have an up-to-date Whitehall database.

PLEK_SERVICE_WHITEHALL_ADMIN_URI=https://www.gov.uk/ bundle exec rake organisations:import

Indexing artefacts in search

Panopticon includes observers which will index, update or delete records in the search index when an artefact is updated. It expects an instance of Rummager to be present.

Indexing is disabled by default in the development environment. To turn indexing on, set the UPDATE_SEARCH environment variable when starting Panopticon.

Something went wrong with that request. Please try again.