Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
validata-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Validata
validata-ui
Commits
5f49751a
Commit
5f49751a
authored
Jul 23, 2019
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove display body errors flag
parent
d2b1a80c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
17 deletions
+9
-17
validata_ui/templates/validation_macros.html
validata_ui/templates/validation_macros.html
+0
-2
validata_ui/templates/validation_report.html
validata_ui/templates/validation_report.html
+9
-12
validata_ui/views.py
validata_ui/views.py
+0
-3
No files found.
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"
>
{
# 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 %}
</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
Markdown
is supported
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