varfish-server
varfish-server copied to clipboard
frequency filter settings above 5% fail filter
Describe the bug The frequency filter setting for gnomad exomes/genomes, 1000 genomes and exac make the filter fail (or more precisely nothing happens when the user clicks the filter button) when the settings is above 0.05 (5%).
RCA
The JSON scheme only allows for a range of 0-0.05. This makes the submission fail. In production, the server returns a simple 500 error without stating any reason. The frontend simply does not do anything when the user hits the filter button.
Solution
The current state is obviously more than confusing for the user.
- The frontend apparently does not display errors that are caused by the JSON scheme validator and simply fails.
- Check if that is true for all JSON scheme validator errors or only this one
- Correct that the user gets a proper error message displayed
- Decide whether the input check should already happen during input.
- Why is there a maximum of 0.05? Could that be extended to accept values from 0-1 (basically the whole possible range)?