{% extends "cone_base.html" %} {% block title %}Compare API{% endblock %} {% block content %}

Configuration API compare


{% set columns = { 'type':'Type', 'options':'Option', } %} {#- ----------------------------------------- -#} {#- Report features that are only on one side -#} {#- ----------------------------------------- -#} {%- for fqr in data.sourcedata.features -%} {%- if fqr not in data.targetdata.features -%} {% endif -%} {%- endfor -%} {#- --------------------------------#} {#- Report differences in features -#} {#- --------------------------------#} {%- for fqr in data.sourcedata.features -%} {%- if fqr in data.targetdata.features and not data.sourcedata.features[fqr]._compare(data.targetdata.features[fqr], columns.keys()) -%} {%- if data.sourcedata.features[fqr]['type'] == 'int' and data.targetdata.features[fqr]['type'] == None %} {% else %} {%- if data.sourcedata.features[fqr]['type'] != data.targetdata.features[fqr]['type'] %} {% elif data.sourcedata.features[fqr]['options'] != data.targetdata.features[fqr]['options'] %} {% else %} {%- endif -%} {%- endif -%} {% endif -%} {%- endfor -%}
Reference Source confml Target confml Source element Problem Target element
Missing {{fqr}} {{ data.sourcedata.features[fqr].get_configuration_path() }}     Missing feature  
Difference with {{fqr}} {{ data.sourcedata.features[fqr].get_configuration_path() }} {{ data.targetdata.features[fqr].get_configuration_path() }}{{data.sourcedata.features[fqr]['type']}} Type difference {{data.targetdata.features[fqr]['type']}}{% for option in data.sourcedata.features[fqr]['options'].values() -%} Option {%- if option.map %} map=option.map{% else %} name={{ option.name }}, value={{ option.value}}{% endif %}
{%- endfor %}
Options difference {% for option in data.targetdata.features[fqr]['options'].values() -%} Option {%- if option.map %} map=option.map{% else %} name={{ option.name }}, value={{ option.value}}{% endif %}
{%- endfor %}
 
{% endblock %}