-
Notifications
You must be signed in to change notification settings - Fork 9.4k
UI Component grid indicates a wrong number of selections when removing keyword search #24348
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
Comments
Hi @hostep. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @hostep do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @shikhamis11. Thank you for working on this issue.
|
@magento give me 2.3-develop instance |
Hi @shikhamis11. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @shikhamis11, here is your Magento instance. |
Hi @shikhamis11. Thank you for working on this issue.
|
✅ Confirmed by @shikhamis11 Issue Available: @shikhamis11, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @sudheers-kensium. Thank you for working on this issue.
|
Hi @maheshWebkul721. Thank you for working on this issue.
|
@magento give me 2.3-develop instance |
Hi @maheshWebkul721. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @maheshWebkul721, here is your Magento instance. |
@magento give me 2.3-develop instance |
Hi @prabhatrawat-webkul. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @hostep, We have got a PR that aims to fix this issue #29968 But the expected behavior may not be the one described on the issue, here the contributor has applied the same behavior that the filters have on the search for the grid. So basically if you apply filters or search on the grid, the grid will deselect all records, which would prevent the problem that you described with the wrong deletion. I personally think that is correct, we keep consistency and the same behavior across the grid. What do you think? If we want to change the behavior we may have to check in with PO and do it on both (filters and search) to be consistent. Please let me know your thoughts. Thanks. |
Let me know when #29968 is more or less stable and I can test it (according to the comments, it's not stable yet) Thanks! |
Hi @hostep. Thank you for your report.
The fix will be available with the upcoming 2.4.2 release. |
@gabrieldagama: I've just re-tested this on |
Uh oh!
There was an error while loading. Please reload this page.
Preconditions (*)
Steps to reproduce (*)
Setup some vanilla Magento
Login to the backend
Create 3 customers: 'One One', 'Two Two' and 'Three Three':
<img width="486" alt="Screenshot 2019-08-28 at 20 05 17" src="https://user-images.githubusercontent.com/85479/63881267-b98dc500-c9cf-11e9-8669-8dc78cfb98c7.png"]
In the 'Search by keyword' box, enter 'one' and search
In the first column, choose the 'Select All' option
Notice that one record is selected:
[img width="421" alt="Screenshot 2019-08-28 at 20 06 11" src="https://user-images.githubusercontent.com/85479/63881435-21441000-c9d0-11e9-949c-d2a56c865649.png"]
Remove the 'one' keyword search by pressing the 'x' icon to the right of it.
Notice that it now says that one record is selected, but visually all records have a checkmark:
[img width="424" alt="Screenshot 2019-08-28 at 20 06 24" src="https://user-images.githubusercontent.com/85479/63881521-518bae80-c9d0-11e9-819d-794096cd597a.png"]
=> this is probably the main bug, but it gets even worse
Select Actions => Delete
Notice that it says it will remove 1 record:
[img width="692" alt="Screenshot 2019-08-28 at 20 06 36" src="https://user-images.githubusercontent.com/85479/63881616-87309780-c9d0-11e9-8a77-b37ebaea6768.png"]
Press OK
Notice that it now removed all records (3) instead of the 1 it claimed to delete before yikes!
[img width="441" alt="Screenshot 2019-08-28 at 20 06 47" src="https://user-images.githubusercontent.com/85479/63881704-b6df9f80-c9d0-11e9-99d9-690560719c9e.png">
Note that the exact same thing can be reproduced with the product grid (and maybe other grids as well in Magento).
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: