0
|
1 |
{% extends "cone_base.html" %}
|
|
2 |
{% block title %}Compare data{% endblock %}
|
|
3 |
{% block content %}
|
|
4 |
|
|
5 |
<h1>CRML Data Compatibility Report</h1><br>
|
|
6 |
|
3
|
7 |
<table class="report" id="cdc_report">
|
0
|
8 |
<tr>
|
|
9 |
<td>Source:</td>
|
|
10 |
<td>{{ data.sourcedata.name }}</td>
|
|
11 |
</tr>
|
|
12 |
<tr>
|
|
13 |
<td>Target:</td>
|
|
14 |
<td>{{ data.targetdata.name }}</td>
|
|
15 |
</tr>
|
|
16 |
</table>
|
3
|
17 |
<script language="javascript" type="text/javascript">
|
|
18 |
//<![CDATA[
|
|
19 |
setFilterGrid("cdc_report");
|
|
20 |
//]]>
|
|
21 |
</script>
|
|
22 |
|
0
|
23 |
|
|
24 |
<br/>
|
|
25 |
|
|
26 |
<h2>Modified keys/files:</h2>
|
|
27 |
|
3
|
28 |
<table class="report" id="mk_report">
|
0
|
29 |
<tr>
|
|
30 |
<th>File</th>
|
|
31 |
<th>Repository UID</th>
|
|
32 |
<th>Repository name</th>
|
|
33 |
<th>Key UID</th>
|
|
34 |
<th>Key name</th>
|
|
35 |
<th>Changed value</th>
|
|
36 |
<th>Old value</th>
|
|
37 |
<th>New value</th>
|
|
38 |
</tr>
|
|
39 |
|
|
40 |
{% for row in data.impl_data.flat.modified|sort -%}
|
|
41 |
{#- Only report CRML changes (but ignore changes to key names, they don't matter for DC) -#}
|
|
42 |
{%- if row.impl_type == 'crml' and row.value_id != 'name' -%}
|
|
43 |
{# Ignore changes to read-only keys. However, if a key's read-only attribute is changed, that is reported. -#}
|
|
44 |
{%- if 'target_key' not in row.data or row.data.target_key.read_only == false or row.data.source_key.read_only != row.data.target_key.read_only -%}
|
|
45 |
|
|
46 |
{%- if 'target_key' in row.data -%}
|
|
47 |
{% set key_name = row.data.target_key.name or row.data.source_key.name -%}
|
|
48 |
{% else -%}
|
|
49 |
{% set key_name = '' -%}
|
|
50 |
{% endif -%}
|
|
51 |
{%- set repo_name = row.data.target_repo.uid_name or row.data.source_repo.uid_name -%}
|
|
52 |
{%- if repo_name == none -%}{%- set repo_name = '' -%}{%- endif -%}
|
|
53 |
|
|
54 |
<tr>
|
|
55 |
<td>{{ row.file }}</td>
|
|
56 |
<td>{{ row.id }}</td>
|
|
57 |
<td>{{ repo_name }}</td>
|
|
58 |
<td>{{ row.sub_id }}</td>
|
|
59 |
<td>{{ key_name }}</td>
|
|
60 |
<td>{{ row.value_id }}</td>
|
|
61 |
<td>{{ row.source_value }}</td>
|
|
62 |
<td>{{ row.target_value }}</td>
|
|
63 |
</tr>
|
|
64 |
{% endif -%}
|
|
65 |
|
|
66 |
{% endif -%}
|
|
67 |
{% endfor %}
|
|
68 |
</table>
|
3
|
69 |
<script language="javascript" type="text/javascript">
|
|
70 |
//<![CDATA[
|
|
71 |
setFilterGrid("mk_report");
|
|
72 |
//]]>
|
|
73 |
</script>
|
|
74 |
|
0
|
75 |
|
|
76 |
|
|
77 |
<h2>Added keys/files:</h2>
|
|
78 |
|
3
|
79 |
<table class="report" id="ak_report">
|
0
|
80 |
<tr>
|
|
81 |
<th>File</th>
|
|
82 |
<th>Repository UID</th>
|
|
83 |
<th>Repository name</th>
|
|
84 |
<th>Key UID</th>
|
|
85 |
<th>Key name</th>
|
|
86 |
</tr>
|
|
87 |
|
|
88 |
{% for row in data.impl_data.flat.only_in_target|sort -%}
|
|
89 |
{%- if row.impl_type == 'crml' and ('key' not in row.data or row.data.key.read_only == false) -%}
|
|
90 |
{%- if row.data != none and 'key' in row.data -%}
|
|
91 |
{%- set key_name = row.data.key.name -%}
|
|
92 |
{%- else -%}
|
|
93 |
{%- set key_name = '' -%}
|
|
94 |
{%- endif -%}
|
|
95 |
{%- set repo_name = row.data.repo.uid_name or '' -%}
|
|
96 |
|
|
97 |
<tr>
|
|
98 |
<td>{{ row.file }}</td>
|
|
99 |
<td>{{ row.id or '' }}</td>
|
|
100 |
<td>{{ repo_name }}</td>
|
|
101 |
<td>{{ row.sub_id or '' }}</td>
|
|
102 |
<td>{{ key_name }}</td>
|
|
103 |
</tr>
|
|
104 |
{% endif -%}
|
|
105 |
{% endfor %}
|
|
106 |
</table>
|
3
|
107 |
<script language="javascript" type="text/javascript">
|
|
108 |
//<![CDATA[
|
|
109 |
setFilterGrid("ak_report");
|
|
110 |
//]]>
|
|
111 |
</script>
|
0
|
112 |
|
|
113 |
|
|
114 |
<h2>Removed keys/files:</h2>
|
|
115 |
|
3
|
116 |
<table class="report" id="rk_report">
|
0
|
117 |
<tr>
|
|
118 |
<th>File</th>
|
|
119 |
<th>Repository UID</th>
|
|
120 |
<th>Repository name</th>
|
|
121 |
<th>Key UID</th>
|
|
122 |
<th>Key name</th>
|
|
123 |
</tr>
|
|
124 |
|
|
125 |
{% for row in data.impl_data.flat.only_in_source|sort -%}
|
|
126 |
{%- if row.impl_type == 'crml' and ('key' not in row.data or row.data.key.read_only == false) -%}
|
|
127 |
{%- if row.data != none and 'key' in row.data -%}
|
|
128 |
{%- set key_name = row.data.key.name -%}
|
|
129 |
{%- else -%}
|
|
130 |
{%- set key_name = '' -%}
|
|
131 |
{%- endif -%}
|
|
132 |
{%- set repo_name = row.data.repo.uid_name or '' -%}
|
|
133 |
|
|
134 |
<tr>
|
|
135 |
<td>{{ row.file }}</td>
|
|
136 |
<td>{{ row.id or '' }}</td>
|
|
137 |
<td>{{ repo_name }}</td>
|
|
138 |
<td>{{ row.sub_id or '' }}</td>
|
|
139 |
<td>{{ key_name }}</td>
|
|
140 |
</tr>
|
|
141 |
{% endif -%}
|
|
142 |
{% endfor %}
|
|
143 |
</table>
|
3
|
144 |
<script language="javascript" type="text/javascript">
|
|
145 |
//<![CDATA[
|
|
146 |
setFilterGrid("rk_report");
|
|
147 |
//]]>
|
|
148 |
</script>
|
0
|
149 |
|
|
150 |
|
|
151 |
<h2>Duplicate repositories:</h2>
|
|
152 |
|
3
|
153 |
<table class="report" id="dr_report">
|
0
|
154 |
<tr>
|
|
155 |
<th>Repository UID</th>
|
|
156 |
<th>Files in source</th>
|
|
157 |
<th>Files in target</th>
|
|
158 |
</tr>
|
|
159 |
|
|
160 |
{% for row in data.impl_data.flat.duplicate|sort -%}
|
|
161 |
{%- if row.impl_type == 'crml' -%}
|
|
162 |
<tr>
|
|
163 |
<td>{{ row.id }}</td>
|
|
164 |
<td>
|
|
165 |
{% for file in row.files_in_source %}{{ file }}<br/>{% endfor %}
|
|
166 |
</td>
|
|
167 |
<td>
|
|
168 |
{% for file in row.files_in_target %}{{ file }}<br/>{% endfor %}
|
|
169 |
</td>
|
|
170 |
</tr>
|
|
171 |
{% endif -%}
|
|
172 |
{% endfor %}
|
|
173 |
</table>
|
3
|
174 |
<script language="javascript" type="text/javascript">
|
|
175 |
//<![CDATA[
|
|
176 |
setFilterGrid("dr_report");
|
|
177 |
//]]>
|
|
178 |
</script>
|
|
179 |
|
0
|
180 |
{% endblock %}
|