{% extends "base.html" %} {% block title %}{{ _('Automatic Schema Updates') }} — {{ service_name }}{% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block content %}

{{ _('Automatic Schema Updates') }}

{% if updatable_object_checks and updatable_object_checks[0].status == UpdatableObjectsCheckStatus.DONE and not updatable_object_checks[0].automatic_schema_update %} {% endif %}

{{ _('Administrators can use automatic schema updates to update the schemas of all objects which do not need any changes to their data to match the current schema of their action.') }}

{% if checking_in_progress %}

{{ _('%(service_name)s is currently checking for objects that can have their schemas updated automatically. This may take a few minutes.', service_name=service_name) }}

{% else %}

{{ _('To be able to perform automatic schema updates, %(service_name)s can check for objects that can have their schemas updated automatically. This may take a few minutes.', service_name=service_name) }}

{% if check_for_updatable_objects_form %}
{% endif %} {% endif %} {% if updatable_object_checks %} {% for updatable_object_check in updatable_object_checks %} {% if loop.first and updatable_object_check.status == UpdatableObjectsCheckStatus.DONE and updatable_object_check.automatic_schema_update is none and (updatable_object_check.result.automatically_updatable_objects or updatable_object_check.result.manually_updatable_objects) %} {% elif updatable_object_check.automatic_schema_update is none %} {% else %} {% endif %} {% endfor %}
{{ _('Updatable Object Check') }} {{ _('Automatic Schema Update') }}
{{ _('User') }} {{ _('Datetime') }} {{ _('Status') }} {{ _('Updatable Objects') }} {{ _('User') }} {{ _('Datetime') }} {{ _('Status') }} {{ _('Updated Objects') }}
{{ _('Automatic') }} {{ _('Manual') }} {{ _('Success') }} {{ _('Failure') }}
{{ user_reference(updatable_object_check.user_id) }} {{ updatable_object_check.utc_datetime | babel_format_datetime }}
= 0 %} data-toggle="tooltip" data-placement="top" title="{{ updatable_object_check.result.previous_object_id }} / {{ max_object_id }}" {% endif %} >
{% if updatable_object_check.status == UpdatableObjectsCheckStatus.DONE %} {{ _('Done') }} {% elif updatable_object_check.result is none or updatable_object_check.result.previous_object_id < 0 %} {{ _('Starting') }} {% endif %}
{% if updatable_object_check.result and 'automatically_updatable_objects' in updatable_object_check.result %} {{ updatable_object_check.result.automatically_updatable_objects | length }} {% else %} — {% endif %} {% if updatable_object_check.result and 'manually_updatable_objects' in updatable_object_check.result %} {{ updatable_object_check.result.manually_updatable_objects | length }} {% else %} — {% endif %} {{ user_reference(updatable_object_check.automatic_schema_update.user_id) }} {{ updatable_object_check.automatic_schema_update.utc_datetime | babel_format_datetime }}
{% if updatable_object_check.automatic_schema_update.status == AutomaticSchemaUpdateStatus.DONE %}
{{ _('Done') }}
{% elif updatable_object_check.automatic_schema_update.result is none or (updatable_object_check.automatic_schema_update.result.object_ids_failure | length == 0 and updatable_object_check.automatic_schema_update.result.object_ids_success | length == 0) %}
{{ _('Starting') }}
{% else %}
{% endif %}
{% if updatable_object_check.automatic_schema_update and updatable_object_check.automatic_schema_update.status == AutomaticSchemaUpdateStatus.DONE %} {% if updatable_object_check.automatic_schema_update.result.object_ids_success %} {{ updatable_object_check.automatic_schema_update.result.object_ids_success | length }} {% else %} 0 {% endif %} {% else %} — {% endif %} {% if updatable_object_check.automatic_schema_update and updatable_object_check.automatic_schema_update.status == AutomaticSchemaUpdateStatus.DONE %} {% if updatable_object_check.automatic_schema_update.result.object_ids_failure %} {{ updatable_object_check.automatic_schema_update.result.object_ids_failure | length }} {% else %} 0 {% endif %} {% else %} — {% endif %}
{% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block template_values %} {% do set_template_value("automatic_schema_updates.current_status", current_status) %} {{ super() }} {% endblock %}