Explorer

definy.snapshot-cache-entry-summary

description
(en) The light summary of a snapshot cache entry, keyed by definy.snapshot-summary-key: the same snapshot with the parts of every module removed
type
Fn(entry: @definy.snapshot-cache-entry) -> @definy.snapshot-cache-entry
expression
fn(entry$0) =>
  {
    event_hash: @definy.snapshot-summary-key(event_hash: $0.event_hash),
    commit: match $0.commit {
      #none(_) =>
        #none,
      #some(commit$1) =>
        #some({
          account_id: $1.account_id,
          project_name: $1.project_name,
          branch: $1.branch,
          time_ms: $1.time_ms,
          message: $1.message,
          parent_commit_hash: $1.parent_commit_hash,
          merged_commit_hash: $1.merged_commit_hash,
          modules: @core.list-map(
            T: @definy.stored-snapshot-module,
            U: @definy.stored-snapshot-module,
            f: fn(item$2) =>
              {name: $2.name, id: $2.id, description: $2.description, visibility: $2.visibility, parts: []},
            xs: $1.modules
          )
        })
    }
  }
visibility
public
definy.snapshot-cache-entry-summary (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: GMUx5t56jbKHPfl0z9-TQlgQ3NwiU1AykGKCm62ePSw
content hash: EgHtOjV-ub8Upzb_Qm2_md-j901Yq1IKzodUqGIwm_g