{% include '_header.html' %} {% macro command_box(id, text) -%}
{{ text }}
{%- endmacro %} {% macro yes(flag) -%}{{ "yes" if flag else "" }}{%- endmacro %}
{% if not page.available %}

← Syncs

Org sync run

This database is behind: it doesn't have the org sync history this page shows. Back it up, then run:

{{ command_box("upgrade-command", "kospex upgrade-db -apply") }}
{% else %} {% set run = page.run %} {% set c = page.counts %}

← Syncs

{% if crumb %} {# The partial reads git_server / org / org_key / page, and this template's own `page` is the view's dict, so set them here. #} {% with git_server=crumb.git_server, org=crumb.org, org_key=crumb.org_key, page="Org sync run" %} {% include '_breadcrumb.html' %} {% endwith %} {% endif %}

{{ org_title or run.org_key }}

Org sync run {{ run.run_id }}. {#- Only when there's a command here to copy: a finished run with every visibility recorded has none. #} {% if page.continue_command or page.visibility_note %}
kweb doesn't run commands. To sync repos, refresh the inventory or update repo details, copy a command from this page and run it in a terminal.{% endif %}

{% if page.visibility_banner %}

{{ page.visibility_banner }}

{% endif %} {% set note = page.visibility_note %} {% if note %}

Visibility not recorded for {{ "{:,}".format(note.unknown) }} repo{{ "s" if note.unknown != 1 }}. {% if note.finished %}This run is finished, so it can't be updated. To record visibility in a new run, without cloning, run the following:{% else %}To update, without cloning, run the following:{% endif %}

{{ command_box("relist-command", note.command) }}
{% endif %}
Owner
{{ page.owner }} ({{ run.owner_type or "org" }})
State
{{ "finished" if run.finished_at else "in progress" }}
Listed
{{ run.listed }} repos, {{ page.listed_at }}
Started
{{ run.started_at }}
Finished
{{ run.finished_at or "—" }}

{{ c.synced }} synced · {{ c.pending + c.in_progress }} pending · {{ c.skipped }} skipped · {{ c.failed }} failed · {{ c.gone }} gone

{% if page.continue_command %}

Continue:

{{ command_box("continue-command", page.continue_command) }} {% endif %}

Repos in this run

{# The filter searches the status column for one of these fixed names, chosen by the button's position: nothing read from the page. #} {% set filter_statuses = [""] %}
{% for status, n in page.filters %} {% set _ = filter_statuses.append(status) %} {% endfor %}
{% for h in ["Repo", "Status", "Detail", "Fork parent", "Archived", "Visibility", "Pushed", "In kospex"] %} {% endfor %} {% for item in page.rows %} {% endfor %}
{{ h }}
{{ item._repo_id }}{% if item.visibility == "private" %} private{% elif item.visibility == "internal" %} internal{% elif item.visibility and item.visibility != "public" %} {{ item.visibility }}{% endif %} {{ item.status }}{% if item.gone %}
not in current listing
{% endif %}
{{ item.detail or "" }} {{ item.fork_parent or "" }}{% if item.fork_source_shown %}
source: {{ item.fork_source_shown }}
{% endif %}
{{ yes(item.archived) }} {{ item.visibility or "not recorded" }} {{ item.pushed_date }} {% if item.in_kospex %}yes{% else %}no{% endif %}

In kospex, not in this listing

Repos kospex has under {{ org_title or run.org_key }} that this run's listing doesn't include: deleted, renamed, transferred, or not visible to the token that listed them.

{% if page.drift %}
{% for repo_id in page.drift %} {% endfor %}
Repo ({{ page.drift | length }})
{{ repo_id }}
{% else %}

None: every repo kospex has under this org is in the listing.

{% endif %} {% endif %}
{% include '_footer_scripts.html' %} {% include '_datatable_scripts.html' %}