MishkaCmsMigration.Resources.Calculations.RecordPaths (Mishka CMS Migration v0.0.1)

Copy Markdown View Source

Where the CMS record of each item is, for the item's :record_paths calculation: the answer of MishkaCmsMigration.MigrationRun.record_paths/2 for its kind and the record it was written to, with the record's name (its name, or its title), or nil for an item with no record, a kind with no pages, and a record that is gone or that the reader may not read.

field names the attribute that holds the record's id: :target_id (the default), the record an import wrote, or :mapped_id, the record an admin mapped the item to (:mapped_paths).

The records are read as the reader, under the site of each item, through the resources of the kind's target (MishkaCmsMigration.Target): one read for each kind, resource and site of the items asked for, so a page of a table costs a few reads whatever its size.

Summary

Functions

describe(opts)

Callback implementation for Ash.Resource.Calculation.describe/1.

has_calculate?()

has_expression?()

Callback implementation for Ash.Resource.Calculation.has_expression?/0.

init(opts)

Callback implementation for Ash.Resource.Calculation.init/1.

strict_loads?()

Callback implementation for Ash.Resource.Calculation.strict_loads?/0.