MishkaCmsMigration.Targets.Helpers.ContentChecks (Mishka CMS Migration v0.0.1)

Copy Markdown View Source

What a post or a page may wait on before it is written, for the targets that write it (MishkaCmsMigration.Targets.CmsPage, MishkaCmsMigration.Targets.BlogPost), asked in this order, the first that waits answering: its language, which the site may not publish in or the source may not say (MishkaCmsMigration.Targets.Helpers.Editions), the widgets of a page builder the CMS has no equivalent for (MishkaCmsMigration.Targets.Helpers.Widgets), its scripts and inline event handlers (MishkaCmsMigration.Targets.Helpers.Scripts), and the video players the site does not allow yet (MishkaCmsMigration.Targets.Helpers.Frames). An admin decides each in turn.

Summary

Functions

What a target's prepare/3 asks before the write: :ok, or what the first check that waits answers.

What a target's waiting/2 answers in a dry run: the first check that waits, or nil.

Functions

call(item, context)

@spec call(MishkaCmsMigration.Source.Item.t(), MishkaCmsMigration.Target.context()) ::
  :ok | {:error, term()} | {:skipped, String.t()} | {:undecided, String.t()}

What a target's prepare/3 asks before the write: :ok, or what the first check that waits answers.

waiting(item, context)

What a target's waiting/2 answers in a dry run: the first check that waits, or nil.