-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVA-3581 Add option to see all errors of all categories for a sample #41
Conversation
nitin-ebi
commented
Jun 13, 2024
•
edited
Loading
edited
@@ -1,6 +1,10 @@ | |||
|
|||
{% macro sample_name_check_report(validation_results) -%} | |||
{% set results = validation_results.get('sample_check', {}) %} | |||
{% macro format_error(error) %} | |||
{{ error | replace(' ', '•') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about other types of whitespace (tabs and maybe newlines)? I guess they're very unlikely particularly in spreadsheets, but may be possible in JSON.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kind of agree but I also think it might get complicated to display tab and newline as their specific character.
I would suggest that we think of a more generalised solution (unicode maybe) if that becomes a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with both.
Also as @apriltuesday said, since they are more likely to occur in json, I think they would be easier to spot as well.
The user will be able to glance at the json file and hopefully will be able to see tab or new line in the value as they will explicitly specified inside double quotes. ("\tValue1" or "\nValue2") which is not the case in a spreadsheet, especially with trailing whitespaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've updated the template so that the first sheet is selected when opening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tcezard
1ba1f37
to
e061c50
Compare