Skip to main content

Module changesets

Module changesets 

Source
Expand description

Changeset tools: listing, publishing, discarding and previewing staged changes.

StructsΒ§

DiscardChangeset
Handler of the discard_changeset tool.
GetPreviewLink
Handler of the get_preview_link tool.
ListChangesets
Handler of the list_changesets tool.
PreviewLink πŸ”’
The preview link of one page.
PublishChangeset
Handler of the publish_changeset tool.

ConstantsΒ§

RECENT_CLOSED_CHANGESETS πŸ”’
Published, discarded and expired changesets listed besides the open ones.

FunctionsΒ§

check_pages_ready πŸ”’
Refuses publishing while a page whose blocks the changeset changes has no page title block or still holds template placeholder text.
discard_rejected πŸ”’
discard_some πŸ”’
Drops only the listed entities, refusing if the rest would no longer publish.
explained πŸ”’
insert_links πŸ”’
Puts links into result: the one link as url when a single page was asked for, else previews.
live_page πŸ”’
The page as published, if the course has it.
not_open_result πŸ”’
The result for a changeset of course that is no longer open.
own_changeset πŸ”’
The course and the user’s own changeset in it, or not found.
summary_json πŸ”’