{% extends "base.html" %} {% block content %}

Dataset {{ record.dataset_name }} {{ record.dataset_version }}

Back to versions

Contract: {% if record.contract_id %} {{ record.contract_id }} {% if record.contract_version %} {{ record.contract_version }} {% else %} No version {% endif %} {% else %} No contract recorded for this run. {% endif %}

{% if record.contract_id and record.draft_contract_version %}

Draft Contract: {{ record.draft_contract_version }}

{% endif %} {% if data_products %}

Data product associations

{% for entry in data_products %} {% endfor %}
Data product Port Role Status Version
{% if entry.product_id %} {{ entry.product_id }} {% else %} Unknown {% endif %} {% if entry.port_name %} {{ entry.port_name }} {% else %} n/a {% endif %} {% if entry.role %} {{ entry.role }} {% else %} {% endif %} {{ entry.status or 'unknown' }} {{ entry.dataset_version or '—' }}
{% endif %} {% set output_details = record.dq_details.get('output', {}) %}

Status: {{ record.status }} | Run type: {{ record.run_type }}

{% if output_details.get('violation_strategy') %}

Violation strategy: {{ output_details.get('violation_strategy') }}

{% endif %} {% set warnings = output_details.get('warnings', []) %} {% if warnings %}
Warnings
{% endif %} {% set metrics_summary = metrics_summary | default({}) %} {% set latest_metrics = metrics_summary.get('latest') %} {% set previous_metrics = metrics_summary.get('previous', []) %} {% set chronological_history = metrics_summary.get('chronological_history', []) %} {% set numeric_metric_keys = metrics_summary.get('numeric_metric_keys', []) %} {% if metrics_error %}
Metrics unavailable.
{{ metrics_error }}
{% endif %} {% if numeric_metric_keys and chronological_history %} {% endif %} {% if latest_metrics %}

Metrics

{{ latest_metrics.recorded_label or latest_metrics.recorded_at or 'Latest snapshot' }} {% if latest_metrics.dataset_version %} Dataset {{ latest_metrics.dataset_version }} {% endif %}
{% if latest_metrics.contract_id %}
Contract {{ latest_metrics.contract_id }}{% if latest_metrics.contract_version %}:{{ latest_metrics.contract_version }}{% endif %}
{% endif %}
{% for metric in latest_metrics.metrics %} {% endfor %}
MetricValue
{{ metric.key }} {{ metric.value }}
{% elif not metrics_error %}

No metrics recorded for this dataset version.

{% endif %} {% if previous_metrics %}
Earlier metric snapshots
{% for snapshot in previous_metrics %}
{{ snapshot.recorded_label or snapshot.recorded_at or 'Snapshot' }} {% if snapshot.dataset_version %} Dataset {{ snapshot.dataset_version }} {% endif %}
{% if snapshot.contract_id %}
Contract {{ snapshot.contract_id }}{% if snapshot.contract_version %}:{{ snapshot.contract_version }}{% endif %}
{% endif %}
{% for metric in snapshot.metrics %} {% endfor %}
MetricValue
{{ metric.key }} {{ metric.value }}
{% endfor %}
{% endif %} {% set aux = output_details.get('auxiliary_datasets', []) %} {% if aux %}

Auxiliary datasets

{% for entry in aux %} {% endfor %}
KindDatasetPath
{{ entry.kind }} {{ entry.dataset }} {% if entry.path %}{{ entry.path }}{% else %}n/a{% endif %}
{% endif %} {% set fails = output_details.get('failed_expectations', {}) %}

Data Quality

{% if fails %} {% for key, info in fails.items() %} {% endfor %}
NamePredicateCount
{{ key }}{{ info.expression }}{{ info.count }}
{% else %}

No data quality failures.

{% endif %} {% set schema_errors = output_details.get('errors', []) %} {% if schema_errors %}
Schema errors
{% endif %} {% set pipeline_activity = output_details.get('pipeline_activity', []) %} {% if pipeline_activity %}

Pipeline activity

{% for entry in pipeline_activity %}
Dataset version: {{ entry.dataset_version or 'unknown' }} {% if entry.contract_id and entry.contract_version %} Contract {{ entry.contract_id }}:{{ entry.contract_version }} {% endif %}
{% set events = entry.events or [] %} {% if events %}
{% for event in events %} {% endfor %}
Recorded at Operation DQ Status Context
{{ event.recorded_at or 'n/a' }} {{ event.operation or 'unknown' }} {% if event.dq_status %} {{ event.dq_status }} {% else %} n/a {% endif %}
{{ event.pipeline_context or {} | tojson(indent=2) }}
{% else %}

No activity recorded.

{% endif %}
{% endfor %} {% endif %}

Details

{{ output_details | tojson(indent=2) }}
{% if data_preview %}

Data

{{ data_preview }}
{% endif %} {% endblock %} {% block page_scripts %} {{ super() }} {% if numeric_metric_keys and chronological_history %} {% endif %} {% endblock %}