Skip to content

Commit

Permalink
Merge pull request #8612 from alphagov/convert_hmrc_topics
Browse files Browse the repository at this point in the history
Temporary rake task to convert HMRC's specialist topics
  • Loading branch information
hannako authored Dec 11, 2023
2 parents 82dcd42 + 85a765a commit 412debb
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions lib/tasks/draft_document_collection_writer.rake
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,62 @@ task :create_draft_document_collection, %i[specialist_topic_base_path assignee_e

puts builder.message
end

desc "Create draft document collections in the whitehall database for all HRMC owned specialist topics"
task convert_hmrc_specialist_topics: :environment do
hmrc_specialist_topic_paths = [
"/topic/benefits-credits/child-benefit",
"/topic/benefits-credits/tax-credits",
"/topic/business-tax/aggregates-levy",
"/topic/business-tax/air-passenger-duty",
"/topic/business-tax/alcohol-duties",
"/topic/business-tax/capital-allowances",
"/topic/business-tax/climate-change-levy",
"/topic/business-tax/construction-industry-scheme",
"/topic/business-tax/corporation-tax",
"/topic/business-tax/digital-services-tax",
"/topic/business-tax/employment-related-securities",
"/topic/business-tax/fuel-duty",
"/topic/business-tax/gambling-duties",
"/topic/business-tax/import-export",
"/topic/business-tax/insurance-premium-tax",
"/topic/business-tax/investment-schemes",
"/topic/business-tax/ir35",
"/topic/business-tax/landfill-tax",
"/topic/business-tax/large-midsize-business-guidance",
"/topic/business-tax/money-laundering-regulations",
"/topic/business-tax/paye",
"/topic/business-tax/pension-scheme-administration",
"/topic/business-tax/self-employed",
"/topic/business-tax/soft-drinks-industry-levy",
"/topic/business-tax/stamp-duty-on-shares",
"/topic/business-tax/stamp-taxes",
"/topic/business-tax/tobacco-products-duty",
"/topic/business-tax/vat",
"/topic/community-organisations/community-amateur-sports-clubs",
"/topic/dealing-with-hmrc/complaints-appeals",
"/topic/dealing-with-hmrc/paying-hmrc",
"/topic/dealing-with-hmrc/phishing-scams",
"/topic/dealing-with-hmrc/software-development",
"/topic/dealing-with-hmrc/tax-agent-guidance",
"/topic/dealing-with-hmrc/tax-avoidance",
"/topic/dealing-with-hmrc/tax-compliance",
"/topic/oil-and-gas/finance-and-taxation",
"/topic/personal-tax/capital-gains-tax",
"/topic/personal-tax/coming-to-uk",
"/topic/personal-tax/income-tax",
"/topic/personal-tax/inheritance-tax",
"/topic/personal-tax/leaving-uk",
"/topic/personal-tax/living-working-abroad-offshore",
"/topic/personal-tax/national-insurance",
"/topic/personal-tax/non-resident-landlord-scheme",
"/topic/personal-tax/savings-investment-tax",
"/topic/personal-tax/self-assessment",
"/topic/personal-tax/trusts",
]
assigned_gds_content_designer = "[email protected]"
hmrc_specialist_topic_paths.each do |path|
Rake::Task["create_draft_document_collection"].invoke(path, assigned_gds_content_designer)
Rake::Task["create_draft_document_collection"].reenable
end
end

0 comments on commit 412debb

Please sign in to comment.