{% extends "admin/change_form.html" %} {% load i18n %} {% block after_field_sets %} {{ block.super }} {% if original.events %}

Events list

{% endif %} {% if original.properties %}

Properties list

{% endif %} {% comment %} Stats are calculated from this page (works for any status). These buttons use formaction= to post the surrounding admin
to the stats views. Guarded on `original` — the stats URLs only exist for a saved object, and on the add view an empty formaction would post back and create a record. {% endcomment %} {% if original %}

ClickHouse stats

{% if original.stats_calculated_at %}
Matching events{{ original.count|default:"0" }}
Min timestamp{{ original.min_timestamp|default:"—" }}
Max timestamp{{ original.max_timestamp|default:"—" }}
Part count{{ original.part_count|default:"0" }}
Parts size{{ original.parts_size|default:"0" }} bytes
Total rows in affected parts{{ original.parts_row_count|default:"0" }}
Calculated at{{ original.stats_calculated_at }}
{% else %}

No stats have been fetched yet.

{% endif %}
{% if is_clickhouse_team %} {% endif %}
{% endif %} {% if preview_stats %}

Preview (not saved)

{% if preview_stats.min_timestamp is not None %} {% endif %}
Matching events{{ preview_stats.count|default:"0" }}
Min timestamp{{ preview_stats.min_timestamp|default:"—" }}
Max timestamp{{ preview_stats.max_timestamp|default:"—" }}
Part count{{ preview_stats.part_count|default:"0" }}
Parts size{{ preview_stats.parts_size|default:"0" }} bytes
Total rows in affected parts{{ preview_stats.parts_row_count|default:"0" }}
Previewed at{{ preview_stats.calculated_at }}
{% endif %} {% if is_draft %}
This request is a draft. When ready, submit it for review.
Review & Submit
{% endif %} {# NOTE: These submit buttons use formaction= to bypass the surrounding admin , since browsers collapse nested elements. #} {% if can_approve %}
This request is pending and awaiting approval.
Review & Approve
{% endif %} {% if can_revert_to_draft %}
This request is {{ original.get_status_display|lower }}. Moving it back to draft will clear the approval.
{% endif %} {% if can_retry %}
This request failed after {{ original.attempt_count }} attempt{{ original.attempt_count|pluralize }}. Retry to re-queue it for execution — the original approval is preserved.
{% endif %} {% if can_verify %}
This request is {{ original.get_status_display|lower }}. {% if original.request_type == "person_removal" %} Automated verification isn't available for person removal requests — verifying will report that a manual check is required. {% else %} Verify to re-check ClickHouse now — if no matching rows remain, it will be marked completed{% if original.status == "failed" %} (use this when the job errored after the data was already deleted){% endif %}. {% endif %}
{% endif %} {% endblock %}