From 0fc63e728aae499e4fc3bee6e300e49651c0f8e8 Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Mon, 31 Jul 2023 18:02:57 +0100 Subject: [PATCH 01/11] Create script to migration consultations to call for evidence Since adding the call for evidence document type we need to move any documents that have been marked as a consultation but are really a call for evidence Within this script we not only change the document type from consultation to call for evidence but also ensure that the attachments connected to the consultation are attached to the new calls for evidence. --- ...grate_consultation_to_call_for_evidence.rb | 90 ++++++++++ ..._consultation_to_call_for_evidence_test.rb | 154 ++++++++++++++++++ 2 files changed, 244 insertions(+) create mode 100644 lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb create mode 100644 test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb new file mode 100644 index 00000000000..79f3bab429e --- /dev/null +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -0,0 +1,90 @@ +module DataHygiene + class MigrateConsultationToCallForEvidence + IGNORE_ASSOCIATION_ATTRIBUTES = %w[id edition_id type].freeze + + attr_reader :document, :whodunnit, :call_for_evidence, :consultation, :draft_consultation + + def initialize(document:, whodunnit:) + @document = document + @whodunnit = whodunnit + + if can_be_migrated?(document.latest_edition) + @consultation = document.latest_edition + else + raise "Document cannot be migrated" + end + end + + def call + document.transaction do + create_draft_call_for_evidence + migrate_outcome + migrate_participation + end + end + + private + + def can_be_migrated?(edition) + edition.is_a?(Consultation) && edition.publicly_visible? + end + + def create_draft_call_for_evidence + @draft_consultation = consultation.create_draft(whodunnit) + @call_for_evidence = @draft_consultation.becomes!(CallForEvidence) + call_for_evidence.minor_change = true + call_for_evidence.save! + end + + def migrate_outcome + return unless @draft_consultation.outcome + + source = @draft_consultation.outcome + destination = @call_for_evidence.build_outcome + + destination.assign_attributes association_attributes(source) + + source.attachments.each do |attachment| + destination.attachments << attachment.deep_clone + end + + source.destroy! + destination.save! + end + + def migrate_participation + return if @draft_consultation.consultation_participation.blank? + + source = @draft_consultation.consultation_participation + destination = @call_for_evidence.build_call_for_evidence_participation + + destination.assign_attributes association_attributes(source, except: %w[consultation_response_form_id]) + + if source.consultation_response_form.present? + migrate_response_form( + source: source.consultation_response_form, + destination: destination.build_call_for_evidence_response_form, + ) + end + + source.destroy! + destination.save! + end + + def migrate_response_form(source:, destination:) + destination.title = source.title + + source_data = source.consultation_response_form_data + destination_data = destination.build_call_for_evidence_response_form_data + + # Download the source file and set it as the destination file + # This will be uploaded on the destination model when saved + # Note: this will not redirect or replace the source file + destination_data.file.download!(source_data.file.url) + end + + def association_attributes(old_object, except: []) + old_object.attributes.except(*IGNORE_ASSOCIATION_ATTRIBUTES, *except) + end + end +end diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb new file mode 100644 index 00000000000..5d43e0c1e51 --- /dev/null +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -0,0 +1,154 @@ +require "test_helper" + +class MigrateConsultationToCallForEvidenceTest < ActiveSupport::TestCase + extend Minitest::Spec::DSL + + let(:whodunnit) { create(:user) } + let(:document) { consultation.document } + + # Create a full-fat Consultation to exercise the various different fields + # and associated records that should be accommodated for when migrating. + let(:consultation) do + create( + :published_consultation, + # Attachments on the Consultation + :with_alternative_format_provider, + attachments: [ + build(:file_attachment), + build(:html_attachment), + ], + + # Applies to all UK nations except Scotland + all_nation_applicability: false, + nation_inapplicabilities: [ + build(:nation_inapplicability, excluded: true, alternative_url: "https://www.gov.scot"), + ], + + # A consultation outcome with attachments + outcome: build(:consultation_outcome, attachments: [ + build(:file_attachment), + build(:html_attachment), + ]), + + # How to participate in the consultation + # including an attached response form file + consultation_participation: build( + :consultation_participation, + link_url: "https://department.gov.uk/respond", + email: "responses@department.gov.uk", + postal_address: "10 Downing Street\nLondon\nSW1A 2AA", + consultation_response_form: build(:consultation_response_form), + ), + ) + end + + let(:call_for_evidence) { document.latest_edition if document.latest_edition.is_a?(CallForEvidence) } + + def migrate + DataHygiene::MigrateConsultationToCallForEvidence.new(document:, whodunnit:).call + document.reload + end + + # Stub HTTP requests for assets so that CarrierWave + # can download files from Consultations and + # upload them to Calls For Evidence + def stub_asset_downloads + # Make CarrierWave use WebMock + # See: https://github.com/carrierwaveuploader/carrierwave/issues/2531#issuecomment-776623496 + CarrierWave::Downloader::Base.any_instance.stubs(:skip_ssrf_protection?).returns(true) + + # Stub requests for asset files + # and respond with the requested fixture file + urls_starting = "https://static.test.gov.uk/government/uploads/system/uploads/" + stub_request(:get, %r{^#{Regexp.escape(urls_starting)}}) + .to_return do |request| + fixture_name = request.uri.to_s.split("/").last + { status: 200, body: file_fixture(fixture_name) } + end + end + + before do + stub_asset_downloads + end + + it "converts a Consultation document into a Call for Evidence" do + migrate + + # They have the same attributes + ignore_attributes = %w[id type state auth_bypass_id minor_change change_note force_published lock_version] + assert_equal consultation.attributes.except(*ignore_attributes), + call_for_evidence.attributes.except(*ignore_attributes) + + # and the same content + assert_equal consultation.title, call_for_evidence.title + assert_equal consultation.summary, call_for_evidence.summary + assert_equal consultation.body, call_for_evidence.body + + # The document is in the state we expect it to be + assert_equal 2, document.editions.count + assert_instance_of CallForEvidence, document.latest_edition + assert_equal "CallForEvidence", document.document_type + assert consultation.published? + assert call_for_evidence.draft? + end + + it "converts the Consultation Outcome to a Call for Evidence Outcome" do + migrate + + # Both outcomes have the same attributes + ignore_attributes = %w[id edition_id type] + assert_equal consultation.outcome.attributes.except(*ignore_attributes), + call_for_evidence.outcome.attributes.except(*ignore_attributes) + end + + it "converts the Consultation Participation to a Call for Evidence Participation" do + # Assert that a file gets uploaded to Asset Manager + AssetManagerCreateWhitehallAssetWorker.expects(:perform_async).at_least_once + + migrate + + consultation_participation = consultation.consultation_participation + call_for_evidence_participation = call_for_evidence.call_for_evidence_participation + + # Both participation records have the same attributes + ignore_attributes = %w[id edition_id type consultation_response_form_id call_for_evidence_response_form_id] + assert_equal consultation_participation.attributes.except(*ignore_attributes), + call_for_evidence_participation.attributes.except(*ignore_attributes) + + # The response form has been migrated + assert consultation_participation.has_response_form? + assert call_for_evidence_participation.has_response_form? + + consultation_response_form = { + title: consultation_participation.consultation_response_form.title, + filename: consultation_participation.consultation_response_form.file.identifier, + } + + call_for_evidence_response_form = { + title: call_for_evidence_participation.call_for_evidence_response_form.title, + filename: call_for_evidence_participation.call_for_evidence_response_form.file.identifier, + } + + assert_equal consultation_response_form, call_for_evidence_response_form + end + + describe "invalid documents" do + context "when latest edition is not a consultation" do + let(:consultation) { create(:published_news_story) } + + it "rejects the document" do + assert_raises("Document cannot be migrated") { migrate } + end + end + + context "when the document has a draft edition" do + before do + consultation.create_draft(whodunnit) + end + + it "rejects the document" do + assert_raises("Document cannot be migrated") { migrate } + end + end + end +end From 3a0a9bb66d48d7824bac3d272cdfc904e6cb887d Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Wed, 23 Aug 2023 21:11:44 +0100 Subject: [PATCH 02/11] Attribute migrations to the whodunnit user --- .../migrate_consultation_to_call_for_evidence.rb | 10 ++++++---- .../migrate_consultation_to_call_for_evidence_test.rb | 7 +++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index 79f3bab429e..e8b6f9a6e17 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -16,10 +16,12 @@ def initialize(document:, whodunnit:) end def call - document.transaction do - create_draft_call_for_evidence - migrate_outcome - migrate_participation + AuditTrail.acting_as(whodunnit) do + document.transaction do + create_draft_call_for_evidence + migrate_outcome + migrate_participation + end end end diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 5d43e0c1e51..292ce6d35e0 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -132,6 +132,13 @@ def stub_asset_downloads assert_equal consultation_response_form, call_for_evidence_response_form end + it "attributes the migration to the whodunnit user" do + migrate + + assert_equal whodunnit, call_for_evidence.creator + assert_equal [whodunnit], call_for_evidence.versions.map(&:user).uniq + end + describe "invalid documents" do context "when latest edition is not a consultation" do let(:consultation) { create(:published_news_story) } From a9e4029f180734c0c9bf5643d59a649ee478483f Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Wed, 30 Aug 2023 14:11:26 +0100 Subject: [PATCH 03/11] Add test coverage for migrated attachments --- ..._consultation_to_call_for_evidence_test.rb | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 292ce6d35e0..cd94456e120 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -17,6 +17,7 @@ class MigrateConsultationToCallForEvidenceTest < ActiveSupport::TestCase build(:file_attachment), build(:html_attachment), ], + images: build_list(:image, 1), # Applies to all UK nations except Scotland all_nation_applicability: false, @@ -67,6 +68,33 @@ def stub_asset_downloads end end + def assert_equal_attachments(expected, actual) + ignore_attributes = %w[id attachable_id attachable_type safely_resluggable html_attachment_id] + + attachment_attributes = lambda do |attachment| + attributes = attachment.attributes.except(*ignore_attributes) + + if attachment.is_a? HtmlAttachment + attributes["govspeak_content"] = attachment.govspeak_content.attributes.except(*ignore_attributes) + end + + attributes + end + + assert_equal expected.map(&attachment_attributes), actual.map(&attachment_attributes) + assert actual.none?(&:safely_resluggable) + end + + def assert_equal_images(expected, actual) + ignore_attributes = %w[id edition_id] + + image_attributes = lambda do |image| + image.attributes.except(*ignore_attributes) + end + + assert_equal expected.map(&image_attributes), actual.map(&image_attributes) + end + before do stub_asset_downloads end @@ -84,6 +112,10 @@ def stub_asset_downloads assert_equal consultation.summary, call_for_evidence.summary assert_equal consultation.body, call_for_evidence.body + # and the same attachments + assert_equal_attachments consultation.attachments, call_for_evidence.attachments + assert_equal_images consultation.images, call_for_evidence.images + # The document is in the state we expect it to be assert_equal 2, document.editions.count assert_instance_of CallForEvidence, document.latest_edition @@ -99,6 +131,10 @@ def stub_asset_downloads ignore_attributes = %w[id edition_id type] assert_equal consultation.outcome.attributes.except(*ignore_attributes), call_for_evidence.outcome.attributes.except(*ignore_attributes) + + # and the same attachments + assert_equal_attachments consultation.outcome.attachments, + call_for_evidence.outcome.attachments end it "converts the Consultation Participation to a Call for Evidence Participation" do From 09faac17c8878638c7faed824451269780668616 Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Wed, 30 Aug 2023 14:21:52 +0100 Subject: [PATCH 04/11] Test coverage for nation applicability --- .../migrate_consultation_to_call_for_evidence_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index cd94456e120..8cf56933ecf 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -116,6 +116,9 @@ def assert_equal_images(expected, actual) assert_equal_attachments consultation.attachments, call_for_evidence.attachments assert_equal_images consultation.images, call_for_evidence.images + # and they apply to the same nations + assert_equal consultation.national_applicability, call_for_evidence.national_applicability + # The document is in the state we expect it to be assert_equal 2, document.editions.count assert_instance_of CallForEvidence, document.latest_edition From 980320bb7803bad8b176bcc6c6c45ad90446a36e Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Wed, 30 Aug 2023 17:49:47 +0100 Subject: [PATCH 05/11] Merge 'Outcome' and 'Public Feedback' Consultations can have an 'Outcome' as well as a 'Public Feedback' record, whereas Calls for Evidence can only have an 'Outcome'. We made the decision to merge these two sections into one when migrating Consultations to Calls for evidence. --- ...grate_consultation_to_call_for_evidence.rb | 25 ++++++--- ..._consultation_to_call_for_evidence_test.rb | 51 ++++++++++++++++++- 2 files changed, 69 insertions(+), 7 deletions(-) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index e8b6f9a6e17..860c3578e02 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -39,18 +39,31 @@ def create_draft_call_for_evidence end def migrate_outcome - return unless @draft_consultation.outcome + return unless @draft_consultation.outcome || @draft_consultation.public_feedback - source = @draft_consultation.outcome + source_outcome = @draft_consultation.outcome + source_public_feedback = @draft_consultation.public_feedback destination = @call_for_evidence.build_outcome - destination.assign_attributes association_attributes(source) + destination.assign_attributes association_attributes(source_outcome || source_public_feedback) - source.attachments.each do |attachment| - destination.attachments << attachment.deep_clone + # Merge 'Outcome' summary and 'Public Feedback' summary + destination.summary = [source_outcome&.summary, source_public_feedback&.summary].compact.join("\n\n") + + # Copy 'Outcome' attachments, followed by 'Public Feedback' attachments + [source_outcome, source_public_feedback].compact.each do |source| + source.attachments.each do |attachment| + destination.attachments << attachment.deep_clone + end + + source.destroy! + end + + # Set 'ordering' attributes correctly (they have to be unique) + destination.attachments.each_with_index do |attachment, index| + attachment.ordering = index end - source.destroy! destination.save! end diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 8cf56933ecf..f3c72cac2e2 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -69,7 +69,7 @@ def stub_asset_downloads end def assert_equal_attachments(expected, actual) - ignore_attributes = %w[id attachable_id attachable_type safely_resluggable html_attachment_id] + ignore_attributes = %w[id attachable_id attachable_type safely_resluggable html_attachment_id ordering] attachment_attributes = lambda do |attachment| attributes = attachment.attributes.except(*ignore_attributes) @@ -178,6 +178,55 @@ def assert_equal_images(expected, actual) assert_equal [whodunnit], call_for_evidence.versions.map(&:user).uniq end + describe "merging Public Feedback with Outcome" do + let(:public_feedback) do + build( + :consultation_public_feedback, + attachments: [ + build(:csv_attachment), + build(:html_attachment), + ], + ) + end + + context "when the Consultation has both Public Feedback and an Outcome" do + before do + consultation.update!(public_feedback:) + end + + it "merges the Public Feedback and Outcome into the Call for Evidence Outcome" do + migrate + + # Summaries have been merged + assert_equal "#{consultation.outcome.summary}\n\n#{consultation.public_feedback.summary}", + call_for_evidence.outcome.summary + + # Attachments have been merged + assert_equal_attachments consultation.outcome.attachments + consultation.public_feedback.attachments, + call_for_evidence.outcome.attachments + end + end + + context "when the Consultation only has Public Feedback" do + before do + consultation.outcome.destroy! + consultation.update!(public_feedback:) + end + + it "moves the Public Feedback to the Call for Evidence Outcome" do + migrate + + # Summaries have been merged + assert_equal consultation.public_feedback.summary, + call_for_evidence.outcome.summary + + # Attachments have been merged + assert_equal_attachments consultation.public_feedback.attachments, + call_for_evidence.outcome.attachments + end + end + end + describe "invalid documents" do context "when latest edition is not a consultation" do let(:consultation) { create(:published_news_story) } From 9f40a476a17ecd0fe460d3dd060b19f8b6015895 Mon Sep 17 00:00:00 2001 From: Rebecca Pearce <17481621+beccapearce@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:24:37 +0100 Subject: [PATCH 06/11] Adds in reindexing to CFE migration script To ensure search remains up to date we have added deleting the old consultation record from search index and adding the new call for evidence edition to the search index. This functionality may be removed after publishing is added, but the tests will still be useful. --- .../migrate_consultation_to_call_for_evidence.rb | 2 ++ .../migrate_consultation_to_call_for_evidence_test.rb | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index 860c3578e02..d43591e3311 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -21,6 +21,8 @@ def call create_draft_call_for_evidence migrate_outcome migrate_participation + Whitehall::SearchIndex.delete(@consultation) + Whitehall::SearchIndex.add(@call_for_evidence) end end end diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index f3c72cac2e2..051b2a8eee5 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -8,7 +8,7 @@ class MigrateConsultationToCallForEvidenceTest < ActiveSupport::TestCase # Create a full-fat Consultation to exercise the various different fields # and associated records that should be accommodated for when migrating. - let(:consultation) do + let!(:consultation) do create( :published_consultation, # Attachments on the Consultation @@ -99,6 +99,13 @@ def assert_equal_images(expected, actual) stub_asset_downloads end + it "refreshes the search index for the old and new edition" do + Whitehall::SearchIndex.expects(:delete).once.with(consultation) + Whitehall::SearchIndex.expects(:add).once.with(instance_of(CallForEvidence)) + + migrate + end + it "converts a Consultation document into a Call for Evidence" do migrate From 9de291d1522143fed847623c83034c97c73c6534 Mon Sep 17 00:00:00 2001 From: Rebecca Pearce <17481621+beccapearce@users.noreply.github.com> Date: Thu, 31 Aug 2023 08:48:23 +0100 Subject: [PATCH 07/11] Publish call for evidence after migration --- ...grate_consultation_to_call_for_evidence.rb | 9 ++++++++- ..._consultation_to_call_for_evidence_test.rb | 19 ++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index d43591e3311..f0b3ae8f26b 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -21,8 +21,8 @@ def call create_draft_call_for_evidence migrate_outcome migrate_participation + publish Whitehall::SearchIndex.delete(@consultation) - Whitehall::SearchIndex.add(@call_for_evidence) end end end @@ -100,6 +100,13 @@ def migrate_response_form(source:, destination:) destination_data.file.download!(source_data.file.url) end + def publish + call_for_evidence.submit! + publish_reason = "Consultation document type migrated to call for evidence document type" + edition_publisher = Whitehall.edition_services.publisher(@call_for_evidence, user: @whodunnit, remark: publish_reason) + edition_publisher.perform! + end + def association_attributes(old_object, except: []) old_object.attributes.except(*IGNORE_ASSOCIATION_ATTRIBUTES, *except) end diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 051b2a8eee5..6d5328ebcc2 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -110,7 +110,7 @@ def assert_equal_images(expected, actual) migrate # They have the same attributes - ignore_attributes = %w[id type state auth_bypass_id minor_change change_note force_published lock_version] + ignore_attributes = %w[id type state auth_bypass_id minor_change change_note force_published lock_version published_minor_version] assert_equal consultation.attributes.except(*ignore_attributes), call_for_evidence.attributes.except(*ignore_attributes) @@ -130,8 +130,8 @@ def assert_equal_images(expected, actual) assert_equal 2, document.editions.count assert_instance_of CallForEvidence, document.latest_edition assert_equal "CallForEvidence", document.document_type - assert consultation.published? - assert call_for_evidence.draft? + assert consultation.reload.superseded? + assert call_for_evidence.published? end it "converts the Consultation Outcome to a Call for Evidence Outcome" do @@ -185,6 +185,19 @@ def assert_equal_images(expected, actual) assert_equal [whodunnit], call_for_evidence.versions.map(&:user).uniq end + it "publishes the new call for evidence edition" do + migrate + + assert consultation.reload.superseded? + assert call_for_evidence.published? + end + + it "creates a note when it is published" do + migrate + + assert call_for_evidence.editorial_remarks.first.body, "Consultation document type migrated to call for evidence document type" + end + describe "merging Public Feedback with Outcome" do let(:public_feedback) do build( From c59115412678fa8f9eef5126bd2717596441fa55 Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Thu, 31 Aug 2023 14:43:07 +0100 Subject: [PATCH 08/11] Add more helpful error messages For when the document is not ready to be migrated --- ...grate_consultation_to_call_for_evidence.rb | 19 ++++++++++++------- ..._consultation_to_call_for_evidence_test.rb | 6 ++++-- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index f0b3ae8f26b..8a8ad69ae96 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -7,12 +7,9 @@ class MigrateConsultationToCallForEvidence def initialize(document:, whodunnit:) @document = document @whodunnit = whodunnit + @consultation = document.latest_edition - if can_be_migrated?(document.latest_edition) - @consultation = document.latest_edition - else - raise "Document cannot be migrated" - end + ensure_document_is_ready_to_migrate end def call @@ -29,8 +26,16 @@ def call private - def can_be_migrated?(edition) - edition.is_a?(Consultation) && edition.publicly_visible? + def ensure_document_is_ready_to_migrate + edition = document.latest_edition + + unless edition.is_a?(Consultation) + raise "This is not a Consultation: #{edition.type}" + end + + unless edition.publicly_visible? + raise "The latest edition is not publicly visible: #{edition.state}" + end end def create_draft_call_for_evidence diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 6d5328ebcc2..9553b94030b 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -252,7 +252,8 @@ def assert_equal_images(expected, actual) let(:consultation) { create(:published_news_story) } it "rejects the document" do - assert_raises("Document cannot be migrated") { migrate } + error = assert_raises(RuntimeError) { migrate } + assert_equal "This is not a Consultation: NewsArticle", error.message end end @@ -262,7 +263,8 @@ def assert_equal_images(expected, actual) end it "rejects the document" do - assert_raises("Document cannot be migrated") { migrate } + error = assert_raises(RuntimeError) { migrate } + assert_equal "The latest edition is not publicly visible: draft", error.message end end end From 86c34b78a08b1d4ae5ae092418fc34b1e367976c Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Thu, 31 Aug 2023 14:43:56 +0100 Subject: [PATCH 09/11] Use the attr_reader --- lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index 8a8ad69ae96..f67411c6c8a 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -19,7 +19,7 @@ def call migrate_outcome migrate_participation publish - Whitehall::SearchIndex.delete(@consultation) + Whitehall::SearchIndex.delete(consultation) end end end From a428169a412ad0eeb9c0205fd1964d9bc7af3c77 Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Thu, 31 Aug 2023 14:53:41 +0100 Subject: [PATCH 10/11] Strip whitespace from emails and links We found some consultations which failed due to validation errors, because the Consultation Participation records had trailing whitespace on the 'email' and/or 'link_url' fields. This should resolve those issues. --- ...grate_consultation_to_call_for_evidence.rb | 3 +++ ..._consultation_to_call_for_evidence_test.rb | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb index f67411c6c8a..9ed117d4b04 100644 --- a/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb +++ b/lib/data_hygiene/migrate_consultation_to_call_for_evidence.rb @@ -82,6 +82,9 @@ def migrate_participation destination.assign_attributes association_attributes(source, except: %w[consultation_response_form_id]) + destination.email.strip! + destination.link_url.strip! + if source.consultation_response_form.present? migrate_response_form( source: source.consultation_response_form, diff --git a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb index 9553b94030b..8ebb0d2d0ac 100644 --- a/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb +++ b/test/unit/lib/data_hygiene/migrate_consultation_to_call_for_evidence_test.rb @@ -267,5 +267,25 @@ def assert_equal_images(expected, actual) assert_equal "The latest edition is not publicly visible: draft", error.message end end + + context "when the Consultation Participation is invalid" do + it "strips whitespace from the email" do + consultation.consultation_participation.email = "email@example.com " + consultation.consultation_participation.save!(validate: false) + + migrate + + assert_equal "email@example.com", call_for_evidence.call_for_evidence_participation.email + end + + it "strips whitespace from the link_url" do + consultation.consultation_participation.link_url = "https://www.gov.uk " + consultation.consultation_participation.save!(validate: false) + + migrate + + assert_equal "https://www.gov.uk", call_for_evidence.call_for_evidence_participation.link_url + end + end end end From e16be92a90dbca768bf706bac27723f0d8a6d82b Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Fri, 1 Sep 2023 18:33:55 +0100 Subject: [PATCH 11/11] Add Rake tasks to run and verify the migration I've added a Rake task to perform the migration of Consultations to Calls for Evidence, and another which will verify that the expected redirects are in place and content is being served from the new URL. Environment variables can be set for these Rake tasks: MIGRATION_CSV_PATH - defaults to the CSV in data_migration MIGRATION_USER_ID - the User ID to attribute the migration to, defaults to the "GDS Inside Government Team" user GOVUK_WEBSITE_ROOT - already set in EKS hosted environments 1. Run the migration with: MIGRATION_USER_ID=1234 bundle exec rake migrate_calls_for_evidence:migrate It will output a list of failed migrations accompanied by the error message of the exception that was thrown. Output is formatted as CSV so you should be able to copy & paste the results from your terminal and analyse them in a spreadsheet app. 2. Verify the migration with: bundle exec rake migrate_calls_for_evidence:verify This will do a quick sanity check so we can be confident the migration worked successfully. It performs HTTP requests for the original Consultation URLs, and expects to be redirected to a Call for Evidence URL with the same slug. Any unexpected HTTP responses will be output - again in CSV format, to make it easier to analyse the results in a spreadsheet app. --- ...30901000000_migrate_calls_for_evidence.csv | 449 ++++++++++++++++++ lib/tasks/migrate_calls_for_evidence.rake | 103 ++++ 2 files changed, 552 insertions(+) create mode 100644 db/data_migration/20230901000000_migrate_calls_for_evidence.csv create mode 100644 lib/tasks/migrate_calls_for_evidence.rake diff --git a/db/data_migration/20230901000000_migrate_calls_for_evidence.csv b/db/data_migration/20230901000000_migrate_calls_for_evidence.csv new file mode 100644 index 00000000000..a1fe58f5a5c --- /dev/null +++ b/db/data_migration/20230901000000_migrate_calls_for_evidence.csv @@ -0,0 +1,449 @@ +Title,Path,Document ID,Has Outcome?,Has Public Feedback?,Lead Organisation,First published at +Call for evidence to inform orbital liability and insurance policy,/government/consultations/call-for-evidence-to-inform-orbital-liability-and-insurance-policy,486063,TRUE,FALSE,UK Space Agency,2021-10-22 10:00:05 +0100 +Proposal for mandatory COVID certification in a Plan B scenario: call for evidence,/government/consultations/proposal-for-mandatory-covid-certification-in-a-plan-b-scenario-call-for-evidence,483519,TRUE,FALSE,UK Health Security Agency,2021-08-19 12:00:00 +0100 +Labelling for animal welfare: call for evidence,/government/consultations/labelling-for-animal-welfare-call-for-evidence,482797,TRUE,TRUE,UK Health Security Agency,2022-09-06 10:00:03 +0100 +UK-New Zealand FTA: Trade and Agriculture Commission call for evidence,/government/consultations/uk-new-zealand-fta-trade-and-agriculture-commission-call-for-evidence,497842,FALSE,FALSE,Trade and Agriculture Commission,2022-01-10 17:32:40 +0000 +Equity in medical devices: independent review call for evidence,/government/consultations/equity-in-medical-devices-independent-review-call-for-evidence,508572,FALSE,FALSE,Trade and Agriculture Commission,2022-03-22 10:00:00 +0000 +Exemptions from the requirement for an electricity licence: call for evidence,/government/consultations/exemptions-from-the-requirement-for-an-electricity-licence-call-for-evidence,454729,TRUE,TRUE,Trade and Agriculture Commission,2023-07-17 12:00:00 +0100 +European Commission recommendation on business failure and insolvency: Call for evidence,/government/consultations/european-commission-recommendation-on-business-failure-and-insolvency-call-for-evidence,283191,TRUE,TRUE,The Insolvency Service,2015-02-04 09:30:00 +0000 +Bonding arrangements for insolvency practitioners: Call for evidence,/government/consultations/bonding-arrangements-for-insolvency-practitioners-call-for-evidence,339120,TRUE,TRUE,The Insolvency Service,2016-09-15 00:00:00 +0100 +Call for evidence: regulation of insolvency practitioners review of current regulatory landscape,/government/consultations/call-for-evidence-regulation-of-insolvency-practitioners-review-of-current-regulatory-landscape,422066,FALSE,FALSE,The Insolvency Service,2019-07-12 10:30:00 +0100 +First Review of the Insolvency (England and Wales) Rules 2016: Call for evidence,/government/consultations/first-review-of-the-insolvency-england-and-wales-rules-2016-call-for-evidence,468051,FALSE,FALSE,The Insolvency Service,2021-03-11 10:00:00 +0000 +Commercial options for delivering mobile connectivity on trains: Call for Evidence,/government/consultations/commercial-options-for-delivering-mobile-connectivity-on-trains-call-for-evidence,374624,FALSE,FALSE,The Insolvency Service,2022-07-05 09:31:37 +0100 +Data-sharing MoU between NHS Digital and Home Office: call for evidence,/government/consultations/data-sharing-mou-between-nhs-digital-and-home-office-call-for-evidence,378122,FALSE,FALSE,Public Health England,2018-02-15 15:12:48 +0000 +OTS Depreciation and Capital Allowances review call for evidence,/government/consultations/ots-depreciation-and-capital-allowances-review-call-for-evidence,368257,TRUE,FALSE,Office of Tax Simplification,2017-10-03 14:01:22 +0100 +Inheritance Tax Review Call for evidence and Survey,/government/consultations/inheritance-tax-review-call-for-evidence-and-survey,384896,TRUE,FALSE,Office of Tax Simplification,2018-04-27 11:49:25 +0100 +OTS business lifecycle review call for evidence and survey,/government/consultations/ots-business-lifecycle-review-call-for-evidence-and-survey,399506,FALSE,FALSE,Office of Tax Simplification,2018-10-10 10:47:38 +0100 +Claims and elections call for evidence,/government/consultations/claims-and-elections-call-for-evidence,436313,TRUE,FALSE,Office of Tax Simplification,2020-02-11 12:40:25 +0000 +OTS Capital Gains Tax review call for evidence and survey,/government/consultations/ots-capital-gains-tax-review-call-for-evidence-and-survey,446152,TRUE,FALSE,Office of Tax Simplification,2020-07-14 13:59:13 +0100 +Review of the IP enforcement framework: Call for Evidence,/government/consultations/review-of-the-ip-enforcement-framework-call-for-evidence,453308,TRUE,FALSE,Office of Tax Simplification,2022-03-17 08:58:59 +0000 +Review of enforcement agent (bailiff) reforms: call for evidence,/government/consultations/review-of-enforcement-agent-bailiff-reforms-call-for-evidence,403134,TRUE,FALSE,Office of Tax Simplification,2022-08-31 10:00:18 +0100 +UK product safety review: call for evidence,/government/consultations/uk-product-safety-review-call-for-evidence,467953,TRUE,FALSE,Office for Product Safety and Standards,2021-03-11 10:08:55 +0000 +Social prescribing approaches for migrants: call for evidence,/government/consultations/social-prescribing-approaches-for-migrants-call-for-evidence,446186,TRUE,TRUE,Office for Health Improvement and Disparities,2020-07-01 12:39:23 +0100 +Vitamin D: call for evidence,/government/consultations/vitamin-d-call-for-evidence,497484,FALSE,FALSE,Office for Health Improvement and Disparities,2022-04-03 10:00:01 +0100 +Vitamin D: call for evidence (easy read),/government/consultations/vitamin-d-call-for-evidence-easy-read,501214,FALSE,FALSE,Office for Health Improvement and Disparities,2022-05-10 10:47:56 +0100 +Call for evidence: ICES area 7d and Lyme Bay king scallop dredge fishery closure,/government/consultations/call-for-evidence-ices-area-7d-and-lyme-bay-king-scallop-dredge-fishery-closure,520544,TRUE,FALSE,Office for Health Improvement and Disparities,2023-04-11 14:01:57 +0100 +National Infrastructure Commission call for evidence,/government/consultations/national-infrastructure-commission-call-for-evidence,312462,TRUE,TRUE,National Infrastructure Commission,2015-11-13 00:00:00 +0000 +5G call for evidence,/government/consultations/5g-call-for-evidence,328976,TRUE,FALSE,National Infrastructure Commission,2016-05-16 10:00:00 +0100 +Cambridge – Milton Keynes – Oxford: 'growth corridor' call for evidence,/government/consultations/cambridge-milton-keynes-oxford-growth-corridor-call-for-evidence,328955,TRUE,FALSE,National Infrastructure Commission,2016-05-16 10:00:00 +0100 +Balance of Competences Review: Call for Evidence on Civil Judicial Cooperation,/government/consultations/balance-of-competences-review-call-for-evidence-on-civil-judicial-cooperation,217708,TRUE,FALSE,Ministry of Justice,2013-05-16 12:00:00 +0100 +Review of veterans within the Criminal Justice System: call for evidence,/government/consultations/review-of-veterans-within-the-criminal-justice-system-call-for-evidence,223281,TRUE,FALSE,Ministry of Justice,2014-03-13 10:00:00 +0000 +MedCo Framework Review: call for evidence,/government/consultations/medco-framework-review-call-for-evidence,301145,TRUE,FALSE,Ministry of Justice,2015-07-16 16:00:00 +0100 +"Lammy Review of Black, Asian and Minority Ethnic (BAME) representation in the Criminal Justice System: call for evidence",/government/consultations/lammy-review-of-black-asian-and-minority-ethnic-bame-representation-in-the-criminal-justice-system-call-for-evidence,324073,TRUE,FALSE,Ministry of Justice,2016-03-21 00:00:00 +0000 +Call for evidence: Legal Services Board and Office for Legal Complaints,/government/consultations/call-for-evidence-legal-services-board-and-office-for-legal-complaints,342498,TRUE,FALSE,Ministry of Justice,2016-10-27 00:00:00 +0100 +Corporate liability for economic crime: call for evidence,/government/consultations/corporate-liability-for-economic-crime-call-for-evidence,345769,TRUE,FALSE,Ministry of Justice,2017-01-13 00:00:00 +0000 +Personal injury claims arising from package holidays: Call for evidence,/government/consultations/personal-injury-claims-arising-from-package-holidays-call-for-evidence,368925,TRUE,FALSE,Ministry of Justice,2017-10-13 09:59:12 +0100 +Call for evidence - review of legal aid for inquests,/government/consultations/call-for-evidence-review-of-legal-aid-for-inquests,392986,TRUE,FALSE,Ministry of Justice,2018-07-19 10:26:30 +0100 +Sector Subject Area classification (SSA) system: call for evidence,/government/consultations/sector-subject-area-classification-ssa-system-call-for-evidence,517066,FALSE,FALSE,Ministry of Justice,2018-11-25 00:15:09 +0000 +Setting the Personal Injury Discount Rate: Call for evidence,/government/consultations/setting-the-personal-injury-discount-rate-call-for-evidence,404505,TRUE,FALSE,Ministry of Justice,2018-12-06 12:18:24 +0000 +Revising the Mental Capacity Act 2005 Code of Practice: Call for evidence,/government/consultations/revising-the-mental-capacity-act-2005-code-of-practice-call-for-evidence,407683,FALSE,FALSE,Ministry of Justice,2019-01-24 10:29:50 +0000 +Independent review of criminal legal aid: Call for Evidence,/government/consultations/independent-review-of-criminal-legal-aid-call-for-evidence,469345,FALSE,FALSE,Ministry of Justice,2021-03-29 15:29:31 +0100 +Dispute Resolution in England and Wales: Call for Evidence,/government/consultations/dispute-resolution-in-england-and-wales-call-for-evidence,478750,TRUE,FALSE,Ministry of Justice,2021-08-03 11:28:38 +0100 +Immigration legal aid fees and the online system: Call for Evidence,/government/consultations/immigration-legal-aid-fees-and-the-online-system-call-for-evidence,486526,FALSE,FALSE,Ministry of Justice,2021-11-04 10:00:03 +0000 +Call for evidence on the future structure of the Local Government Pension Scheme,/government/consultations/call-for-evidence-on-the-future-structure-of-the-local-government-pension-scheme,172180,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2013-06-21 00:00:00 +0100 +Review of local authority role in housing supply: call for evidence,/government/consultations/review-of-local-authority-role-in-housing-supply-call-for-evidence,226489,FALSE,FALSE,"Ministry of Housing, Communities & Local Government",2014-03-25 00:00:00 +0000 +Architects regulation and the Architects Registration Board: call for evidence,/government/consultations/architects-regulation-and-the-architects-registration-board-call-for-evidence,231454,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2014-04-16 00:00:00 +0100 +Service Transformation Challenge Panel: call for evidence,/government/consultations/service-transformation-challenge-panel-call-for-evidence,233076,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2014-05-01 00:00:00 +0100 +Rural planning review: call for evidence,/government/consultations/rural-planning-review-call-for-evidence,319525,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2016-02-11 00:00:00 +0000 +Homes and Communities Agency review: call for evidence,/government/consultations/homes-and-communities-agency-review-call-for-evidence,322931,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2016-03-04 00:00:00 +0000 +Review of park homes legislation: call for evidence part 1,/government/consultations/review-of-park-homes-legislation-call-for-evidence,356598,TRUE,TRUE,"Ministry of Housing, Communities & Local Government",2017-04-12 17:39:56 +0100 +Protecting consumers in the letting and managing agent market: call for evidence,/government/consultations/protecting-consumers-in-the-letting-and-managing-agent-market-call-for-evidence,369345,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2017-10-18 09:45:15 +0100 +Improving the home buying and selling process: call for evidence,/government/consultations/improving-the-home-buying-and-selling-process-call-for-evidence,369630,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2017-10-22 09:00:10 +0100 +Review of park homes legislation: call for evidence part 2,/government/consultations/review-of-park-homes-legislation-call-for-evidence-part-2,372062,TRUE,TRUE,"Ministry of Housing, Communities & Local Government",2017-11-28 12:11:48 +0000 +Independent review of planning appeal inquiries: call for evidence,/government/consultations/independent-review-of-planning-appeal-inquiries-call-for-evidence,393338,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2018-07-24 14:10:23 +0100 +Review of social housing regulation: call for evidence,/government/consultations/review-of-social-housing-regulation-call-for-evidence,392753,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2018-08-14 11:49:44 +0100 +Technical review of Approved Document B of the building regulations: a call for evidence,/government/consultations/technical-review-of-approved-document-b-of-the-building-regulations-a-call-for-evidence,405271,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2018-12-18 15:17:16 +0000 +Good practice on how residents and landlords work together to keep their home and building safe: call for evidence,/government/consultations/good-practice-on-how-residents-and-landlords-work-together-to-keep-their-home-and-building-safe-call-for-evidence,405436,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2018-12-18 15:20:31 +0000 +Homelessness Reduction Act 2017: call for evidence,/government/consultations/homelessness-reduction-act-2017-call-for-evidence,422626,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2019-07-23 09:30:05 +0100 +Transparency and competition: a call for evidence on data on land control,/government/consultations/transparency-and-competition-a-call-for-evidence-on-data-on-land-control,449147,FALSE,FALSE,"Ministry of Housing, Communities & Local Government",2020-08-06 00:00:03 +0100 +Commercial rents and COVID-19: call for evidence,/government/consultations/commercial-rents-and-covid-19-call-for-evidence,470274,TRUE,FALSE,"Ministry of Housing, Communities & Local Government",2021-04-06 15:55:19 +0100 +Intra-company Transfers: call for evidence,/government/consultations/intra-company-transfers-call-for-evidence,469172,TRUE,FALSE,Migration Advisory Committee,2015-03-24 00:00:00 +0000 +Shortage occupation list: call for evidence,/government/consultations/shortage-occupation-list-call-for-evidence,441331,TRUE,FALSE,Migration Advisory Committee,2015-06-18 09:00:00 +0100 +Salary threshold and points-based system (PBS) commission: call for evidence,/government/consultations/salary-threshold-and-points-based-system-pbs-commission-call-for-evidence,425715,TRUE,FALSE,Migration Advisory Committee,2015-07-02 00:00:00 +0100 +Major conditions strategy: call for evidence,/government/consultations/major-conditions-strategy-call-for-evidence,528200,FALSE,FALSE,Migration Advisory Committee,2015-11-03 12:00:00 +0000 +Smarter regulation non-financial reporting review: call for evidence,/government/consultations/smarter-regulation-non-financial-reporting-review-call-for-evidence,522182,FALSE,FALSE,Migration Advisory Committee,2017-08-04 09:31:00 +0100 +Shortage occupation list 2018: call for evidence,/government/consultations/shortage-occupation-list-2018-call-for-evidence,402093,TRUE,TRUE,Migration Advisory Committee,2018-11-09 09:00:03 +0000 +The impact of the ending of freedom of movement on the adult social care sector: call for evidence,/government/consultations/review-of-the-impact-of-the-ending-of-freedom-of-movement-on-the-adult-social-care-sector,480414,TRUE,FALSE,Migration Advisory Committee,2019-09-10 15:32:17 +0100 +Call for evidence and briefing note: EEA-workers in the UK labour market,/government/consultations/call-for-evidence-and-briefing-note-eea-workers-in-the-uk-labour-market,364149,TRUE,FALSE,Migration Advisory Committee,2020-05-13 12:29:21 +0100 +Call for evidence review: shortage occupation list - nurses,/government/consultations/call-for-evidence-review-shortage-occupation-list-nurses,311565,TRUE,FALSE,Migration Advisory Committee,2021-03-23 17:18:09 +0000 +Civil Aviation Authority review: Call for evidence,/government/consultations/the-effectiveness-and-efficiency-of-the-civil-aviation-authority-caa,513516,TRUE,TRUE,Migration Advisory Committee,2021-08-04 09:00:01 +0100 +Hormonal pregnancy tests: call for evidence,/government/consultations/hormonal-pregnancy-tests-call-for-evidence,289481,FALSE,FALSE,Medicines and Healthcare products Regulatory Agency,2015-03-25 00:00:00 +0000 +"Response to the call for evidence: Dogger Bank king scallop stock closure in ICES rectangles 39F1, 39F2, 39F3, 38F1, 38F2, 38F3, 37F1 and 37F2",/government/consultations/call-for-evidence-dogger-bank-king-scallop-stock-closure-in-ices-rectangles-39f1-39f2-39f3-38f1-38f2-38f3-37f1-and-37f2,446350,TRUE,FALSE,Marine Management Organisation,2020-07-01 16:43:17 +0100 +Response to the call for evidence: ICES area VIId king scallop closure,/government/consultations/response-to-the-call-for-evidence-ices-area-viid-king-scallop-closure,481173,FALSE,FALSE,Marine Management Organisation,2021-08-16 16:39:13 +0100 +Call for evidence ICES area 7d King scallop fishery closure,/government/consultations/call-for-evidence-ices-area-7d-king-scallop-fishery-closure,501377,TRUE,FALSE,Marine Management Organisation,2022-05-09 10:51:45 +0100 +Care workforce pathway for adult social care: call for evidence,/government/consultations/care-workforce-pathway-for-adult-social-care-call-for-evidence,524975,FALSE,FALSE,Marine Management Organisation,2023-01-26 09:02:21 +0000 +Webmarking for registered design rights: call for evidence,/government/consultations/webmarking-for-registered-design-rights-call-for-evidence,300394,TRUE,FALSE,Intellectual Property Office,2015-07-17 00:15:00 +0100 +Access to elections: Call for Evidence,/government/consultations/access-to-elections-call-for-evidence,366043,TRUE,FALSE,Intellectual Property Office,2020-10-05 16:27:35 +0100 +Proposal for a New Approach to Building: Call for Evidence,/government/consultations/proposal-for-a-new-approach-to-building-call-for-evidence,403023,TRUE,FALSE,Infrastructure and Projects Authority,2018-11-26 00:15:00 +0000 +Independent Commission on Freedom of Information: call for evidence,/government/consultations/independent-commission-on-freedom-of-information-call-for-evidence,308944,TRUE,TRUE,Independent Commission on Freedom of Information,2015-10-09 10:00:00 +0100 +Independent review into sharia law: call for evidence,/government/consultations/independent-review-into-sharia-law-call-for-evidence,332875,TRUE,FALSE,Home Office,2016-07-04 00:00:00 +0100 +Windrush compensation: call for evidence,/government/consultations/windrush-compensation-call-for-evidence,386562,TRUE,TRUE,Home Office,2018-05-10 14:45:20 +0100 +Review of Property Income - Survey and Call for Evidence,/government/consultations/review-of-property-income-survey-and-call-for-evidence,495087,TRUE,FALSE,Home Office,2018-11-01 07:00:08 +0000 +Violence and abuse toward shop staff: call for evidence,/government/consultations/violence-and-abuse-toward-shop-staff-call-for-evidence,413927,TRUE,FALSE,Home Office,2019-04-05 10:19:21 +0100 +Coronavirus Test Device Approvals (CTDA): call for evidence,/government/consultations/coronavirus-test-device-approvals-ctda-call-for-evidence,510237,FALSE,FALSE,Home Office,2019-06-06 10:40:41 +0100 +Independent Review of Prevent: call for evidence,/government/consultations/independent-review-of-prevent-call-for-evidence,428205,FALSE,FALSE,Home Office,2019-10-07 16:00:05 +0100 +Violence Against Women and Girls (VAWG) Call for Evidence,/government/consultations/violence-against-women-and-girls-vawg-call-for-evidence,459949,TRUE,FALSE,Home Office,2020-12-10 00:15:00 +0000 +Non-Discretionary Tax-Advantaged Share Schemes: Call for Evidence,/government/consultations/non-discretionary-tax-advantaged-share-schemes-call-for-evidence,528365,FALSE,FALSE,Home Office,2023-05-18 11:28:42 +0100 +Protecting the public from repeat drug-driving offenders: call for evidence,/government/consultations/protecting-the-public-from-repeat-drug-driving-offenders-call-for-evidence,488509,FALSE,TRUE,Home Office,2023-07-05 12:00:08 +0100 +Call for evidence on public service reform,/government/consultations/call-for-evidence-on-public-service-reform,80741,FALSE,FALSE,HM Treasury,2010-11-26 00:00:00 +0000 +Review of enforcement decision-making at the financial services regulators: call for evidence,/government/consultations/review-of-enforcement-decision-making-at-the-financial-services-regulators-call-for-evidence,232715,TRUE,FALSE,HM Treasury,2014-05-06 15:15:00 +0100 +Remuneration practices: call for evidence,/government/consultations/remuneration-practices-call-for-evidence,241660,FALSE,FALSE,HM Treasury,2014-06-18 15:45:00 +0100 +British credit unions at 50: call for evidence,/government/consultations/british-credit-unions-at-50-call-for-evidence,242375,TRUE,FALSE,HM Treasury,2014-06-23 18:30:00 +0100 +Review of the oil and gas fiscal regime: a call for evidence,/government/consultations/review-of-the-oil-and-gas-fiscal-regime-a-call-for-evidence,246767,TRUE,FALSE,HM Treasury,2014-07-14 00:00:00 +0100 +Data sharing and open data in banking: call for evidence,/government/consultations/data-sharing-and-open-data-in-banking-call-for-evidence,282080,TRUE,FALSE,HM Treasury,2015-01-28 14:00:00 +0000 +Recognised clearing houses: call for evidence,/government/consultations/recognised-clearing-houses-call-for-evidence,283929,TRUE,FALSE,HM Treasury,2015-03-12 10:30:00 +0000 +Creating a secondary annuity market: call for evidence,/government/consultations/creating-a-secondary-annuity-market-call-for-evidence,289026,TRUE,FALSE,HM Treasury,2015-03-18 17:00:00 +0000 +Call for evidence: simplifying the Gift Aid donor benefit rules,/government/consultations/call-for-evidence-simplifying-the-gift-aid-donor-benefit-rules,300943,TRUE,FALSE,HM Treasury,2015-07-16 17:30:00 +0100 +Taxation of employee expenses call for evidence,/government/consultations/taxation-of-employee-expenses-call-for-evidence,354238,TRUE,FALSE,HM Treasury,2017-03-20 13:06:22 +0000 +Red diesel call for evidence,/government/consultations/red-diesel-call-for-evidence,353985,TRUE,FALSE,HM Treasury,2017-03-20 13:07:09 +0000 +Breathing space: call for evidence,/government/consultations/breathing-space-call-for-evidence,369449,TRUE,FALSE,HM Treasury,2017-10-24 07:09:15 +0100 +VAT registration threshold: call for evidence,/government/consultations/vat-registration-threshold-call-for-evidence,380795,TRUE,FALSE,HM Treasury,2018-03-13 12:57:31 +0000 +Air quality: non-road mobile machinery and red diesel – call for evidence,/government/consultations/non-road-mobile-machinery-and-red-diesel-excluding-use-for-agriculture-fishing-vessels-home-heating-and-other-static-uses,386827,TRUE,TRUE,HM Treasury,2018-05-15 09:30:13 +0100 +Digital Competition Expert Panel: call for evidence,/government/consultations/digital-competition-expert-panel-call-for-evidence,399799,TRUE,TRUE,HM Treasury,2018-10-12 11:24:27 +0100 +Social Investment Tax Relief: call for evidence,/government/consultations/social-investment-tax-relief-call-for-evidence,415846,TRUE,FALSE,HM Treasury,2019-04-24 13:25:32 +0100 +Pensions tax relief administration: call for evidence,/government/consultations/pensions-tax-relief-administration-call-for-evidence,447985,TRUE,FALSE,HM Treasury,2020-07-21 10:39:23 +0100 +"Future policy framework for power with carbon capture, usage and storage (CCUS): call for evidence",/government/consultations/future-policy-framework-for-power-with-carbon-capture-usage-and-storage-ccus-call-for-evidence,506982,FALSE,FALSE,HM Treasury,2020-10-12 12:09:30 +0100 +UK regulatory approach to cryptoassets and stablecoins: consultation and call for evidence,/government/consultations/uk-regulatory-approach-to-cryptoassets-and-stablecoins-consultation-and-call-for-evidence,462839,TRUE,FALSE,HM Treasury,2021-01-07 15:30:06 +0000 +Securitisation Regulation: Call for Evidence,/government/consultations/securitisation-regulation-call-for-evidence,475953,TRUE,FALSE,HM Treasury,2021-06-24 13:00:02 +0100 +Call for Evidence: Review of the UK’s AML/CTF regulatory and supervisory regime,/government/consultations/call-for-evidence-review-of-the-uks-amlctf-regulatory-and-supervisory-regime,479170,FALSE,FALSE,HM Treasury,2021-07-22 10:00:01 +0100 +Local Nutrient Mitigation Fund: call for evidence and expression of interest,/government/consultations/local-nutrient-mitigation-fund-call-for-evidence-and-expression-of-interest,526518,FALSE,FALSE,HM Treasury,2021-11-30 14:05:47 +0000 +Aligning the ring-fencing and resolution regimes: Call for Evidence,/government/consultations/aligning-the-ring-fencing-and-resolution-regimes-call-for-evidence,522905,FALSE,FALSE,HM Treasury,2021-11-30 14:06:05 +0000 +The Appointed Representatives Regime: Call for Evidence,/government/consultations/the-appointed-representatives-regime-call-for-evidence,489080,FALSE,FALSE,HM Treasury,2021-12-03 10:00:07 +0000 +Options for Defined Benefit schemes: a call for evidence,/government/consultations/options-for-defined-benefit-schemes-a-call-for-evidence,532533,FALSE,FALSE,HM Treasury,2022-07-20 15:59:33 +0100 +The Regulatory Reform (Fire Safety) Order 2005: call for evidence,/government/consultations/the-regulatory-reform-fire-safety-order-2005-call-for-evidence,418501,TRUE,FALSE,HM Treasury,2022-07-28 16:04:40 +0100 +Freight and logistics and the planning system: call for evidence,/government/consultations/freight-and-logistics-and-the-planning-system-call-for-evidence,526949,FALSE,FALSE,HM Treasury,2022-12-09 07:30:03 +0000 +Call for evidence to identify UK interest in existing EU trade remedy measures,/government/consultations/call-for-evidence-to-identify-uk-interest-in-existing-eu-trade-remedy-measures,362647,TRUE,FALSE,HM Treasury,2023-01-13 12:00:04 +0000 +Service charge transparency requirements: ongoing costs of the new building safety regime - consultation and call for evidence,/government/consultations/service-charge-transparency-requirements-ongoing-costs-of-the-new-building-safety-regime-consultation-and-call-for-evidence,516789,FALSE,FALSE,HM Treasury,2023-03-02 09:00:01 +0000 +Safety of journalists: call for evidence,/government/consultations/safety-of-journalists-call-for-evidence,474498,TRUE,TRUE,HM Treasury,2023-03-30 10:00:07 +0100 +Toilet provision for men and women: call for evidence,/government/consultations/toilet-provision-for-men-and-women-call-for-evidence,456314,TRUE,TRUE,HM Treasury,2023-06-05 09:30:03 +0100 +Enabling industrial electrification: a call for evidence,/government/consultations/enabling-industrial-electrification-a-call-for-evidence,532955,FALSE,FALSE,HM Treasury,2023-07-31 09:00:43 +0100 +Review of Deeds of Variation for tax purposes: call for evidence,/government/consultations/review-of-deeds-of-variation-for-tax-purposes-call-for-evidence,300006,TRUE,FALSE,HM Revenue & Customs,2015-07-15 10:30:00 +0100 +"Cash, tax evasion and the hidden economy: call for evidence",/government/consultations/cash-tax-evasion-and-the-hidden-economy-call-for-evidence,313593,TRUE,FALSE,HM Revenue & Customs,2015-11-25 09:30:00 +0000 +Employer provided living accommodation - call for evidence,/government/consultations/employer-provided-living-accommodation-call-for-evidence,315130,FALSE,FALSE,HM Revenue & Customs,2015-12-09 13:00:00 +0000 +Gift Aid Small Donations Scheme – a call for evidence,/government/consultations/gift-aid-small-donations-scheme-a-call-for-evidence,315123,TRUE,FALSE,HM Revenue & Customs,2015-12-09 13:00:00 +0000 +Electronic sales suppression: a call for evidence,/government/consultations/electronic-sales-suppression-a-call-for-evidence,405017,TRUE,FALSE,HM Revenue & Customs,2018-12-19 09:30:02 +0000 +Call for evidence: the operation of Insurance Premium Tax,/government/consultations/call-for-evidence-the-operation-of-insurance-premium-tax,418030,TRUE,FALSE,HM Revenue & Customs,2019-06-03 16:07:02 +0100 +Call for evidence: simplification of partial exemption and the Capital Goods Scheme,/government/consultations/call-for-evidence-simplification-of-partial-exemption-and-the-capital-goods-scheme,419891,TRUE,FALSE,HM Revenue & Customs,2019-07-18 09:30:01 +0100 +Call for evidence: raising standards in the tax advice market,/government/consultations/call-for-evidence-raising-standards-in-the-tax-advice-market,438224,TRUE,FALSE,HM Revenue & Customs,2020-03-19 08:44:24 +0000 +Call for evidence: modernisation of the stamp taxes on shares framework,/government/consultations/call-for-evidence-modernisation-of-the-stamp-taxes-on-shares-framework,444921,TRUE,FALSE,HM Revenue & Customs,2020-07-21 10:36:22 +0100 +Call for evidence: tackling disguised remuneration tax avoidance,/government/consultations/call-for-evidence-tackling-disguised-remuneration-tax-avoidance,444595,TRUE,FALSE,HM Revenue & Customs,2020-07-21 10:36:32 +0100 +Call for evidence: timely payment,/government/consultations/call-for-evidence-timely-payment,468787,TRUE,FALSE,HM Revenue & Customs,2021-03-23 13:08:59 +0000 +Call for evidence: the tax administration framework: supporting a 21st century tax system,/government/consultations/call-for-evidence-the-tax-administration-framework-supporting-a-21st-century-tax-system,468749,TRUE,FALSE,HM Revenue & Customs,2021-03-23 13:09:03 +0000 +Call for Evidence: Simplifying the VAT Land Exemption,/government/consultations/call-for-evidence-simplifying-the-vat-land-exemption,470312,TRUE,FALSE,HM Revenue & Customs,2021-05-12 09:30:02 +0100 +Call for evidence: modernising tax debt collection from non-paying businesses,/government/consultations/call-for-evidence-modernising-tax-debt-collection-from-non-paying-businesses,488738,TRUE,FALSE,HM Revenue & Customs,2021-11-30 14:07:09 +0000 +Call for evidence - Individual Savings Accounts: compliance and penalties,/government/consultations/call-for-evidence-individual-savings-accounts-compliance-and-penalties,488773,FALSE,FALSE,HM Revenue & Customs,2021-11-30 14:07:15 +0000 +Call for evidence: Income Tax Self Assessment registration for the self-employed and landlords,/government/consultations/call-for-evidence-income-tax-self-assessment-registration-for-the-self-employed-and-landlords,488907,TRUE,FALSE,HM Revenue & Customs,2021-11-30 14:07:22 +0000 +Land rights and consents for electricity network infrastructure: call for evidence,/government/consultations/land-rights-and-consents-for-electricity-network-infrastructure-call-for-evidence,507650,FALSE,TRUE,HM Revenue & Customs,2022-02-07 09:30:06 +0000 +Care workforce pathway for adult social care: call for evidence (easy read),/government/consultations/care-workforce-pathway-for-adult-social-care-call-for-evidence-easy-read,526913,FALSE,FALSE,HM Revenue & Customs,2022-07-05 09:54:44 +0100 +Variations in Sex Characteristics Call For Evidence,/government/consultations/variations-in-sex-characteristics-call-for-evidence,406910,FALSE,FALSE,Government Equalities Office,2019-01-17 00:00:01 +0000 +Effectiveness of Driver CPC: call for evidence,/government/consultations/effectiveness-of-driver-cpc-call-for-evidence,186389,TRUE,FALSE,Driving Standards Agency,2013-09-04 00:00:00 +0100 +Mental health and wellbeing plan: call for evidence (easy read),/government/consultations/mental-health-and-wellbeing-plan-call-for-evidence-easy-read,499679,TRUE,FALSE,Driver and Vehicle Licensing Agency,2023-07-31 15:34:31 +0100 +IPSIS: call for evidence,/government/consultations/ipsis-call-for-evidence,304781,FALSE,FALSE,Department of Health and Social Care,2015-08-25 14:30:00 +0100 +Carers strategy: call for evidence,/government/consultations/carers-strategy-call-for-evidence,324236,TRUE,FALSE,Department of Health and Social Care,2016-03-18 11:00:00 +0000 +Local authority public health prescribed activity: call for evidence,/government/consultations/local-authority-public-health-prescribed-activity-call-for-evidence,375829,FALSE,FALSE,Department of Health and Social Care,2018-01-23 12:00:10 +0000 +Review of the National Autism Strategy ‘Think Autism': call for evidence,/government/consultations/review-of-the-national-autism-strategy-think-autism-call-for-evidence,411993,TRUE,FALSE,Department of Health and Social Care,2019-03-14 08:45:02 +0000 +Single dose of HPV vaccine: call for evidence from the JCVI,/government/consultations/single-dose-of-hpv-vaccine-call-for-evidence-from-the-jcvi,438794,FALSE,FALSE,Department of Health and Social Care,2020-03-18 11:25:22 +0000 +"Independent review of drugs: call for evidence, part 2",/government/consultations/independent-review-of-drugs-call-for-evidence-part-2,446401,FALSE,FALSE,Department of Health and Social Care,2020-07-02 13:21:48 +0100 +Reducing bureaucracy in the health and social care system: call for evidence,/government/consultations/reducing-bureaucracy-in-the-health-and-social-care-system-call-for-evidence,448525,TRUE,FALSE,Department of Health and Social Care,2020-07-30 12:33:13 +0100 +Early years healthy development review: call for evidence,/government/consultations/early-years-healthy-development-review-call-for-evidence,451364,FALSE,FALSE,Department of Health and Social Care,2020-09-18 10:13:15 +0100 +Future of mobility call for evidence,/government/consultations/future-of-mobility-call-for-evidence,389155,TRUE,TRUE,Department of Health and Social Care,2021-03-08 00:15:01 +0000 +Women's Health Strategy: Call for Evidence (easy read),/government/consultations/womens-health-strategy-call-for-evidence-easy-read,471483,FALSE,FALSE,Department of Health and Social Care,2021-04-27 10:00:06 +0100 +Down Syndrome Act 2022 guidance: call for evidence,/government/consultations/down-syndrome-act-2022-guidance-call-for-evidence,507247,FALSE,FALSE,Department of Health and Social Care,2021-09-27 19:01:48 +0100 +Enabling or requiring hydrogen-ready industrial boiler equipment: call for evidence,/government/consultations/enabling-or-requiring-hydrogen-ready-industrial-boiler-equipment-call-for-evidence,490041,TRUE,TRUE,Department of Health and Social Care,2022-02-04 12:00:20 +0000 +10-Year Cancer Plan: Call for Evidence (easy read),/government/consultations/10-year-cancer-plan-call-for-evidence-easy-read,494860,FALSE,FALSE,Department of Health and Social Care,2022-02-11 15:11:38 +0000 +Acquired brain injury call for evidence (easy read),/government/consultations/acquired-brain-injury-call-for-evidence-easy-read,497197,FALSE,FALSE,Department of Health and Social Care,2022-03-14 16:00:01 +0000 +Acquired brain injury call for evidence,/government/consultations/acquired-brain-injury-call-for-evidence,496634,FALSE,FALSE,Department of Health and Social Care,2022-03-14 16:00:01 +0000 +Landfill tax grant scheme: call for evidence,/government/consultations/landfill-tax-grant-scheme-call-for-evidence,507737,TRUE,FALSE,Department of Health and Social Care,2022-04-12 10:01:30 +0100 +Call for evidence: non-statutory flexible working,/government/consultations/call-for-evidence-non-statutory-flexible-working,533111,FALSE,FALSE,Department of Health and Social Care,2022-04-14 10:20:18 +0100 +Down Syndrome Act 2022 guidance: call for evidence (easy read and BSL),/government/consultations/down-syndrome-act-2022-guidance-call-for-evidence-easy-read,507282,FALSE,FALSE,Department of Health and Social Care,2022-07-19 12:00:25 +0100 +Labour Market Enforcement Strategy 2020 to 2021: call for evidence,/government/consultations/labour-market-enforcement-strategy-2020-to-2021-call-for-evidence,432626,TRUE,FALSE,Department of Health and Social Care,2022-07-19 12:00:40 +0100 +Electrical safety in social housing: consultation and call for evidence,/government/consultations/electrical-safety-in-social-housing-consultation-and-call-for-evidence,503418,FALSE,FALSE,Department of Health and Social Care,2022-08-11 14:00:04 +0100 +Domestic shipping air pollution: call for evidence,/government/consultations/domestic-shipping-air-pollution-call-for-evidence,421834,TRUE,FALSE,Department of Health and Social Care,2022-11-23 00:15:01 +0000 +UK quantum strategy: call for evidence,/government/consultations/uk-quantum-strategy-call-for-evidence,494930,TRUE,FALSE,Department of Health and Social Care,2022-12-13 15:30:05 +0000 +Independent Faith Engagement Review: call for evidence,/government/consultations/independent-faith-engagement-review-call-for-evidence,457496,TRUE,FALSE,Department of Health and Social Care,2023-04-04 12:06:16 +0100 +Decarbonisation readiness: call for evidence on the expansion of the 2009 Carbon Capture Readiness requirements,/government/consultations/decarbonisation-readiness-call-for-evidence-on-the-expansion-of-the-2009-carbon-capture-readiness-requirements,477822,TRUE,TRUE,Department of Health and Social Care,2023-04-20 17:36:20 +0100 +Major conditions strategy: call for evidence (easy read),/government/consultations/major-conditions-strategy-call-for-evidence-easy-read,529514,FALSE,FALSE,Department of Health and Social Care,2023-05-17 11:15:09 +0100 +Equipment Theft (Prevention) Bill: Call for evidence,/government/consultations/equipment-theft-prevention-bill-call-for-evidence,528677,FALSE,FALSE,Department of Health and Social Care,2023-05-31 17:27:06 +0100 +Light rail and other rapid transit solutions in cities and towns: call for evidence,/government/consultations/light-rail-and-other-rapid-transit-solutions-in-cities-and-towns-call-for-evidence,408826,FALSE,TRUE,Department of Health and Social Care,2023-07-24 16:00:03 +0100 +Decapods: call for evidence,/government/consultations/decapods-call-for-evidence,529518,FALSE,FALSE,Department of Health and Social Care,2023-07-25 15:30:01 +0100 +Call for evidence: Unconventional gas,/government/consultations/call-for-evidence-unconventional-gas,51261,FALSE,FALSE,Department of Energy & Climate Change,2010-10-01 00:00:00 +0100 +Call for evidence: Prospects for crude oil supply and demand,/government/consultations/call-for-evidence-prospects-for-crude-oil-supply-and-demand,51259,FALSE,FALSE,Department of Energy & Climate Change,2011-06-08 00:00:00 +0100 +Call for evidence on smart meter data access and privacy,/government/consultations/call-for-evidence-on-smart-meter-data-access-and-privacy,51253,TRUE,FALSE,Department of Energy & Climate Change,2011-08-18 00:00:00 +0100 +A call for evidence on barriers to securing long-term contracts for independent renewable generation investment,/government/consultations/a-call-for-evidence-on-barriers-to-securing-long-term-contracts-for-independent-renewable-generation-investment,65367,FALSE,FALSE,Department of Energy & Climate Change,2012-07-05 00:00:00 +0100 +Onshore wind: call for evidence,/government/consultations/onshore-wind-call-for-evidence,65288,TRUE,FALSE,Department of Energy & Climate Change,2012-09-12 00:00:00 +0100 +Contracts for Difference (CfD) Supplier Obligation: call for evidence,/government/consultations/contracts-for-difference-cfd-supplier-obligation-call-for-evidence,65368,TRUE,TRUE,Department of Energy & Climate Change,2012-11-29 00:00:00 +0000 +EU ETS: Carbon leakage review data request - call for evidence,/government/consultations/eu-ets-carbon-leakage-review-data-request-call-for-evidence,123046,TRUE,FALSE,Department of Energy & Climate Change,2013-03-04 00:00:00 +0000 +Managing Radioactive Waste Safely: Call for Evidence on the Siting Process for a Geological Disposal Facility,/government/consultations/managing-radioactive-waste-safely-call-for-evidence-on-the-siting-process-for-a-geological-disposal-facility,168217,TRUE,TRUE,Department of Energy & Climate Change,2013-05-13 00:00:00 +0100 +Call for evidence: role of UK refining and fuel import sectors,/government/consultations/call-for-evidence-role-of-uk-refining-and-fuel-import-sectors,168984,TRUE,FALSE,Department of Energy & Climate Change,2013-05-20 00:00:00 +0100 +Community Energy: call for evidence,/government/consultations/community-energy-call-for-evidence,166051,TRUE,FALSE,Department of Energy & Climate Change,2013-06-06 00:00:00 +0100 +Call for evidence on energy issues affecting park homes,/government/consultations/call-for-evidence-on-energy-issues-affecting-park-homes,248851,FALSE,FALSE,Department of Energy & Climate Change,2014-07-22 09:30:00 +0100 +Climate Change Agreements target review 2016: discussion paper and call for evidence,/government/consultations/climate-change-agreements-target-review-2016-discussion-paper-and-call-for-evidence,265142,TRUE,FALSE,Department of Energy & Climate Change,2014-10-29 10:00:00 +0000 +RHI - introducing third party ownership models - call for evidence,/government/consultations/rhi-introducing-third-party-ownership-models-call-for-evidence,282094,FALSE,FALSE,Department of Energy & Climate Change,2015-01-28 11:00:00 +0000 +Call for Evidence: Tackling Non-Financial Barriers to Gas CHP,/government/consultations/call-for-evidence-tackling-non-financial-barriers-to-gas-chp,283648,FALSE,TRUE,Department of Energy & Climate Change,2015-02-09 00:00:00 +0000 +Green Hydrogen Standard: call for evidence,/government/consultations/green-hydrogen-standard-call-for-evidence,284403,TRUE,FALSE,Department of Energy & Climate Change,2015-02-13 09:30:00 +0000 +Call for evidence: Implementation of Contracts for Difference and the supplier obligation in Northern Ireland,/government/consultations/call-for-evidence-implementation-of-contracts-for-difference-and-the-supplier-obligation-in-northern-ireland,289438,FALSE,FALSE,Department of Energy & Climate Change,2015-03-23 09:30:00 +0000 +When the State Pension age should increase to 66: call for evidence,/government/consultations/when-the-state-pension-age-should-increase-to-66-call-for-evidence,151324,TRUE,FALSE,Department for Work and Pensions,2010-06-24 00:00:00 +0100 +The Work Capability Assessment: a call for evidence,/government/consultations/the-work-capability-assessment-a-call-for-evidence,154069,TRUE,FALSE,Department for Work and Pensions,2010-07-28 00:00:00 +0100 +Specialist Disability Employment Support: call for evidence,/government/consultations/specialist-disability-employment-support-call-for-evidence,151312,FALSE,FALSE,Department for Work and Pensions,2010-12-02 00:00:00 +0000 +Regulatory differences between occupational and workplace personal pensions: Call for evidence to prepare for automatic enrolment,/government/consultations/regulatory-differences-between-occupational-and-workplace-personal-pensions-call-for-evidence-to-prepare-for-automatic-enrolment,151341,FALSE,FALSE,Department for Work and Pensions,2011-01-31 00:00:00 +0000 +Local support to replace Community Care Grants and Crisis Loans for living expenses: call for evidence,/government/consultations/local-support-to-replace-community-care-grants-and-crisis-loans-for-living-expenses-call-for-evidence,151336,TRUE,FALSE,Department for Work and Pensions,2011-02-17 00:00:00 +0000 +Sharing customer data between DWP and local authorities: call for evidence,/government/consultations/sharing-customer-data-between-dwp-and-local-authorities-call-for-evidence,151342,TRUE,FALSE,Department for Work and Pensions,2011-03-01 00:00:00 +0000 +European Social Fund: support for families with multiple problems – a call for evidence,/government/consultations/european-social-fund-support-for-families-with-multiple-problems-a-call-for-evidence,151334,FALSE,FALSE,Department for Work and Pensions,2011-04-12 00:00:00 +0100 +Independent review of health and safety legislation: call for evidence,/government/consultations/independent-review-of-health-and-safety-legislation-call-for-evidence,151337,TRUE,FALSE,Department for Work and Pensions,2011-05-20 00:00:00 +0100 +Work Capability Assessment: Year 2 call for evidence,/government/consultations/work-capability-assessment-year-2-call-for-evidence,151352,TRUE,FALSE,Department for Work and Pensions,2011-07-14 00:00:00 +0100 +Support for mortgage interest: call for evidence,/government/consultations/support-for-mortgage-interest-call-for-evidence,151348,TRUE,FALSE,Department for Work and Pensions,2011-12-06 00:00:00 +0000 +Work Capability Assessment: Year 3 call for evidence,/government/consultations/work-capability-assessment-year-3-call-for-evidence,151380,TRUE,FALSE,Department for Work and Pensions,2012-07-12 00:00:00 +0100 +Supporting automatic enrolment: call for evidence on NEST constraints,/government/consultations/supporting-automatic-enrolment-call-for-evidence-on-nest-constraints,151365,TRUE,FALSE,Department for Work and Pensions,2012-11-06 00:00:00 +0000 +Triennial review of pensions bodies – call for evidence (for 2014 review),/government/consultations/triennial-review-of-pensions-bodies,172308,TRUE,FALSE,Department for Work and Pensions,2013-06-27 00:00:00 +0100 +Local Housing Allowance Targeted Affordability Funding: call for evidence,/government/consultations/local-housing-allowance-targeted-affordability-funding-call-for-evidence,172491,TRUE,FALSE,Department for Work and Pensions,2013-06-28 00:00:00 +0100 +Work Capability Assessment: Year 4 call for evidence,/government/consultations/fourth-independent-review-of-the-work-capability-assessment-wca,172445,TRUE,FALSE,Department for Work and Pensions,2013-07-01 00:00:00 +0100 +Jobseeker’s Allowance sanctions: independent review: call for evidence,/government/consultations/jobseekers-allowance-sanctions-independent-review,202747,TRUE,FALSE,Department for Work and Pensions,2013-11-11 00:00:00 +0000 +Work Capability Assessment: Year 5 call for evidence,/government/consultations/work-capability-assessment-year-5-call-for-evidence,239986,TRUE,FALSE,Department for Work and Pensions,2014-06-10 00:00:00 +0100 +Personal Independence Payment (PIP) assessment: first independent review call for evidence,/government/consultations/personal-independence-payment-pip-assessment-first-independent-review,242010,TRUE,FALSE,Department for Work and Pensions,2014-06-23 00:00:00 +0100 +Triennial review of the Industrial Injuries Advisory Council: call for evidence,/government/consultations/triennial-review-of-the-industrial-injuries-advisory-council-call-for-evidence,280806,TRUE,FALSE,Department for Work and Pensions,2015-01-16 00:00:00 +0000 +Personal Independence Payment (PIP) assessment: second independent review call for evidence,/government/consultations/personal-independence-payment-pip-assessment-second-independent-review-call-for-evidence,333011,TRUE,FALSE,Department for Work and Pensions,2016-07-11 00:00:00 +0100 +Call for evidence and good practice on in-work progression,/government/consultations/call-for-evidence-and-good-practice-on-in-work-progression,453997,TRUE,FALSE,Department for Work and Pensions,2020-10-12 09:00:00 +0100 +Second State Pension age review: independent report call for evidence,/government/consultations/second-state-pension-age-review-independent-report-call-for-evidence,493343,FALSE,FALSE,Department for Work and Pensions,2022-02-09 09:30:05 +0000 +Towards a more innovative energy retail market: a call for evidence,/government/consultations/towards-a-more-innovative-energy-retail-market-a-call-for-evidence,532954,FALSE,FALSE,Department for Work and Pensions,2023-07-11 07:00:01 +0100 +Reviewing personal safety measures on streets in England: call for evidence,/government/consultations/reviewing-personal-safety-measures-on-streets-in-england-call-for-evidence,478933,FALSE,TRUE,Department for Work and Pensions,2023-07-11 07:00:01 +0100 +EU balance of competences review: transport call for evidence,/government/consultations/eu-balance-of-competences-review-transport-call-for-evidence,165770,TRUE,FALSE,Department for Transport,2013-05-14 00:00:00 +0100 +Advanced fuels: call for evidence,/government/consultations/advanced-fuels-call-for-evidence,210548,TRUE,TRUE,Department for Transport,2013-12-12 11:00:00 +0000 +Call for evidence: transport investment and economic performance,/government/consultations/call-for-evidence-transport-investment-and-economic-performance,220364,FALSE,FALSE,Department for Transport,2014-02-24 09:30:00 +0000 +Transport resilience review: call for evidence,/government/consultations/transport-resilience-review-call-for-evidence,224798,TRUE,FALSE,Department for Transport,2014-03-20 09:30:00 +0000 +Maritime growth study: call for evidence,/government/consultations/maritime-growth-study-call-for-evidence,279887,TRUE,TRUE,Department for Transport,2015-01-16 09:30:00 +0000 +Displaying Air Passenger Duty in air travel pricing: call for evidence,/government/consultations/displaying-air-passenger-duty-in-air-travel-pricing-call-for-evidence,290941,TRUE,FALSE,Department for Transport,2015-03-27 09:30:00 +0000 +Rail regulation: call for evidence,/government/consultations/rail-regulation-call-for-evidence,315215,TRUE,TRUE,Department for Transport,2015-12-10 09:30:00 +0000 +Starch slurry double reward classification: call for evidence,/government/consultations/starch-slurry-double-reward-classification-call-for-evidence,351009,TRUE,FALSE,Department for Transport,2017-02-21 09:30:07 +0000 +A new aviation strategy for the UK: call for evidence,/government/consultations/a-new-aviation-strategy-for-the-uk-call-for-evidence,361283,TRUE,FALSE,Department for Transport,2017-07-21 00:15:19 +0100 +Maritime 2050: call for evidence,/government/consultations/maritime-2050-call-for-evidence,380029,TRUE,FALSE,Department for Transport,2018-03-27 11:00:11 +0100 +Airline Insolvency Review: a call for evidence,/government/consultations/airline-insolvency-review-a-call-for-evidence,384274,TRUE,TRUE,Department for Transport,2018-04-16 09:30:01 +0100 +The Last Mile – a call for evidence,/government/consultations/the-last-mile-a-call-for-evidence,393641,TRUE,FALSE,Department for Transport,2018-07-30 00:15:07 +0100 +UK-Australia FTA: Trade and Agriculture Commission call for evidence,/government/consultations/uk-australia-fta-trade-and-agriculture-commision-call-for-evidence,491694,TRUE,TRUE,Department for Transport,2018-07-30 00:15:07 +0100 +Future of Transport: rural strategy – call for evidence,/government/consultations/future-of-transport-rural-strategy-call-for-evidence,452238,FALSE,TRUE,Department for Transport,2019-02-07 00:15:05 +0000 +Use of maritime shore power in the UK: call for evidence,/government/consultations/use-of-maritime-shore-power-in-the-uk-call-for-evidence,492751,TRUE,TRUE,Department for Transport,2019-07-11 09:00:00 +0100 +Call for Evidence: Scottish Government block grant adjustments for tax and welfare devolution,/government/consultations/call-for-evidence-scottish-government-block-grant-adjustments-for-tax-and-welfare-devolution,508415,FALSE,FALSE,Department for Transport,2019-07-18 11:32:14 +0100 +"Future of Transport regulatory review: call for evidence on micromobility vehicles, flexible bus services and Mobility-as-a-Service",/government/consultations/future-of-transport-regulatory-review-call-for-evidence-on-micromobility-vehicles-flexible-bus-services-and-mobility-as-a-service,434192,TRUE,TRUE,Department for Transport,2020-03-16 00:15:01 +0000 +Safe use of Automated Lane Keeping System on GB motorways: call for evidence,/government/consultations/safe-use-of-automated-lane-keeping-system-on-gb-motorways-call-for-evidence,449930,TRUE,FALSE,Department for Transport,2020-08-18 09:30:03 +0100 +Women's Health Strategy: Call for Evidence,/government/consultations/womens-health-strategy-call-for-evidence,467190,TRUE,FALSE,Department for Transport,2020-11-16 15:15:00 +0000 +Labour Market Enforcement Strategy 2024 to 2025: call for evidence,/government/consultations/labour-market-enforcement-strategy-2024-to-2025-call-for-evidence,533466,FALSE,FALSE,Department for Transport,2020-11-24 00:15:05 +0000 +"Pension trustee skills, capability and culture: a call for evidence",/government/consultations/pension-trustee-skills-capability-and-culture-a-call-for-evidence,532633,FALSE,FALSE,Department for Transport,2021-07-22 10:08:12 +0100 +Whole industry strategic plan for rail: call for evidence,/government/consultations/whole-industry-strategic-plan-for-rail-call-for-evidence,489387,FALSE,TRUE,Department for Transport,2021-12-09 16:19:55 +0000 +Children’s homes workforce: call for evidence,/government/consultations/childrens-homes-workforce-call-for-evidence,418569,TRUE,FALSE,Department for Transport,2022-02-07 09:54:55 +0000 +Short Selling Regulation: Call for Evidence,/government/consultations/short-selling-regulation-call-for-evidence,517615,TRUE,FALSE,Department for Transport,2022-04-05 00:15:09 +0100 +Green Gas Support Scheme 2023 annual tariff review: call for evidence,/government/consultations/green-gas-support-scheme-2023-annual-tariff-review-call-for-evidence,526758,FALSE,FALSE,Department for Transport,2022-08-05 11:52:23 +0100 +Driving licensing review - call for evidence on opportunities for changes to the driver licensing regime,/government/consultations/driving-licensing-review-call-for-evidence-on-opportunities-for-changes-to-the-driver-licensing-regime,506947,FALSE,TRUE,Department for Transport,2022-11-28 10:30:41 +0000 +Green Gas Support Scheme 2022 annual tariff review: call for evidence,/government/consultations/green-gas-support-scheme-2022-annual-tariff-review-call-for-evidence,502233,TRUE,TRUE,Department for Transport,2023-04-14 11:46:05 +0100 +Price-based competitive allocation for low carbon hydrogen: call for evidence,/government/consultations/price-based-competitive-allocation-for-low-carbon-hydrogen-call-for-evidence,528592,FALSE,FALSE,Department for Transport,2023-07-04 10:00:07 +0100 +Oil and gas fiscal regime review: call for evidence,/government/consultations/oil-and-gas-fiscal-regime-review-call-for-evidence,534741,FALSE,FALSE,"Department for Science, Innovation and Technology",2017-12-28 00:15:11 +0000 +The future of connected and automated mobility in the UK: call for evidence,/government/consultations/the-future-of-connected-and-automated-mobility-in-the-uk-call-for-evidence,474987,FALSE,FALSE,"Department for Science, Innovation and Technology",2021-06-08 10:56:00 +0100 +Introducing Fixed Price Certificates into Renewables Obligation schemes: call for evidence,/government/consultations/introducing-fixed-price-certificates-into-renewables-obligation-schemes-call-for-evidence,533988,FALSE,FALSE,"Department for Science, Innovation and Technology",2021-10-14 00:15:04 +0100 +Creating a Clean Steel Fund: call for evidence,/government/consultations/creating-a-clean-steel-fund-call-for-evidence,425211,TRUE,TRUE,"Department for Science, Innovation and Technology",2022-02-14 17:14:35 +0000 +Payments Regulation and the Systemic Perimeter: Consultation and Call for Evidence,/government/consultations/payments-regulation-and-the-systemic-perimeter-consultation-and-call-for-evidence,507385,TRUE,FALSE,"Department for Science, Innovation and Technology",2023-07-19 00:15:16 +0100 +Considering the case for a Housing Court: call for evidence,/government/consultations/considering-the-case-for-a-housing-court-call-for-evidence,402101,TRUE,FALSE,"Department for Levelling Up, Housing and Communities ",2018-11-13 09:51:18 +0000 +Tenancy deposit reform: a call for evidence,/government/consultations/tenancy-deposit-reform-a-call-for-evidence,420795,TRUE,FALSE,"Department for Levelling Up, Housing and Communities ",2019-06-27 16:14:38 +0100 +Fire safety: risk prioritisation in existing buildings – a call for evidence,/government/consultations/fire-safety-risk-prioritisation-in-existing-buildings-a-call-for-evidence,434402,TRUE,FALSE,"Department for Levelling Up, Housing and Communities ",2020-01-20 16:49:32 +0000 +Wireless Infrastructure Strategy: call for evidence,/government/consultations/wireless-infrastructure-strategy-call-for-evidence,484495,TRUE,TRUE,"Department for Levelling Up, Housing and Communities ",2020-10-31 00:00:02 +0000 +Driver licensing for people with medical conditions: call for evidence,/government/consultations/driver-licensing-for-people-with-medical-conditions-call-for-evidence,535007,FALSE,FALSE,"Department for Levelling Up, Housing and Communities ",2020-11-13 16:09:48 +0000 +Local authority remote meetings: call for evidence,/government/consultations/lorem-ipsum-dolor-sit-amet-elit-469500,469500,FALSE,FALSE,"Department for Levelling Up, Housing and Communities ",2021-03-25 19:23:25 +0000 +Review of architects regulation: call for evidence,/government/consultations/review-of-architects-regulation-call-for-evidence,481059,FALSE,FALSE,"Department for Levelling Up, Housing and Communities ",2021-08-16 14:16:28 +0100 +Hewitt review: call for evidence,/government/consultations/hewitt-review-call-for-evidence,517857,TRUE,FALSE,"Department for Levelling Up, Housing and Communities ",2022-04-07 00:15:01 +0100 +Airside alcohol licensing at international airports in England and Wales: call for evidence,/government/consultations/airside-alcohol-licensing-at-international-airports-in-england-and-wales-call-for-evidence,394489,TRUE,FALSE,"Department for Levelling Up, Housing and Communities ",2022-06-08 16:59:12 +0100 +Contracts for Difference (CfD): call for evidence on proposed amendments to supply chain plans,/government/consultations/contracts-for-difference-cfd-call-for-evidence-on-proposed-amendments-to-supply-chain-plans,493815,TRUE,TRUE,"Department for Levelling Up, Housing and Communities ",2022-08-22 10:50:25 +0100 +Role of vehicle-to-X energy technologies in a net zero energy system: call for evidence,/government/consultations/role-of-vehicle-to-x-technologies-in-a-net-zero-energy-system-call-for-evidence,476496,TRUE,TRUE,"Department for Levelling Up, Housing and Communities ",2023-02-02 16:44:42 +0000 +Generative artificial intelligence in education call for evidence,/government/consultations/generative-artificial-intelligence-in-education-call-for-evidence,528500,FALSE,FALSE,"Department for Levelling Up, Housing and Communities ",2023-04-12 16:59:17 +0100 +Code on Genetic Testing and Insurance: call for evidence,/government/consultations/code-on-genetic-testing-and-insurance-call-for-evidence,533556,FALSE,FALSE,"Department for Levelling Up, Housing and Communities ",2023-07-21 15:41:42 +0100 +Private parking code of practice: call for evidence,/government/consultations/private-parking-code-of-practice-call-for-evidence,533549,FALSE,FALSE,"Department for Levelling Up, Housing and Communities ",2023-07-30 00:01:00 +0100 +Review of hybrid and distance working - Call for evidence,/government/consultations/review-of-hybrid-and-distance-working-call-for-evidence,509981,TRUE,FALSE,Department for International Trade,2017-11-28 10:00:05 +0000 +Call for evidence: proposed reform of the water special merger regime,/government/consultations/call-for-evidence-proposed-reform-of-the-water-special-merger-regime,80942,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2012-05-17 00:00:00 +0100 +Wood waste landfill restrictions in England: Call for evidence,/government/consultations/wood-waste-landfill-restrictions-in-england-call-for-evidence,80953,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2012-07-31 00:00:00 +0100 +Call for evidence: Waste prevention programme for England,/government/consultations/call-for-evidence-waste-prevention-programme-for-england,156628,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2013-03-11 00:00:00 +0000 +Single-use plastic bag charge for England: call for evidence,/government/consultations/single-use-plastic-bag-charge-for-england-call-for-evidence,208542,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2013-11-25 00:00:00 +0000 +Refuse-derived fuel market in England: call for evidence,/government/consultations/refuse-derived-fuel-market-in-england-call-for-evidence,222939,TRUE,TRUE,"Department for Environment, Food & Rural Affairs",2014-03-12 00:00:00 +0000 +"Leaflets, free literature and litter: call for evidence",/government/consultations/leaflets-free-literature-and-litter-call-for-evidence,232938,FALSE,FALSE,"Department for Environment, Food & Rural Affairs",2014-05-01 00:00:00 +0100 +National flood resilience review: call for evidence,/government/consultations/national-flood-resilience-review-call-for-evidence,319980,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2016-02-02 00:00:00 +0000 +Local Authority environmental regulation fees and charges 2016 review: call for evidence,/government/consultations/local-authority-environmental-regulation-fees-and-charges-2016-review-call-for-evidence,340311,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2016-09-29 00:00:00 +0100 +Drinks containers – reducing litter and increasing recycling: call for evidence,/government/consultations/drinks-containers-reducing-litter-and-increasing-recycling-call-for-evidence,368162,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2017-10-02 15:00:34 +0100 +"Air quality: domestic burning of house coal, smokeless coal, manufactured solid fuels and wet wood - call for evidence",/government/consultations/air-quality-domestic-burning-of-house-coal-smokeless-coal-manufactured-solid-fuels-and-wet-wood-call-for-evidence,376743,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-01-30 10:01:55 +0000 +Banning third party sales of pets in England: call for evidence,/government/consultations/banning-third-party-sales-of-pets-in-england-call-for-evidence,377489,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-02-08 00:15:15 +0000 +Live exports and improving animal welfare during transport: call for evidence,/government/consultations/live-exports-and-improving-animal-welfare-during-transport-call-for-evidence,383945,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-04-10 00:15:00 +0100 +Bovine TB Strategy review 2018: call for evidence,/government/consultations/bovine-tb-strategy-review-2018-call-for-evidence,385077,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-04-24 09:30:10 +0100 +Serious and organised waste crime review: call for evidence,/government/consultations/serious-and-organised-waste-crime-review-call-for-evidence,389102,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-06-10 00:15:10 +0100 +Inshore Fisheries and Conservation Authorities conduct and operation (2014 to 2018): call for evidence,/government/consultations/inshore-fisheries-and-conservation-authorities-conduct-and-operation-2014-to-2018-call-for-evidence,393541,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-07-24 09:01:17 +0100 +"Air quality: brake, tyre and road surface wear - call for evidence",/government/consultations/air-quality-brake-tyre-and-road-surface-wear-call-for-evidence,390052,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-07-26 10:04:24 +0100 +Landscapes review (National Parks and AONBs): call for evidence,/government/consultations/landscapes-review-national-parks-and-aonbs-call-for-evidence,400467,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2018-10-20 00:15:11 +0100 +Use of general licences for the management of certain wild birds: a call for evidence,/government/consultations/use-of-general-licences-for-the-management-of-certain-wild-birds-a-call-for-evidence,416748,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2019-05-04 12:26:17 +0100 +Safeguarding the environment in British Overseas Territories: call for evidence,/government/consultations/safeguarding-the-environment-in-british-overseas-territories-call-for-evidence,417078,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2019-05-10 10:00:10 +0100 +Non-elephant ivory trade: call for evidence,/government/consultations/non-elephant-ivory-trade-call-for-evidence,418531,TRUE,TRUE,"Department for Environment, Food & Rural Affairs",2019-05-30 15:31:58 +0100 +Flood and coastal erosion: call for evidence,/government/consultations/flood-and-coastal-erosion-call-for-evidence,421507,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2019-07-08 10:12:51 +0100 +Developing a national food strategy: call for evidence,/government/consultations/developing-a-national-food-strategy-call-for-evidence,424803,FALSE,TRUE,"Department for Environment, Food & Rural Affairs",2019-08-17 00:15:06 +0100 +Highly Protected Marine Areas review: call for evidence,/government/consultations/highly-protected-marine-areas-review-call-for-evidence,428016,FALSE,FALSE,"Department for Environment, Food & Rural Affairs",2019-10-03 07:17:05 +0100 +Microchipping cats in England: call for evidence,/government/consultations/microchipping-cats-in-england-call-for-evidence,428797,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2019-10-12 00:15:01 +0100 +Welfare of primates as pets in England: call for evidence,/government/consultations/welfare-of-primates-as-pets-in-england-call-for-evidence,429538,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2019-10-25 00:15:05 +0100 +Hunting trophies: call for evidence,/government/consultations/hunting-trophies-call-for-evidence,430615,TRUE,TRUE,"Department for Environment, Food & Rural Affairs",2019-11-02 09:30:00 +0000 +Local air quality management: public authorities call for evidence,/government/consultations/local-air-quality-management-public-authorities-call-for-evidence,453399,FALSE,FALSE,"Department for Environment, Food & Rural Affairs",2020-10-05 09:30:07 +0100 +Fisheries: remote electronic monitoring call for evidence,/government/consultations/fisheries-remote-electronic-monitoring-call-for-evidence,453979,TRUE,TRUE,"Department for Environment, Food & Rural Affairs",2020-10-19 11:05:01 +0100 +Shark fin trade: call for evidence,/government/consultations/shark-fin-trade-call-for-evidence,460242,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2020-12-10 12:07:29 +0000 +Local factors in managing flood and coastal erosion risk and property flood resilience: call for evidence,/government/consultations/local-factors-in-managing-flood-and-coastal-erosion-risk-and-property-flood-resilience-call-for-evidence,464056,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2021-02-01 09:30:07 +0000 +Leaseholder-owned buildings (11m+ or 5 storeys+): call for evidence,/government/consultations/leaseholder-owned-buildings-11m-or-5-storeys-call-for-evidence,509448,FALSE,FALSE,"Department for Environment, Food & Rural Affairs",2021-09-13 09:30:08 +0100 +Future management of Sandeel and Norway pout in UK waters: call for evidence,/government/consultations/future-management-of-sandeel-and-norway-pout-in-uk-waters-call-for-evidence,485934,TRUE,TRUE,"Department for Environment, Food & Rural Affairs",2021-10-22 09:30:06 +0100 +Payment Services Regulations Review and Call for Evidence,/government/consultations/payment-services-regulations-review-and-call-for-evidence,519552,FALSE,FALSE,"Department for Environment, Food & Rural Affairs",2021-11-20 00:15:02 +0000 +Landfill Tax Review: call for evidence,/government/consultations/landfill-tax-review-call-for-evidence,489146,TRUE,FALSE,"Department for Environment, Food & Rural Affairs",2022-07-21 09:30:15 +0100 +Review of Net Zero: call for evidence,/government/consultations/review-of-net-zero-call-for-evidence,511580,TRUE,TRUE,"Department for Environment, Food & Rural Affairs",2022-08-23 10:00:34 +0100 +Cost of energy review: call for evidence,/government/consultations/cost-of-energy-review-call-for-evidence,369887,FALSE,FALSE,Department for Energy Security and Net Zero,2017-11-07 13:03:45 +0000 +Potential of marine energy projects in Great Britain: call for evidence,/government/consultations/potential-of-marine-energy-projects-in-great-britain-call-for-evidence,445924,FALSE,FALSE,Department for Energy Security and Net Zero,2020-08-28 14:20:03 +0100 +Designing the Green Heat Network Fund: call for evidence,/government/consultations/designing-the-green-heat-network-fund-call-for-evidence,452464,FALSE,FALSE,Department for Energy Security and Net Zero,2020-09-30 10:24:39 +0100 +Antimicrobial resistance national action plan - call for evidence,/government/consultations/antimicrobial-resistance-national-action-plan-call-for-evidence,514929,TRUE,TRUE,Department for Energy Security and Net Zero,2020-10-30 11:04:10 +0000 +UK Emissions Trading Scheme free allocation review: call for evidence,/government/consultations/uk-emissions-trading-scheme-free-allocation-review-call-for-evidence,468330,FALSE,FALSE,Department for Energy Security and Net Zero,2021-03-17 10:22:05 +0000 +Designing a framework for transparency of carbon content in energy products: call for evidence,/government/consultations/designing-a-framework-for-transparency-of-carbon-content-in-energy-products-call-for-evidence,477574,TRUE,TRUE,Department for Energy Security and Net Zero,2021-04-20 10:55:36 +0100 +Heavy vehicle testing review: call for evidence,/government/consultations/heavy-vehicle-testing-review-call-for-evidence,524843,FALSE,FALSE,Department for Energy Security and Net Zero,2021-07-14 10:25:39 +0100 +Call for evidence: Geospatial opportunities across the economy,/government/consultations/call-for-evidence-geospatial-opportunities-across-the-economy,513357,FALSE,TRUE,Department for Energy Security and Net Zero,2021-08-16 09:22:59 +0100 +Call for evidence review: Tier 2 route,/government/consultations/call-for-evidence-review-tier-2-route,299384,TRUE,FALSE,Department for Energy Security and Net Zero,2021-08-16 09:23:06 +0100 +Future of the energy retail market: call for evidence,/government/consultations/future-of-the-energy-retail-market-call-for-evidence,490949,FALSE,FALSE,Department for Energy Security and Net Zero,2021-12-21 12:48:31 +0000 +Senior Managers & Certification Regime: a Call for Evidence,/government/consultations/senior-managers-certification-regime-a-call-for-evidence,525263,FALSE,FALSE,Department for Energy Security and Net Zero,2022-05-12 08:40:12 +0100 +Introducing non-price factors into the Contracts for Difference scheme: call for evidence,/government/consultations/introducing-non-price-factors-into-the-contracts-for-difference-scheme-call-for-evidence,526728,FALSE,FALSE,Department for Energy Security and Net Zero,2022-05-19 11:00:15 +0100 +Call for evidence: Review of the personal insolvency framework,/government/consultations/call-for-evidence-review-of-the-personal-insolvency-framework,506128,TRUE,FALSE,Department for Energy Security and Net Zero,2022-07-25 11:21:44 +0100 +Capacity Market 2021: call for evidence on early action to align with net zero,/government/consultations/capacity-market-2021-call-for-evidence-on-early-action-to-align-with-net-zero,479679,TRUE,TRUE,Department for Energy Security and Net Zero,2022-08-04 11:28:37 +0100 +Independent Review of Social Cohesion and Resilience: call for evidence,/government/consultations/independent-review-of-social-cohesion-and-resilience-call-for-evidence,499539,FALSE,FALSE,Department for Energy Security and Net Zero,2023-04-17 09:30:00 +0100 +Youth vaping: call for evidence,/government/consultations/youth-vaping-call-for-evidence,524853,FALSE,FALSE,Department for Energy Security and Net Zero,2023-05-02 09:56:04 +0100 +Industry training board review 2023: call for evidence,/government/consultations/industry-training-board-review-2023-call-for-evidence,532011,FALSE,FALSE,Department for Energy Security and Net Zero,2023-05-17 11:00:03 +0100 +Engineering biology: call for evidence,/government/consultations/engineering-biology-call-for-evidence,532301,FALSE,FALSE,Department for Energy Security and Net Zero,2023-07-19 09:16:56 +0100 +ITT core content framework and early career framework: call for evidence,/government/consultations/itt-core-content-framework-and-early-career-framework-call-for-evidence,524275,TRUE,FALSE,Department for Energy Security and Net Zero,2023-07-24 09:00:11 +0100 +Older People's Housing Taskforce - call for evidence,/government/consultations/older-peoples-housing-taskforce-call-for-evidence,534221,FALSE,FALSE,Department for Energy Security and Net Zero,2023-07-24 09:00:11 +0100 +Domestic consumers with non-domestic energy supply contracts: call for evidence,/government/consultations/domestic-consumers-with-non-domestic-energy-supply-contracts-call-for-evidence,533512,FALSE,FALSE,Department for Energy Security and Net Zero,2023-07-31 09:30:17 +0100 +Cost of providing childcare review: call for evidence,/government/consultations/cost-of-providing-childcare-review-call-for-evidence,297029,TRUE,TRUE,Department for Education,2015-06-15 14:30:00 +0100 +Teachers' professional development standard: call for evidence,/government/consultations/teachers-professional-development-standard-call-for-evidence,305739,TRUE,FALSE,Department for Education,2015-09-07 12:00:00 +0100 +Children’s residential care review: independent call for evidence,/government/consultations/childrens-residential-care-review-independent-call-for-evidence,310680,TRUE,FALSE,Department for Education,2015-10-28 12:30:00 +0000 +Residential special schools and colleges: a call for evidence,/government/consultations/residential-special-schools-and-colleges-a-call-for-evidence,349321,TRUE,FALSE,Department for Education,2017-01-23 10:30:39 +0000 +Review of construction industrial training boards: call for evidence,/government/consultations/review-of-construction-industrial-training-boards-call-for-evidence,351766,TRUE,FALSE,Department for Education,2017-02-21 12:09:08 +0000 +National fostering stocktake: call for evidence,/government/consultations/national-fostering-stocktake-call-for-evidence,356873,TRUE,TRUE,Department for Education,2017-04-21 16:27:05 +0100 +Children in need of help and protection: call for evidence,/government/consultations/children-in-need-of-help-and-protection-call-for-evidence,381686,FALSE,TRUE,Department for Education,2018-03-16 11:10:59 +0000 +School exclusions review: call for evidence,/government/consultations/school-exclusions-review-call-for-evidence,381603,TRUE,FALSE,Department for Education,2018-03-16 11:13:04 +0000 +Review of Post-18 Education and Funding: call for evidence,/government/consultations/review-of-post-18-education-and-funding-call-for-evidence,382008,TRUE,FALSE,Department for Education,2018-03-21 08:58:24 +0000 +Home education: call for evidence and revised DfE guidance,/government/consultations/home-education-call-for-evidence-and-revised-dfe-guidance,383955,TRUE,FALSE,Department for Education,2018-04-10 12:00:33 +0100 +Improving further education workforce data: call for evidence,/government/consultations/improving-further-education-workforce-data-call-for-evidence,389038,TRUE,FALSE,Department for Education,2018-06-07 10:00:07 +0100 +SEND and AP provision: call for evidence,/government/consultations/send-and-ap-provision-call-for-evidence,416574,FALSE,FALSE,Department for Education,2019-05-03 14:00:25 +0100 +Character and resilience: call for evidence,/government/consultations/character-and-resilience-call-for-evidence,417723,FALSE,FALSE,Department for Education,2019-05-27 00:15:02 +0100 +Call for evidence: minimum salary thresholds for Tier 2,/government/consultations/call-for-evidence-review-minimum-salary-thresholds-for-tier-2,297484,TRUE,FALSE,Department for Education,2019-06-06 12:01:09 +0100 +Music education: call for evidence,/government/consultations/music-education-call-for-evidence,436098,TRUE,FALSE,Department for Education,2020-02-09 00:15:00 +0000 +Post-16 study at level 2 and below: call for evidence,/government/consultations/post-16-study-at-level-2-and-below-call-for-evidence,456817,TRUE,FALSE,Department for Education,2020-11-10 09:00:00 +0000 +"Behaviour management strategies, in-school units and managed moves: call for evidence",/government/consultations/behaviour-management-strategies-in-school-units-and-managed-moves-call-for-evidence,476606,FALSE,FALSE,Department for Education,2021-06-29 00:15:07 +0100 +10-Year Cancer Plan: call for evidence,/government/consultations/10-year-cancer-plan-call-for-evidence,494063,TRUE,TRUE,Department for Education,2022-12-14 00:15:03 +0000 +Role of biomass in achieving net zero: call for evidence,/government/consultations/role-of-biomass-in-achieving-net-zero-call-for-evidence,469881,TRUE,TRUE,Department for Education,2023-03-22 09:30:03 +0000 +Call for evidence: The taxation of decentralised finance involving the lending and staking of cryptoassets,/government/consultations/call-for-evidence-the-taxation-of-decentralised-finance-involving-the-lending-and-staking-of-cryptoassets,505755,TRUE,FALSE,Department for Education,2023-06-14 09:44:19 +0100 +Third-party intermediaries in the retail energy market: call for evidence,/government/consultations/third-party-intermediaries-in-the-retail-energy-market-call-for-evidence,481028,TRUE,TRUE,Department for Education,2023-06-30 00:01:05 +0100 +Review of cultural education: call for evidence,/government/consultations/review-of-cultural-education-call-for-evidence,72773,TRUE,FALSE,"Department for Digital, Culture, Media & Sport",2011-04-08 00:00:00 +0100 +Lotteries- Call for Evidence,/government/consultations/lotteries-call-for-evidence,276730,FALSE,FALSE,"Department for Digital, Culture, Media & Sport",2014-12-11 00:00:00 +0000 +Sport Duty of Care Review: call for evidence,/government/consultations/sport-duty-of-care-review-call-for-evidence,326011,TRUE,FALSE,"Department for Digital, Culture, Media & Sport",2016-04-12 11:00:00 +0100 +Mission-led business review: call for evidence,/government/consultations/mission-led-business-review-call-for-evidence,328467,TRUE,FALSE,"Department for Digital, Culture, Media & Sport",2016-05-09 11:00:00 +0100 +Call for evidence: Review of Gaming Machines and Social Responsibility Measures,/government/consultations/call-for-evidence-review-of-gaming-machines-and-social-responsibility-measures,342223,TRUE,TRUE,"Department for Digital, Culture, Media & Sport",2016-10-24 13:30:00 +0100 +Call for Evidence: Extending Local Full Fibre Broadband Networks,/government/consultations/call-for-evidence-extending-local-full-fibre-broadband-networks,347899,TRUE,FALSE,"Department for Digital, Culture, Media & Sport",2016-12-29 09:30:00 +0000 +Future Telecoms Infrastructure Review: Call for Evidence,/government/consultations/future-telecoms-infrastructure-review-call-for-evidence,374028,TRUE,TRUE,"Department for Digital, Culture, Media & Sport",2017-12-19 09:00:02 +0000 +Call for evidence on approach to Loneliness Strategy,/government/consultations/call-for-evidence-on-approach-to-loneliness-strategy,390409,TRUE,FALSE,"Department for Digital, Culture, Media & Sport",2018-06-22 10:21:00 +0100 +Call for evidence on sustainable high-quality journalism in the UK,/government/consultations/call-for-evidence-on-sustainable-high-quality-journalism-in-the-uk,391047,TRUE,TRUE,"Department for Digital, Culture, Media & Sport",2018-06-28 00:15:07 +0100 +HM Treasury review of Pool Reinsurance Ltd 2020-2021: Call for Evidence,/government/consultations/hm-treasury-review-of-pool-reinsurance-ltd-2020-2021-call-for-evidence,453822,TRUE,FALSE,"Department for Digital, Culture, Media & Sport",2020-09-23 09:00:05 +0100 +Mental health and wellbeing plan: discussion paper and call for evidence,/government/consultations/mental-health-and-wellbeing-plan-discussion-paper-and-call-for-evidence,498408,TRUE,TRUE,"Department for Culture, Media and Sport",2021-06-02 00:15:01 +0100 +Call for evidence - convention on international interests in mobile equipment and protocol thereto on matters specific to aircraft equipment,/government/consultations/call-for-evidence-convention-on-international-interests-in-mobile-equipment-and-protocol-thereto-on-matters-specific-to-aircraft-equipment,37845,TRUE,TRUE,"Department for Business, Innovation & Skills",2010-07-30 00:00:00 +0100 +Scientific advisory committees: code of practice - call for evidence,/government/consultations/code-of-practice-for-scientific-advisory-committees,37815,TRUE,FALSE,"Department for Business, Innovation & Skills",2010-09-17 00:00:00 +0100 +Women On Boards: Call for Evidence,/government/consultations/women-on-boards-call-for-evidence,37812,FALSE,FALSE,"Department for Business, Innovation & Skills",2010-10-08 00:00:00 +0100 +The EU Framework Programme: call for evidence,/government/consultations/the-eu-framework-programme-call-for-evidence,37810,TRUE,TRUE,"Department for Business, Innovation & Skills",2010-10-13 00:00:00 +0100 +Consumer credit and personal insolvency: call for evidence,/government/consultations/consumer-credit-and-personal-insolvency-call-for-evidence,37805,TRUE,FALSE,"Department for Business, Innovation & Skills",2010-10-15 00:00:00 +0100 +A long-term focus for corporate Britain: call for evidence,/government/consultations/a-long-term-focus-for-corporate-britain-a-call-for-evidence,37843,TRUE,FALSE,"Department for Business, Innovation & Skills",2010-10-25 00:00:00 +0100 +Trade white paper: call for evidence,/government/consultations/trade-white-paper,37842,TRUE,TRUE,"Department for Business, Innovation & Skills",2010-11-05 00:00:00 +0000 +Principles for economic regulation: a call for evidence,/government/consultations/principles-for-economic-regulation-call-for-evidence,37840,TRUE,FALSE,"Department for Business, Innovation & Skills",2011-01-07 00:00:00 +0000 +Collective redundancy consultation rules: call for evidence,/government/consultations/call-for-evidence-uo-collective-redundancy-consultation-rules,37834,TRUE,FALSE,"Department for Business, Innovation & Skills",2011-11-23 00:00:00 +0000 +EU proposals on alternative dispute resolution (ADR): call for evidence,/government/consultations/call-for-evidence-on-eu-proposals-on-alternative-dispute-resolution-adr,37792,TRUE,FALSE,"Department for Business, Innovation & Skills",2011-12-21 00:00:00 +0000 +Compensation for the indirect costs of the Carbon Price Floor and EU Emissions Trading Scheme (ETS): call for evidence,/government/consultations/compensation-for-the-indirect-costs-of-the-carbon-price-floor-and-eu-emissions-trading-scheme-ets-call-for-evidence--2,37832,TRUE,FALSE,"Department for Business, Innovation & Skills",2012-03-12 00:00:00 +0000 +Dealing with dismissal and compensated no fault dismissal for micro businesses: call for evidence,/government/consultations/call-for-evidence-dealing-with-dismissal-and-compensated-no-fault-dismissal-for-micro-businesses,37831,TRUE,FALSE,"Department for Business, Innovation & Skills",2012-03-15 00:00:00 +0000 +Waste Electrical and Electronic Equipment: call for evidence,/government/consultations/waste-electrical-and-electronic-equipment-call-for-evidence,37829,TRUE,FALSE,"Department for Business, Innovation & Skills",2012-05-28 00:00:00 +0100 +Posting of Workers Enforcement Directive: call for evidence on EU proposal,/government/consultations/call-for-evidence-eu-proposal-for-a-posting-of-workers-enforcement-directive,37827,TRUE,TRUE,"Department for Business, Innovation & Skills",2012-06-14 00:00:00 +0100 +Call for evidence on raising awareness of employee ownership,/government/consultations/call-for-evidence-on-raising-awareness-of-employee-ownership,40021,TRUE,FALSE,"Department for Business, Innovation & Skills",2012-07-07 00:00:00 +0100 +Shaping a UK agri-tech strategy: call for evidence,/government/consultations/shaping-a-uk-agri-tech-strategy-call-for-evidence,40027,TRUE,FALSE,"Department for Business, Innovation & Skills",2012-10-11 00:00:00 +0100 +Proposals to stand up for British pubs and prevent unfair practices: call for evidence on self regulation of the industry framework and company codes,/government/consultations/proposals-to-stand-up-for-british-pubs-and-prevent-unfair-practices-call-for-evidence-on-self-regulation-of-the-industry-framework-and-company-codes,69930,TRUE,FALSE,"Department for Business, Innovation & Skills",2012-11-07 00:00:00 +0000 +Triennial review of the Research Councils: call for evidence,/government/consultations/triennial-review-of-the-research-councils-call-for-evidence,74211,TRUE,FALSE,"Department for Business, Innovation & Skills",2013-02-06 00:00:00 +0000 +Cyber security organisational standards: call for evidence,/government/consultations/cyber-security-organisational-standards-call-for-evidence,108985,TRUE,FALSE,"Department for Business, Innovation & Skills",2013-03-01 00:00:00 +0000 +Targeted support for higher education students: call for evidence,/government/consultations/targeted-support-for-higher-education-students-review-call-for-evidence,148504,TRUE,FALSE,"Department for Business, Innovation & Skills",2013-03-27 00:00:00 +0000 +Universities and growth: the Witty review - call for evidence,/government/consultations/universities-and-growth-the-witty-review-call-for-evidence,165842,TRUE,FALSE,"Department for Business, Innovation & Skills",2013-05-03 00:00:00 +0100 +EU directive on network and information security: call for evidence,/government/consultations/eu-directive-on-network-and-information-security-call-for-evidence,169229,TRUE,TRUE,"Department for Business, Innovation & Skills",2013-05-22 00:00:00 +0100 +Whistleblowing framework: call for evidence,/government/consultations/whistleblowing-framework-call-for-evidence,173378,TRUE,FALSE,"Department for Business, Innovation & Skills",2013-07-12 00:00:00 +0100 +Package travel and assisted travel arrangements - call for evidence,/government/consultations/package-travel-and-assisted-travel-arrangements-call-for-evidence,188520,TRUE,FALSE,"Department for Business, Innovation & Skills",2013-09-20 00:00:00 +0100 +UK Commission for Employment and Skills (UKCES) triennial review 2014: call for evidence,/government/consultations/uk-commission-for-employment-and-skills-ukces-triennial-review-2014-call-for-evidence,220440,FALSE,FALSE,"Department for Business, Innovation & Skills",2014-02-24 09:30:00 +0000 +Consumer protection: copycat packaging - call for evidence,/government/consultations/consumer-protection-copycat-packaging-call-for-evidence,230531,TRUE,TRUE,"Department for Business, Innovation & Skills",2014-04-11 09:00:00 +0100 +Pre-licensing register of arms brokers: call for evidence,/government/consultations/pre-licensing-register-of-arms-brokers-call-for-evidence,228544,TRUE,TRUE,"Department for Business, Innovation & Skills",2014-04-17 00:15:00 +0100 +Nurse review of research councils: call for evidence,/government/consultations/nurse-review-of-research-councils-call-for-evidence,284715,TRUE,TRUE,"Department for Business, Innovation & Skills",2015-03-09 09:00:00 +0000 +"Tips, gratuities, cover and service charges: call for evidence",/government/consultations/tips-gratuities-cover-and-service-charges-call-for-evidence,305170,TRUE,TRUE,"Department for Business, Innovation & Skills",2015-08-30 00:15:00 +0100 +Accelerated courses and switching university or degree: call for evidence,/government/consultations/accelerated-courses-and-switching-university-or-degree-call-for-evidence,328874,TRUE,TRUE,"Department for Business, Innovation & Skills",2016-05-16 11:00:00 +0100 +Review of consumer protection measures applying to ticket resale: call for evidence,/government/consultations/review-of-consumer-protection-measures-applying-to-ticket-resale-call-for-evidence,309091,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2015-10-13 10:00:00 +0100 +Energy Technology List: call for evidence,/government/consultations/the-energy-technology-list-call-for-evidence,314028,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2015-12-11 00:00:00 +0000 +Research Excellence Framework review: call for evidence,/government/consultations/research-excellence-framework-review-call-for-evidence,319172,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-01-27 18:00:00 +0000 +Assessment and Design Fees: Call for Evidence,/government/consultations/assessment-and-design-fees-call-for-evidence,324543,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-03-24 09:00:00 +0000 +Business broadband review: call for evidence,/government/consultations/business-broadband-review-call-for-evidence,328908,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2016-05-13 10:00:00 +0100 +Improving the consumer landscape and quicker switching: call for evidence,/government/consultations/improving-the-consumer-landscape-and-quicker-switching-call-for-evidence,329623,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2016-05-24 10:00:00 +0100 +Non-compete clauses: call for evidence,/government/consultations/non-compete-clauses-call-for-evidence,329629,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-05-25 10:00:00 +0100 +Driverless vehicle testing facilities: call for evidence,/government/consultations/driverless-vehicle-testing-facilities-call-for-evidence,329605,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-05-26 12:00:00 +0100 +Groceries Code Adjudicator: statutory review - call for evidence,/government/consultations/groceries-code-adjudicator-statutory-review,333841,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-10-18 10:00:00 +0100 +Call for evidence on fuelled and geothermal technologies in the Contracts for Difference scheme,/government/consultations/call-for-evidence-on-fuelled-and-geothermal-technologies-in-the-contracts-for-difference-scheme,342018,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2016-11-09 07:00:00 +0000 +"A smart, flexible energy system: call for evidence",/government/consultations/call-for-evidence-a-smart-flexible-energy-system,338639,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-11-10 09:00:00 +0000 +UK bioeconomy: call for evidence,/government/consultations/uk-bioeconomy-call-for-evidence,345605,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-12-01 09:00:00 +0000 +Implementing midata in the energy sector: call for evidence,/government/consultations/call-for-evidence-implementing-midata-in-the-energy-sector,346442,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2016-12-14 00:15:00 +0000 +Review of limited partnership law: call for evidence,/government/consultations/review-of-limited-partnership-law-call-for-evidence,346749,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2017-01-16 11:00:00 +0000 +Electronic balloting for industrial action: Knight review - call for evidence,/government/consultations/electronic-balloting-for-industrial-action-knight-review-call-for-evidence,346707,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2017-03-01 09:45:00 +0000 +Laser pointers: call for evidence,/government/consultations/laser-pointers-call-for-evidence,364358,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2017-08-12 00:15:12 +0100 +Reform of the Green Deal Framework: call for evidence,/government/consultations/call-for-evidence-on-the-reform-of-the-green-deal-framework,356058,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2017-10-12 09:24:12 +0100 +Building a market for energy efficiency: call for evidence,/government/consultations/building-a-market-for-energy-efficiency-call-for-evidence,366123,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2017-10-12 09:31:04 +0100 +A future framework for heat in buildings: call for evidence,/government/consultations/a-future-framework-for-heat-in-buildings-call-for-evidence,381492,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2018-03-19 14:48:00 +0000 +Business productivity review: call for evidence,/government/consultations/business-productivity-review-call-for-evidence,387077,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2018-05-23 10:22:42 +0100 +Financial Reporting Council independent review: call for evidence,/government/consultations/financial-reporting-council-independent-review-call-for-evidence,388953,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2018-06-06 00:15:07 +0100 +Helping businesses to improve the way they use energy: call for evidence,/government/consultations/helping-businesses-to-improve-the-way-they-use-energy-call-for-evidence,392660,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2018-07-18 12:18:19 +0100 +The future for small-scale low-carbon generation: a call for evidence,/government/consultations/the-future-for-small-scale-low-carbon-generation-a-call-for-evidence,392014,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2018-07-19 13:56:50 +0100 +Energy Performance Certificates in buildings: call for evidence,/government/consultations/energy-performance-certificates-in-buildings-call-for-evidence,389455,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2018-07-26 15:50:15 +0100 +Carbon offsetting in transport: a call for evidence,/government/consultations/carbon-offsetting-in-transport-a-call-for-evidence,422369,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2018-07-27 10:00:01 +0100 +Capacity Market and Emissions Performance Standard review: call for evidence,/government/consultations/capacity-market-and-emissions-performance-standard-review-call-for-evidence,393545,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2018-08-08 10:17:28 +0100 +Creating a responsible payment culture: a call for evidence on tackling late payment,/government/consultations/creating-a-responsible-payment-culture-a-call-for-evidence-on-tackling-late-payment,398264,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2018-10-04 09:36:47 +0100 +Strengthening the UK’s offshore oil and gas decommissioning industry: call for evidence,/government/consultations/strengthening-the-uks-offshore-oil-and-gas-decommissioning-industry-call-for-evidence,408280,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2019-03-13 13:16:31 +0000 +Energy efficiency scheme for small and medium sized businesses: call for evidence,/government/consultations/energy-efficiency-scheme-for-small-and-medium-sized-businesses-call-for-evidence,411403,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2019-03-13 13:16:54 +0000 +Future frameworks for international collaboration on research and innovation: call for evidence,/government/consultations/future-frameworks-for-international-collaboration-on-research-and-innovation-call-for-evidence,415343,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2019-04-15 11:17:59 +0100 +"Standards for biodegradable, compostable and bio-based plastics: call for evidence",/government/consultations/standards-for-biodegradable-compostable-and-bio-based-plastics-call-for-evidence,421726,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2019-07-22 10:00:02 +0100 +Update to Green Finance Strategy: call for evidence,/government/consultations/update-to-green-finance-strategy-call-for-evidence,501474,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2019-08-29 10:35:18 +0100 +Labour Market Enforcement Strategy 2019 to 2020: call for evidence,/government/consultations/labour-market-enforcement-strategy-2019-to-2020-call-for-evidence,393515,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2019-12-16 13:36:00 +0000 +Support in the workplace for victims of domestic abuse - call for evidence,/government/consultations/support-in-the-workplace-for-victims-of-domestic-abuse-call-for-evidence,444522,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-06-10 13:21:52 +0100 +Combined Heat and Power (CHP): the route to 2050 - call for evidence,/government/consultations/combined-heat-and-power-chp-the-route-to-2050-call-for-evidence,443970,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-06-12 15:36:04 +0100 +Energy-related products: call for evidence,/government/consultations/energy-related-products-call-for-evidence,444013,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-06-12 16:26:28 +0100 +Recognition of professional qualifications and regulation of professions: call for evidence,/government/consultations/recognition-of-professional-qualifications-and-regulation-of-professions-call-for-evidence,448326,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-08-25 16:42:55 +0100 +International Regulatory Cooperation Strategy: call for evidence,/government/consultations/international-regulatory-cooperation-strategy-call-for-evidence,450222,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-09-02 09:54:40 +0100 +Greenhouse gas removals: call for evidence,/government/consultations/greenhouse-gas-removals-call-for-evidence,459506,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-12-04 10:15:41 +0000 +"Enabling a high renewable, net zero electricity system: call for evidence",/government/consultations/enabling-a-high-renewable-net-zero-electricity-system-call-for-evidence,460092,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2020-12-14 10:28:14 +0000 +Post-implementation review of the Competition Appeal Tribunal Rules 2015: call for evidence,/government/consultations/post-implementation-review-of-the-competition-appeal-tribunal-rules-2015-call-for-evidence,465203,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-03-16 16:33:45 +0000 +Public transport ticketing scheme block exemption: call for evidence,/government/consultations/public-transport-ticketing-scheme-block-exemption-call-for-evidence,468310,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2021-03-22 15:35:20 +0000 +Facilitating the deployment of large-scale and long-duration electricity storage: call for evidence,/government/consultations/facilitating-the-deployment-of-large-scale-and-long-duration-electricity-storage-call-for-evidence,476497,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-07-20 10:27:15 +0100 +Methane suppressing feed products: call for evidence,/government/consultations/methane-suppressing-feed-products-call-for-evidence,509558,FALSE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-07-20 10:27:17 +0100 +Loot boxes in video games - call for evidence,/government/consultations/loot-boxes-in-video-games-call-for-evidence,452425,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2021-07-26 10:51:53 +0100 +Potential of high temperature gas reactors to support the AMR RD&D programme: call for evidence,/government/consultations/potential-of-high-temperature-gas-reactors-to-support-the-amr-rd-demonstration-programme-call-for-evidence,476122,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-07-29 00:15:04 +0100 +Combined heat and power: pathway to decarbonisation call for evidence,/government/consultations/combined-heat-and-power-pathway-to-decarbonisation-call-for-evidence,483265,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-09-27 14:21:47 +0100 +Statutory review of the Reporting on Payment Practices and Performance Regulations 2017: call for evidence,/government/consultations/statutory-review-of-the-reporting-on-payment-practices-and-performance-regulations-2017-call-for-evidence,487932,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-11-17 14:08:39 +0000 +Towards a market for low emissions industrial products: call for evidence,/government/consultations/towards-a-market-for-low-emissions-industrial-products-call-for-evidence,489395,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-12-06 12:00:58 +0000 +Union connectivity review: call for evidence,/government/consultations/union-connectivity-review-call-for-evidence,457360,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2021-12-20 10:45:08 +0000 +Call for evidence: An Independent Customs Regime,/government/consultations/call-for-evidence-an-independent-customs-regime,493793,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2022-02-04 10:00:09 +0000 +UK Advanced Materials: call for evidence,/government/consultations/uk-advanced-materials-call-for-evidence,494151,TRUE,TRUE,"Department for Business, Energy & Industrial Strategy",2022-02-10 10:43:44 +0000 +Commonly littered single-use plastic items: call for evidence,/government/consultations/commonly-littered-single-use-plastic-items-call-for-evidence,488297,TRUE,FALSE,"Department for Business, Energy & Industrial Strategy",2022-09-29 08:01:15 +0100 +Consumer Contract Regulations 2013 review: call for evidence,/government/consultations/consumer-contract-regulations-2014-review-call-for-evidence,409324,FALSE,FALSE,Department for Business and Trade,2019-03-07 10:00:27 +0000 +Post Office Horizon IT Inquiry: call for evidence,/government/consultations/post-office-horizon-it-inquiry-call-for-evidence,458657,FALSE,FALSE,Department for Business and Trade,2020-12-01 10:34:51 +0000 +Labour Market Enforcement Strategy 2023 to 2024: call for evidence,/government/consultations/labour-market-enforcement-strategy-2023-to-2024-call-for-evidence,499878,FALSE,FALSE,Department for Business and Trade,2022-04-13 12:00:03 +0100 +Call for Evidence: umbrella company market,/government/consultations/call-for-evidence-umbrella-company-market,488807,TRUE,FALSE,Department for Business and Trade,2023-05-24 00:15:00 +0100 +TAC call for evidence: accession of the UK to the CPTPP,/government/consultations/tac-call-for-evidence-accession-of-the-uk-to-the-cptpp,533361,FALSE,FALSE,Department for Business and Trade,2023-07-17 09:00:00 +0100 +Public Bodies Review of Homes England: call for evidence,/government/consultations/public-bodies-review-of-homes-england-call-for-evidence,533984,FALSE,FALSE,Department for Business and Trade,2023-07-20 11:58:47 +0100 +Tailored review of the Criminal Cases Review Commission: Call for evidence,/government/consultations/tailored-review-of-the-criminal-cases-review-commission-call-for-evidence,372653,FALSE,FALSE,Criminal Cases Review Commission,2017-12-11 10:00:15 +0000 +Intimidation in Public Life: CSPL Call for Evidence,/government/consultations/intimidation-of-parliamentary-candidates-cspl-call-for-evidence,363160,TRUE,FALSE,Committee on Standards in Public Life,2017-07-24 10:15:36 +0100 +Ethnic disparities and inequality in the UK: call for evidence,/government/consultations/ethnic-disparities-and-inequality-in-the-uk-call-for-evidence,452946,FALSE,TRUE,Commission on Race and Ethnic Disparities,2020-10-26 09:00:04 +0000 +Extremism in England and Wales: call for evidence,/government/consultations/extremism-in-england-and-wales-call-for-evidence,402611,TRUE,FALSE,Commission for Countering Extremism,2018-11-22 00:15:00 +0000 +Social Mobility and Child Poverty review - call for evidence,/government/consultations/social-mobility-and-child-poverty-review-call-for-evidence,77444,FALSE,FALSE,Cabinet Office,2011-08-16 00:00:00 +0100 +Big Lottery Fund triennial review: call for evidence,/government/consultations/big-lottery-fund-triennial-review-call-for-evidence,209358,TRUE,TRUE,Cabinet Office,2013-11-29 00:00:00 +0000 +UK COVID-19 device product market: call for evidence,/government/consultations/uk-covid-19-device-product-market-call-for-evidence,480731,TRUE,FALSE,Cabinet Office,2017-09-05 00:15:22 +0100 +Supporting Ex-Offenders on their Path to Employment: A government Call for Evidence,/government/consultations/supporting-ex-offenders-on-their-path-to-employment-a-government-call-for-evidence,391782,FALSE,FALSE,Cabinet Office,2018-07-04 12:34:49 +0100 +Fairness in government debt management: a call for evidence,/government/consultations/fairness-in-government-debt-management-a-call-for-evidence,445810,FALSE,TRUE,Cabinet Office,2020-06-29 10:00:05 +0100 +COVID-Status Certification Review - Call for evidence - now closed,/government/consultations/covid-status-certification-review-call-for-evidence,468373,FALSE,FALSE,Cabinet Office,2021-03-15 16:30:03 +0000 +National Resilience Strategy: Call for Evidence,/government/consultations/national-resilience-strategy-call-for-evidence,476903,TRUE,TRUE,Cabinet Office,2021-07-13 14:06:33 +0100 +Biological Security Strategy: call for evidence,/government/consultations/biological-security-strategy-call-for-evidence,494667,FALSE,TRUE,Cabinet Office,2022-02-16 00:15:07 +0000 +Call for evidence review: economic impact of the Tier 1 (Entrepreneur) route,/government/consultations/call-for-evidence-review-economic-impact-of-the-tier-1-entrepreneur-route,290263,TRUE,FALSE,Cabinet Office,2022-11-02 07:00:01 +0000 +Inner Thames Estuary feasibility studies: call for evidence,/government/consultations/inner-thames-estuary-feasibility-studies-call-for-evidence,213501,TRUE,TRUE,Airports Commission,2014-01-16 09:30:00 +0000 +Use of the UK’s existing airport capacity: call for evidence,/government/consultations/use-of-the-uks-existing-airport-capacity-call-for-evidence,239121,TRUE,TRUE,Airports Commission,2014-06-09 09:30:00 +0100 +Delivering new runway capacity: call for evidence,/government/consultations/new-runway-capacity-call-for-evidence,244554,TRUE,FALSE,Airports Commission,2014-07-01 10:00:00 +0100 \ No newline at end of file diff --git a/lib/tasks/migrate_calls_for_evidence.rake b/lib/tasks/migrate_calls_for_evidence.rake new file mode 100644 index 00000000000..df88eb9922f --- /dev/null +++ b/lib/tasks/migrate_calls_for_evidence.rake @@ -0,0 +1,103 @@ +namespace :migrate_calls_for_evidence do + # Path to the cfe-consultations CSV file + # Export it from here: + # https://docs.google.com/spreadsheets/d/1kG2iynakZHm7Js8coDuoXepJe9mfHH0v97gfCDrGfdI/edit#gid=2100414436 + migration_csv_path = ENV["MIGRATION_CSV_PATH"] || Rails.root.join("db/data_migration/20230901000000_migrate_calls_for_evidence.csv") + + # Column headers to expect in the CSV + column_for_document_id = "Document ID" + column_for_path = "Path" + + # User ID to attribute the migration to in the document history (whodunnit) + # Defaults to the user "GDS Inside Government Team" + migration_user_id = ENV["MIGRATION_USER_ID"] || 406 + + # Website base URL to use when verifying redirects exist + # Defaults to the env var GOVUK_WEBSITE_ROOT which seems to exist in EKS + base_url = ENV["GOVUK_WEBSITE_ROOT"] || "https://www.gov.uk" + + desc "Migrate Consultations to Calls for Evidence" + task migrate: :environment do + migration_csv = CSV.parse(File.read(migration_csv_path), headers: true) + document_ids = migration_csv.map { |row| row[column_for_document_id] } + whodunnit = User.find(migration_user_id) + + successes = [] + failures = [] + + puts "\nMigrating #{document_ids.count} documents\n\n" + + document_ids.each do |document_id| + document = Document.find(document_id) + DataHygiene::MigrateConsultationToCallForEvidence.new(document:, whodunnit:).call + successes << document_id + print "." + rescue StandardError => e + failures << [document_id, e.message] + print "F" + end + + puts "\n\n" + puts "Finished with #{successes.count} successful migrations and #{failures.count} failures." + + if failures.present? + puts "\nDetails of failures (in CSV format):\n\n" + puts ["Document ID", "Error message"].to_csv + puts failures.map(&:to_csv) + end + end + + desc "Verify the migrated documents redirect as expected" + task verify: :environment do + migration_csv = CSV.parse(File.read(migration_csv_path), headers: true) + documents = migration_csv.map do |row| + { + id: row[column_for_document_id], + path: row[column_for_path], + } + end + + successes = [] + failures = [] + + puts "\nVerifying redirects for #{documents.count} documents\n\n" + + documents.each do |document| + consultation_path = document[:path] + call_for_evidence_path = document[:path].sub("consultations", "calls-for-evidence") + + consultation = URI("#{base_url}#{consultation_path}") + call_for_evidence = URI("#{base_url}#{call_for_evidence_path}") + + # Request the consultation URL + response = Net::HTTP.get_response(consultation) + unless response.code == "301" + raise "Unexpected response code #{response.code} when requesting #{consultation}" + end + unless response["Location"] == call_for_evidence.path + raise "Got redirected to #{response['Location']} but was expecting #{call_for_evidence}" + end + + # Request the call for evidence URL + response = Net::HTTP.get_response(call_for_evidence) + unless response.code == "200" + raise "Unexpected response code #{response.code} when requesting #{call_for_evidence}" + end + + successes << document[:id] + print "." + rescue StandardError => e + failures << [document[:id], e.message] + print "F" + end + + puts "\n\n" + puts "Finished with #{successes.count} successful verifications and #{failures.count} failures." + + if failures.present? + puts "\nDetails of failures (in CSV format):\n\n" + puts ["Document ID", "Error message"].to_csv + puts failures.map(&:to_csv) + end + end +end