Skip to main content

publisher: Rake tasks

These rake tasks come from the desc descriptions in publisher’s lib/tasks folder. To change what’s shown here, change the description in the code.

permissions:add_organisation_access

Add an organisation to a document’s access permissions list

k exec deploy/publisher -- rake permissions:add_organisation_access[document_content_id,org_content_id,log_file]

View source (lib/tasks/access_and_permissions.rake)

permissions:bulk_process_access_flags

Bulk process access permissions from CSV of URLs

k exec deploy/publisher -- rake permissions:bulk_process_access_flags[csv_filename,organisation_id]

View source (lib/tasks/access_and_permissions.rake)

permissions:remove_organisation_access

Remove an organisation from a document’s access permissions list

k exec deploy/publisher -- rake permissions:remove_organisation_access[document_content_id,org_content_id]

View source (lib/tasks/access_and_permissions.rake)

permissions:remove_all_access_flags

Remove all access permissions from a document

k exec deploy/publisher -- rake permissions:remove_all_access_flags[document_content_id]

View source (lib/tasks/access_and_permissions.rake)

Create popular links and links to homepage

k exec deploy/publisher -- rake create_popular_links_and_link_to_homepage

View source (lib/tasks/create_popular_links_and_link_to_homepage.rake)

Revoke and renew draft preview links for given edition ids

k exec deploy/publisher -- rake fact_check:revoke_and_renew_draft_links[edition_ids]

View source (lib/tasks/fact_check.rake)

reports:generate

Generate long-running CSV reports for use by users.

k exec deploy/publisher -- rake reports:generate

View source (lib/tasks/generate_reports.rake)

local_transactions:fetch_and_clean

Imports services and removes any old ones

k exec deploy/publisher -- rake local_transactions:fetch_and_clean

View source (lib/tasks/local_transactions.rake)

local_transactions:update_services

Import services from the service list CSV

k exec deploy/publisher -- rake local_transactions:update_services

View source (lib/tasks/local_transactions.rake)

local_transactions:remove_old_services

Removes services that do not appear in the service list CSV

k exec deploy/publisher -- rake local_transactions:remove_old_services

View source (lib/tasks/local_transactions.rake)

orphaned_editions:report

Report on editions having an artefact with the state ‘archived’

k exec deploy/publisher -- rake orphaned_editions:report

View source (lib/tasks/orphaned_editions.rake)

orphaned_editions:destroy

Remove editions having an artefact with the state ‘archived’

k exec deploy/publisher -- rake orphaned_editions:destroy

View source (lib/tasks/orphaned_editions.rake)

editions:publish_missed_scheduled_editions

Publish editions missed in scheduled publishing

k exec deploy/publisher -- rake editions:publish_missed_scheduled_editions

View source (lib/tasks/publish_missed_scheduled_editions.rake)

publishing_api:republish_content

republish content

k exec deploy/publisher -- rake publishing_api:republish_content

View source (lib/tasks/publishing_api.rake)

publishing_api:republish_by_format

republish by format

k exec deploy/publisher -- rake publishing_api:republish_by_format[format]

View source (lib/tasks/publishing_api.rake)

publishing_api:republish_drafts_by_format

republish drafts by format

k exec deploy/publisher -- rake publishing_api:republish_drafts_by_format[format]

View source (lib/tasks/publishing_api.rake)

publishing_api:republish_edition

Republish an edition

k exec deploy/publisher -- rake publishing_api:republish_edition[slug]

View source (lib/tasks/publishing_api.rake)

editions:requeue_scheduled_for_publishing

Re-queue editions scheduled for publishing

k exec deploy/publisher -- rake editions:requeue_scheduled_for_publishing

View source (lib/tasks/requeue_editions_scheduled_for_publishing.rake)