Skip to content
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

fix: remove unused ID #17291

Merged
merged 4 commits into from Aug 2, 2018
Merged

fix: remove unused ID #17291

merged 4 commits into from Aug 2, 2018

Conversation

DanielRuf
Copy link
Contributor

Description

The ID is totally unused so we do not have to use Knockout here and do not even need this ID.

Fixed Issues (if relevant)

Manual testing scenarios

  1. ...
  2. ...

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 on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @DanielRuf. 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-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me {$VERSION} instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@orlangur
Copy link
Contributor

Unfortunately, we can't accept such Pull Requests to 2.2 release line, all code cleanup like typos, spelling mistakes, etc should be delivered to 2.3 release line. For more information, please, refer to Magento Code Contributions Guide.

@orlangur orlangur closed this Jul 31, 2018
@DanielRuf DanielRuf reopened this Jul 31, 2018
@DanielRuf
Copy link
Contributor Author

Unfortunately, we can't accept such Pull Requests to 2.2 release line, all code cleanup like typos, spelling mistakes, etc should be delivered to 2.3 release line

Isn't this the case with forward ports? Some weeks ago I could still create PRs for such things and I saw them merged and now this?

@orlangur
Copy link
Contributor

@DanielRuf this is pretty new

hey @here, yesterday we updated Code contribution docs (https://devdocs.magento.com/guides/v2.2/contributor-guide/contributing.html),

The main changes made in “Accepted pull requests and ported code” section, we defined few new rules for different submission types

@DanielRuf
Copy link
Contributor Author

In general the change of another contributor was to set the ID with knockout, which does the same like mine PR does- fix the duplicate ID issue.

But the current code has a big drawback: knockout / JS for a trivial issue which is only because of an unused ID (it is actually not used at all) which impacts the performance of the DOM. This is not how it should have been "fixed" as it is not good for the performance.

@DanielRuf
Copy link
Contributor Author

@DanielRuf this is pretty new

Se my last comment about performance and the impact on the DOM. In general it should have been reverted and the ID removed. I was just one week late as I saw this last week to but thought it would have been correctly fixed and checked if we really need the ID (which is not the case).

@DanielRuf
Copy link
Contributor Author

But to be exact, this is not a code cleanup but a fix, the right fix.

@DanielRuf
Copy link
Contributor Author

See #17061

@orlangur
Copy link
Contributor

orlangur commented Aug 1, 2018

@DanielRuf thanks, totally makes sense to me as it was introduced recently and it's better to redo fix.

https://github.com/DanielRuf/magento2/commit/d78fd0c7a9907cf14a0ff48d3bb6007392a7ba9e
Here @VladimirZaets introduced unneeded CSS class which violates Code Demarcation Standard. Could you please remove this class, add data attribute like data-form="billing-new-address" and change selector in functional test accordingly?

update acceptance test to use new data-form attribute
@DanielRuf
Copy link
Contributor Author

Here @VladimirZaets introduced unneeded CSS class which violates Code Demarcation Standard. Could you please remove this class, add data attribute like data-form="billing-new-address" and change selector in functional test accordingly?

Done.

@magento-engcom-team
Copy link
Contributor

Hi @orlangur, thank you for the review.
ENGCOM-2619 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

Hi @DanielRuf. Thank you for your contribution.
We will aim to release these changes as part of 2.2.7.
Please check the release notes for final confirmation.

Please, consider to port this solution to 2.3 release line.
You may use Porting tool to port commits automatically.

@DanielRuf DanielRuf deleted the fix/remove-unused-id branch August 2, 2018 16:57
This was referenced Aug 2, 2018
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.

3 participants