-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Data param allows selection of the same dataset twice #19803
Comments
I could produce a similar "mistake" with another tool (Falco). I believe the problem is the drop down menu UI as mentioned above. With Falco, if I change the This behavior was also observed with another tool during the workshop called plotCorrelation. If you click on an input multiple times, it will be added multiple times to the plot that is the result of this task. |
thanks @dadrasarmin that's a better example for reproducing! |
Of note, it is valid to add the same dataset multiple times in a multiple="true" input, say if you want to provide shared controls or plot something twice, that should continue to be possible. I struggled to reproduce your examples, for me the missing step is that once a dataset is selected, click outside of the select field, click into the select field again and type to engage the filtering. At that point I can click on the same dataset again. It won't be shown in the list of selected datasets which is definitely a bug, but it is in the tool state and the submitted payload contains the dataset twice (which I don't think is a bug). |
Do you have a specific example for this? If this is intended we need to think about a better way of communicating this in the UI. |
While technically true, I'm pretty sure this has not been the case before. Datasets disappeared from the select list when already added, which for the majority of tools is what you want and how we can prevent errors. If this is not a good suggestion maybe we should grey out the already selected files and sort them down in the list? Whatever we are doing, can we please start documentation for the select box and list our rationale for all the features and reasons? This will make it easier for future implementations, etc. |
Ok, I will try to explain this better :) Thanks to @dadrasarmin for finding another example. If it is a multi-select feature, then user should be able to select multple (also more than twice) times. But the UI allows only selection of any file maximally 2 times regardless of the number of times clicked. To me, it seems to be a UI bug than a multi-select feature. Here is concat tool run which does not have an input |
As a biologist, I would expect similar behaviour from two different wrapping of "Concatenating" as well (this and this), because there is no explanation of double click feature for these tools. However, the first tool submits two jobs of the file as its input and the second tool concatenate the file to itself and returns just one output. As mentioned by Pavan above, the difference is the way wrapper defines the parameter ( |
Edit: Actually no, this is a case of being able to click a value twice manually, whereas this commit fixed the case where somehow |
I concede any change is a good change, I would be very happy if someone could take this on. |
I'll take a look, since I'm already investigating #19813 and might need to touch the FormSelect component (if that is where the issue is) |
I couldn't reproduce this in the current 24.2 branch, so I checked out some older commits and could easily reproduce it again. So I can confirm that #19837 already fixed this 🎉 |
Still broken, sorry. |
Ouch! I didn't try drag&drop just the way it was reported here. I'll keep investigating then 😞 |
I don't think it was part of the ticket before, but the general issue being that we don't enforce unique inputs I realised this is the easiest way to reproduce. |
Describe the bug
The dropdown dataset selection (not the column select) allows the same dataset to be selected twice for a single parameter. It happens only when a user double clicks on the dataset while selecting. I guess this should not be allowed. If I remember correctly, when a dataset was already selected from the dropdown, it would disappear from the dropdown. But in the latest version, the selected datasets still appear in the dropdown.
Screenshots
Galaxy Version and/or server at which you observed the bug
Galaxy Version:
{"version_major":"24.2","version_minor":"2.dev0"}
on usegalaxy.euBrowser and Operating System
Operating Systems: Ubuntu, Windows
Browser: Chrome, Firefox
Galaxy History with error
We observed this yesterday during a workshop. We could find it because luckily DESeq2 was complaining about duplicate rows, which should not be the case. After a bit of investigation, it turned out that the problem was of course, not the inputs but duplicate file selection. Here is the history with the error reproduced multiple times: https://usegalaxy.eu/u/videmp/h/deseq2-duplicate-genes-error-investigation
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: