{% macro pagination_row(page, what) %}
{{ what }} from {{ (page.page - 1) * page.per_page + 1}} to {{ min(page.page * page.per_page, page.total) }} from total {{ page.total }}
Page:
{% endmacro %} {% macro package_table(packages, page, order, collection=None, untracked_toggle=True) %} {% if untracked_toggle %} {% set untracked = request.args.get('untracked') == '1' %}
{% for k, v in request.args.items() if k != 'untracked' %} {% endfor %}
{% endif %} {{ collection_chooser() }} {% if page %} {{ pagination_row(page, 'Packages') }} {% endif %} {{ ordered_column('name', 'Name', order) }} {% if not collection %} {% for coll in g.current_collections %} {{ ordered_column('state-' + coll.name, coll.display_name, order, css_class="collection-column") }} {% endfor %} {% else %} {{ ordered_column('state', 'State', order) }} {% endif %} {{ ordered_column('running', 'Running', order) }} {% if collection %} {{ ordered_column('task_id', 'Task ID', order) }} {{ ordered_column('started', 'Last build started', order) }} {{ ordered_column('current_priority', 'Current priority', order) }} {% endif %} {% for package in packages %} {% set last_build = package.last_build %} {% set args = page_args(clear=True, collection=collection.name if collection else None) %} {% if collection %} {% else %} {# unified view #} {% for pkg in package.packages %} {% endfor %} {% endif %} {% if collection %} {% if last_build %} {% else %} {% endif %} {% endif %} {% endfor %}
Package groups
{{ package.name }} {% if package.state_string %} {{ package.state_icon }} {% endif %} {% if pkg.tracked %} {{ pkg.state_icon }} {% endif %} {% if package.has_running_build %} running {% endif %} {{ last_build.task_id }} {{ last_build.started | date }} {% if package.current_priority is not none %} {{ package.current_priority | int }} {% endif %} {% for group in package.visible_groups %} {{ group }} {% endfor %}
{% if page %} {{ pagination_row(page, 'Packages') }} {% endif %} {% endmacro %} {% macro depchange_table(dependency_changes) %} {% if dependency_changes %} Dependency changes since last build {{ dependency_changes[0] | format_depchange | columnize(css_class="mono") }} {% for change in dependency_changes[1:] %} {{ change | format_depchange | columnize(css_class="mono") }} {% endfor %} {% endif %} {% endmacro %} {% macro ordered_column(name, title, current_order, css_class=None) %} {% if name in current_order[:1] %} {{ title }} Descending sort {% else %} {{ title }} {% if '-' + name in current_order[:1] %} Ascending sort {% endif %} {% endif %} {% endmacro %} {% macro collection_chooser(allow_all=True) %}
{% endmacro %} {% macro user_rebuilds_description() %}
User rebuilds make it possible to test package updates before they land in the distribution. The input is a copr project that contains packages which the distribution should be tested against. Koschei examines repo from given copr, resolves dependencies of the whole distribution with the repo added and selects few packages which are most likely to be affected to be rebuilt. After the resolution is done, you can make changes to the rebuild queue (add/remove packages). The rebuilds start automatically and are done in koschei managed coprs (i.e. not the one you supplied).
{% endmacro %}