content-tagger: Rake tasks
These rake tasks come from the desc descriptions in content-tagger’s lib/tasks folder.
To change what’s shown here, change the description in the code.
content:tagged_to_ancestor
Find all content that is tagged to a taxon and its direct ancestor and optionally removes redundant tagging (option: untag=‘untag’)
k exec deploy/content-tagger -- rake content:tagged_to_ancestor[untag]
View source (lib/tasks/content_tagged_to_ancestors.rake)
govuk:export_content_by_organisations
Export content by organisations as CSV
k exec deploy/content-tagger -- rake govuk:export_content_by_organisations
View source (lib/tasks/export_content_by_organisations.rake)
govuk:export_mainstream_taxons
Export taxons of mainstream content as CSV
k exec deploy/content-tagger -- rake govuk:export_mainstream_taxons
View source (lib/tasks/export_mainstream_taxons.rake)
tag_from_csv
Perform taggings from a csv file
k exec deploy/content-tagger -- rake tag_from_csv[csv_url]
View source (lib/tasks/tag_from_csv.rake)
metrics:taxonomy:count_content_per_level
Count all content tagged to each level in the taxonomy
k exec deploy/content-tagger -- rake metrics:taxonomy:count_content_per_level
View source (lib/tasks/taxonomy_metrics.rake)
metrics:taxonomy:record_taxons_per_level_metrics
Record number of taxons per level in the Topic Taxonomy
k exec deploy/content-tagger -- rake metrics:taxonomy:record_taxons_per_level_metrics
View source (lib/tasks/taxonomy_metrics.rake)
metrics:taxonomy:record_content_coverage_metrics
Record metrics on content coverage for the Topic Taxonomy
k exec deploy/content-tagger -- rake metrics:taxonomy:record_content_coverage_metrics
View source (lib/tasks/taxonomy_metrics.rake)
metrics:taxonomy:record_number_of_superfluous_taggings_metrics
Record number of superfluous taggings
k exec deploy/content-tagger -- rake metrics:taxonomy:record_number_of_superfluous_taggings_metrics
View source (lib/tasks/taxonomy_metrics.rake)
metrics:taxonomy:record_all
Record all metrics about the Topic Taxonomy
k exec deploy/content-tagger -- rake metrics:taxonomy:record_all
View source (lib/tasks/taxonomy_metrics.rake)
worldwide:add_country_name_to_title
Update worldwide taxon titles (external name) to include the name of the country they relate to
k exec deploy/content-tagger -- rake worldwide:add_country_name_to_title[log_file_path]
View source (lib/tasks/world_taxon_update.rake)
worldwide:remove_country_name_from_title
Revert worldwide taxon titles (external name) to original text (remove the name of the country they relate to)
k exec deploy/content-tagger -- rake worldwide:remove_country_name_from_title[log_file_path]
View source (lib/tasks/world_taxon_update.rake)
taxonomy:bulk_tag_document_type
Bulk tag all content items with a given document type to one taxon.
k exec deploy/content-tagger -- rake taxonomy:bulk_tag_document_type[document_type,taxon_content_id]
More about this task
A JSON representation of the output is sent to STDERR and can be redirected to a file if needed.
View source (lib/tasks/taxonomy/bulk_tag_document_type.rake)
taxonomy:clear_descriptions
Clears all descriptions containing ‘…’ or ‘tbc’.
k exec deploy/content-tagger -- rake taxonomy:clear_descriptions
View source (lib/tasks/taxonomy/clear_descriptions.rake)
taxonomy:clear_descriptions_for_branches
Clears description from taxons children recursively.
k exec deploy/content-tagger -- rake taxonomy:clear_descriptions_for_branches[base_path]
View source (lib/tasks/taxonomy/clear_descriptions.rake)
taxonomy:health_checks
Performs all taxonomy health checks and reports any problems.
k exec deploy/content-tagger -- rake taxonomy:health_checks
View source (lib/tasks/taxonomy/health_checks.rake)
taxonomy:tags_per_organisation
saves the number of tags to taxons per organisation in a set of CSV files.
k exec deploy/content-tagger -- rake taxonomy:tags_per_organisation[path]
View source (lib/tasks/taxonomy/tags_per_organisation.rake)
taxonomy:untag
Untag all content tagged to a given taxon. (options: content_id of the taxon, ‘untag’ to untag)
k exec deploy/content-tagger -- rake taxonomy:untag[content_id,untag]
View source (lib/tasks/taxonomy/untag.rake)
taxonomy:validate_taxons_base_paths
Validates taxons against the URL structure (/highest-level-taxon-name/taxon-name)
k exec deploy/content-tagger -- rake taxonomy:validate_taxons_base_paths[and_fix]
View source (lib/tasks/taxonomy/validate_taxons_base_paths.rake)
travel_advice:tag_edition_to_organisation
Tag a travel advice edition to an organisation
k exec deploy/content-tagger -- rake travel_advice:tag_edition_to_organisation[content_id,org_id]
View source (lib/tasks/travel_advice/tag_to_organisation.rake)
travel_advice:tag_editions_to_organisation
Tag all published travel advice editions to an organisation
k exec deploy/content-tagger -- rake travel_advice:tag_editions_to_organisation[org_id]
View source (lib/tasks/travel_advice/tag_to_organisation.rake)