Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
5f49751a
Commit
5f49751a
authored
Jul 23, 2019
by
Pierre Dittgen
Browse files
Remove display body errors flag
parent
d2b1a80c
Changes
3
Hide whitespace changes
Inline
Side-by-side
validata_ui/templates/validation_macros.html
View file @
5f49751a
...
...
@@ -124,7 +124,6 @@
<p>
Aucune erreur de structure.
</p>
{% endif %}
{% if report.table.do_display_body_errors %}
{% set value_errors = report.table['error-stats']['value-errors'] %}
{% if value_errors['count'] > 0 %}
<p>
Erreur de contenu ({{ value_errors['count'] }} sur {{ value_errors['rows-count'] }} ligne{% if value_errors['rows-count'] > 1 %}s{% endif %}) :
</p>
...
...
@@ -136,6 +135,5 @@
{% else %}
<p>
Aucune erreur de contenu
</p>
{% endif %}
{% endif %}
{% endmacro %}
validata_ui/templates/validation_report.html
View file @
5f49751a
...
...
@@ -139,18 +139,15 @@
{% endif %}
</div>
{% if report.table.do_display_body_errors %} {# We do display body errors! #}
<div
class=
"mx-4"
>
{% if report.table.errors.body %}
<h3
class=
"my-4"
>
Erreurs de contenu
</h3>
{{ macros.body_errors(report, source_data, print_mode) }}
{% else %}
{{ macros.preview(source_data) }}
{% endif %}
</div>
{% else %} {# do not display errors #}
<p>
Veuillez corriger ces erreurs pour visualiser les éventuelles erreurs de contenu.
</p>
{% endif %}
{# Display body errors #}
<div
class=
"mx-4"
>
{% if report.table.errors.body %}
<h3
class=
"my-4"
>
Erreurs de contenu
</h3>
{{ macros.body_errors(report, source_data, print_mode) }}
{% else %}
{{ macros.preview(source_data) }}
{% endif %}
</div>
{% endblock %}
{% block page_scripts %}
...
...
validata_ui/views.py
View file @
5f49751a
...
...
@@ -244,9 +244,6 @@ def create_validata_ui_report(validata_core_report, schema_dict):
else
:
report
[
'table'
][
'errors'
][
'body'
].
append
(
err
)
# Always displays body errors
report
[
'table'
][
'do_display_body_errors'
]
=
True
# Checks if a column comparison is needed
report
[
'table'
][
'column_comparison_needed'
]
=
False
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment