From 0be46682943f578023755e180f4bebdc1eded25a Mon Sep 17 00:00:00 2001 From: Becka Lelew Date: Thu, 3 Nov 2022 10:00:41 +0000 Subject: [PATCH 1/2] switch from using dummy content store to using gov api We are retiring the dummy content store as part of replatforming work. Switching to using gov.uk/api for PLEK_SERVICE_CONTENT_STORE_URI brings us this application in line with most other applications. --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index a6a6f0541..e8d1e4cfd 100644 --- a/app.json +++ b/app.json @@ -12,7 +12,7 @@ "value": "true" }, "PLEK_SERVICE_CONTENT_STORE_URI": { - "value": "https://govuk-content-store-examples.herokuapp.com/api" + "value": "https://www.gov.uk/api" }, "PLEK_SERVICE_RUMMAGER_URI": { "value": "https://www.gov.uk/api" From ac540ebef32adffb48147a27f4c9abd9fb7c2249 Mon Sep 17 00:00:00 2001 From: Becka Lelew Date: Thu, 3 Nov 2022 14:27:23 +0000 Subject: [PATCH 2/2] remove dummy content store from heroku index page We are retiring the dummy content store, so we can no longer show examples from this on the preview app. Instead, the real examples from the live site given further down on the page should suffice. --- app/views/development/index.html.erb | 30 ---------------------------- 1 file changed, 30 deletions(-) diff --git a/app/views/development/index.html.erb b/app/views/development/index.html.erb index 1ac715249..402dca73b 100644 --- a/app/views/development/index.html.erb +++ b/app/views/development/index.html.erb @@ -42,36 +42,6 @@ -

Examples

- -

- The content schemas contain <%= link_to 'handmade examples', 'https://github.com/alphagov/govuk-content-schemas/tree/master/examples' %> - for each schema rendered by this app. These are used in tests. -

- -

- If this application is pointed at the <%= link_to 'dummy content store', 'https://github.com/alphagov/govuk-content-schemas/blob/master/docs/running-frontend-against-examples.md' %> - you can use the links below to view pages using the examples. For a - full list of examples, see <%= link_to 'govspeak-examples guide', 'https://govuk-content-store-examples.herokuapp.com' %>. -

- - <% @schema_names.each do |schema_name| %> - - - - - - <% end %> -
- <%= schema_name %> - - <%= link_to "Canonical example", "/examples/#{schema_name}/#{schema_name}" %>* - - <%= link_to "Random example", "/examples/#{schema_name}/random" %>* -
- - * Will only work if this app is pointed at the <%= link_to 'dummy content store', 'https://github.com/alphagov/govuk-content-schemas/blob/master/docs/running-frontend-against-examples.md' %>. -

Examples from GOV.UK

These pages are good examples of the types of pages rendered by this application.