Skip to content

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

Closed
hostep opened this issue Aug 28, 2019 · 21 comments
Assignees
Labels
Component: Backend Component: Ui Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S1 Affects critical data or functionality and forces users to employ a workaround. Triage: Done Has been reviewed and prioritized during Triage with Product Managers

Comments

@hostep
Copy link
Contributor

hostep commented Aug 28, 2019

Preconditions (*)

  1. Seen on Magento 2.2.3, 2.3.2 and 2.3, 2.4-develop (7cf99d1), so probably all M2 versions are affected

Steps to reproduce (*)

  1. Setup some vanilla Magento

  2. Login to the backend

  3. 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"]

  4. In the 'Search by keyword' box, enter 'one' and search

  5. In the first column, choose the 'Select All' option

  6. 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"]

  7. Remove the 'one' keyword search by pressing the 'x' icon to the right of it.

  8. 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

  1. Select Actions => Delete

  2. 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"]

  3. Press OK

  4. 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 (*)

  1. After removing the keyword search, it should only keep 1 record selected, not all of them

Actual result (*)

  1. Shop owners calling in panic that they unintentionally removed all their customers/products somehow
@m2-assistant
Copy link

m2-assistant bot commented Aug 28, 2019

Hi @hostep. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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:

@magento give me 2.3-develop instance - upcoming 2.3.x release

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?

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Aug 28, 2019
@shikhamis11 shikhamis11 self-assigned this Aug 28, 2019
@m2-assistant
Copy link

m2-assistant bot commented Aug 28, 2019

Hi @shikhamis11. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@shikhamis11
Copy link
Member

@magento give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11, here is your Magento instance.
Admin access: https://i-24348-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@shikhamis11 shikhamis11 added Component: Backend Component: Ui Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Aug 28, 2019
@ghost ghost unassigned shikhamis11 Aug 28, 2019
@shikhamis11 shikhamis11 self-assigned this Aug 28, 2019
@m2-assistant
Copy link

m2-assistant bot commented Aug 28, 2019

Hi @shikhamis11. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@magento-engcom-team
Copy link
Contributor

✅ Confirmed by @shikhamis11
Thank you for verifying the issue. Based on the provided information internal tickets MC-19708 were created

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.

@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Aug 28, 2019
@sudheers-kensium sudheers-kensium self-assigned this Aug 29, 2019
@m2-assistant
Copy link

m2-assistant bot commented Aug 29, 2019

Hi @sudheers-kensium. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@shikhamis11 shikhamis11 self-assigned this Aug 29, 2019
@mahesh-rajawat mahesh-rajawat self-assigned this Aug 31, 2019
@m2-assistant
Copy link

m2-assistant bot commented Aug 31, 2019

Hi @maheshWebkul721. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@mahesh-rajawat
Copy link
Member

@magento give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @maheshWebkul721. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @maheshWebkul721, here is your Magento instance.
Admin access: https://i-24348-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@ghost
Copy link

ghost commented Oct 17, 2019

@magento give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @prabhatrawat-webkul. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@sdzhepa sdzhepa added Triage: Done Has been reviewed and prioritized during Triage with Product Managers and removed Triage: Ready for Triage Issue is ready to me triaged with Product Manager labels Jun 12, 2020
@ghost ghost added Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Severity: S1 Affects critical data or functionality and forces users to employ a workaround. labels Aug 17, 2020
@sidolov sidolov removed Priority: P3 May be fixed according to the position in the backlog. Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Aug 19, 2020
@m2-community-project m2-community-project bot added Progress: PR Created Indicates that Pull Request has been created to fix issue and removed Progress: PR in progress Progress: PR Created Indicates that Pull Request has been created to fix issue labels Sep 3, 2020
@ghost ghost assigned engcom-Hotel Sep 9, 2020
@ghost ghost added Progress: PR in progress and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Sep 9, 2020
@gabrieldagama
Copy link
Contributor

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.

@hostep
Copy link
Contributor Author

hostep commented Sep 11, 2020

Hi @gabrieldagama

Let me know when #29968 is more or less stable and I can test it (according to the comments, it's not stable yet)
I'll try to give some feedback when the PR is stable and I can test it in practice to see how it behaves.

Thanks!

@magento-engcom-team magento-engcom-team added Progress: ready for dev and removed Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Progress: PR in progress labels Sep 15, 2020
@ghost ghost unassigned mahesh-rajawat Sep 15, 2020
@ghost ghost removed their assignment Sep 15, 2020
@magento-engcom-team
Copy link
Contributor

@magento-engcom-team magento-engcom-team added the Fixed in 2.4.x The issue has been fixed in 2.4-develop branch label Sep 19, 2020
@hostep
Copy link
Contributor Author

hostep commented Sep 22, 2020

@gabrieldagama: I've just re-tested this on 2.4-develop and it looks like it now works as expected. Thank you @engcom-Hotel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Backend Component: Ui Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S1 Affects critical data or functionality and forces users to employ a workaround. Triage: Done Has been reviewed and prioritized during Triage with Product Managers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants