Skip to content
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

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

nitin-ebi
Copy link
Collaborator

@nitin-ebi nitin-ebi commented Jun 13, 2024

image

@nitin-ebi nitin-ebi self-assigned this Jun 13, 2024
@@ -1,6 +1,10 @@

{% macro sample_name_check_report(validation_results) -%}
{% set results = validation_results.get('sample_check', {}) %}
{% macro format_error(error) %}
{{ error | replace(' ', '•') }}
Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Collaborator Author

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.

Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tcezard

@nitin-ebi nitin-ebi merged commit 690610e into EBIvariation:main Jun 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants