Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 2.78 KB

rfc-086-draft-stack-rummager.md

File metadata and controls

61 lines (48 loc) · 2.78 KB

Draft Stack Rummager

Summary

RFC 86 proposes setting up a instance of Rummager for the draft stack.

Problem

The draft stack (content preview) part of GOV.UK relies in places on the rummager service (Search API).

There is only one instance of this service, which is primarily used for the live stack, but is also currently used from some services on the draft stack (see govuk-puppet).

The current Rummager instance may expose some associations between live content and draft content (e.g. draft mainstream browse pages or taxons), depending on the internal index which is used for the live content. However, the current trend is that associations with draft content will be supported for less live content, as more types of content are migrated to the govuk index (see ADR 4), as the process of populating this index does not involve fetching draft content from the Publishing API.

Having some way of including draft content in the responses from Rummager on the draft stack would make the draft stack more useful. Previewing pages that use Rummager for some of the data won't give an accurate representation of what the page would look like if the relevant content is published.

Proposal

The proposal made here to improve the user experience on the draft stack, is to setup a draft instance of rummager, populated with the appropriate content via the Publishing API, and then switch to using this from draft services.

Action Plan

  1. Deploy rummager to the draft stack
    • Involves changing govuk-puppet
    • Possibly requires some new machines
  2. Send draft content to a new draft_documents RabbitMQ Exchange
    • From the Publishing API, for at least the PutContent, and Unpublish commands
    • Don't send any access limited content, to avoid Rummager indexing it
  3. Subscribe the draft instance of Rummager to the draft_documents exchange, as well as the existing published_documents exchange

If the above work is done, at this point, there will be a draft Rummager service. To switch the draft frontend apps to use this instead, the next step is to make an assessment regarding whether it will work better than the live instance. This will probably depend on how much content has been migrated to the govuk index.