Skip to content

Fixed #24400 Issues Found on Grid Multi-Select Column #26626

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
wants to merge 9 commits into from
Closed

Fixed #24400 Issues Found on Grid Multi-Select Column #26626

wants to merge 9 commits into from

Conversation

shikhamis11
Copy link
Member

Fixed #24400 Issues Found on Grid Multi-Select Column

Preconditions (*)

  1. Magento 2.3-develop and Magento 2.3.2

Steps to reproduce (*)

Issue First:

  1. Open any grid having some records.
  2. Click on Header Checkbox to select all record on current page. https://prnt.sc/p09pr0
  3. Now unselect some record, on click particular row: https://prnt.sc/p09pya
  4. Again click on Header Checkbox, here is the issue.
  5. Now you will see all records are unselected but header checkbox is selected. https://prnt.sc/p09qh6

Issue Second

  1. Now Select the per page record to 1 https://prnt.sc/p09rfr
  2. And select all record on current page by clicking header checkbox. https://prnt.sc/p09rrj
  3. Go to second page you will see that the header checkbox is selected on all remaining pages.
    https://prnt.sc/p09s42

Expected result (*)

  1. https://prnt.sc/p09qof

Actual result (*)

  1. https://prnt.sc/p09qh6

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Fixed #24400 Issues Found on Grid Multi-Select Column
@m2-assistant
Copy link

m2-assistant bot commented Feb 2, 2020

Hi @shikhamis11. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@novikor
Copy link
Contributor

novikor commented Feb 3, 2020

@shikhamis11, thank you for your contribution.
Please fix the static tests

Copy link
Contributor

@novikor novikor left a comment

Choose a reason for hiding this comment

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

disallowTrailingWhitespace: Illegal trailing whitespace at app/code/Magento/Ui/view/base/web/js/grid/columns/multiselect.js :
   236 |        */
   237 |        togglePage: function () {
   238 |            return this.isPageSelected() && !this.excluded().length 
---------------------------------------------------------------------------^
   239 |                ? this.deselectPage() : this.selectPage();
   240 |        },


requireOperatorBeforeLineBreak: Operator ? should not be on a new line at app/code/Magento/Ui/view/base/web/js/grid/columns/multiselect.js :
   236 |        */
   237 |        togglePage: function () {
   238 |            return this.isPageSelected() && !this.excluded().length 
---------------------------------------------------------------------------^
   239 |                ? this.deselectPage() : this.selectPage();
   240 |        },

@novikor
Copy link
Contributor

novikor commented Feb 7, 2020

@magento run Functional Tests B2B

Copy link
Contributor

@novikor novikor left a comment

Choose a reason for hiding this comment

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

Good job! Thank you for your contribution.

@magento-engcom-team
Copy link
Contributor

Hi @novikor, thank you for the review.
ENGCOM-6841 has been created to process this Pull Request
✳️ @novikor, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Delta
Copy link
Contributor

HI @shikhamis11 , seems like there is still issue with header checkbox
#26626PR

Could you take a look?

@novikor novikor added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Feb 11, 2020
@shikhamis11
Copy link
Member Author

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

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

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11, here is your new Magento instance.
Admin access: https://pr-26626.instances.magento-community.engineering/admin_e772
Login: 2bf4bdef Password: bfe103d4e9ac
Instance will be terminated in up to 3 hours.

@shikhamis11
Copy link
Member Author

thanks for the update @engcom-Delta
I will check it further
It seems this issue reproduced in 2.4-dev instance recently .. I checked fix is working fine at 2.3.3 and 2.4 instances

@shikhamis11
Copy link
Member Author

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

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

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11, here is your new Magento instance.
Admin access: https://pr-26626.instances.magento-community.engineering/admin_04a4
Login: ba885a7a Password: 44bd7427c53e
Instance will be terminated in up to 3 hours.

@shikhamis11
Copy link
Member Author

Hi @engcom-Delta & @novikor
I installed 2.4-develop instance at my local and checked the issue ..
there I am not able to reproduce this error there fix seems to be working fine .. can you please check at your end too ?

@engcom-Delta
Copy link
Contributor

Hi @shikhamis11 I rechecked and this issue is also present on 2.4-develop and seems like not related to PR.
So results are next:

  • I cannot reproduce Issue First scenario on 2.4-develop:

#26626PRCase1

  • Issue Second scenario is reproducible on 2.4-develop but it is not fixed by PR

#26626PRCase2

Is there any additional steps that I missed?

@shikhamis11
Copy link
Member Author

@magento give me 2.4-develop instance

@magento-engcom-team
Copy link
Contributor

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

@magento-engcom-team
Copy link
Contributor

Hi @shikhamis11, here is your Magento instance.
Admin access: https://i-26626-2-4-develop.instances.magento-community.engineering/admin_f080
Login: ab66e3c2 Password: 90a0f683f78c
Instance will be terminated in up to 3 hours.

@shikhamis11
Copy link
Member Author

hi @engcom-Delta
I am confused with the random behaviour at instances .. yesterday only I cloned 2.4-develop instance at my local and there the previous issue was present

screencast-demo cedcommerce com-2020 02 13-18_16_00

@engcom-Kilo engcom-Kilo self-assigned this Mar 18, 2020
@engcom-Kilo
Copy link
Contributor

Will add MFTF test

@engcom-Kilo
Copy link
Contributor

@shikhamis11 Added MFTF Test

@engcom-Kilo engcom-Kilo added Auto-Tests: Covered All changes in Pull Request is covered by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Apr 30, 2020
@engcom-Kilo
Copy link
Contributor

@magento run all tests

@engcom-Kilo
Copy link
Contributor

@magento run all tests

@engcom-Kilo
Copy link
Contributor

Hi @shikhamis11 , I'm closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for your collaboration.

@engcom-Kilo engcom-Kilo closed this Aug 5, 2020
@m2-assistant
Copy link

m2-assistant bot commented Aug 5, 2020

Hi @shikhamis11, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues Found on Grid Multi-Select Column
5 participants