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

Removed unused plugin on protected method #32158

Conversation

erfanimani
Copy link
Contributor

@erfanimani erfanimani commented Feb 15, 2021

Description (*)

Removed an unused plugin. The plugin seems to be legacy code, and wouldn't have worked anyway do to it being targeted for a protected method.

The plugin even had unit tests.

Actually, the original methods don't seem to be used anywhere either. I'm not sure why they're not removed. They're marked as protected, so it shouldn't cause any backwards compatibility issues.

  • isCityActive
  • isStateActive

See this commit for some background:
e7f8000

The previous class with different name was renamed and refactored. The methods used to be public. If this hasn't caused any regression (I don't thinks so), then the original methods should be removed too.

Questions or comments

Should the original methods be removed?

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)

Resolved issues:

  1. resolves [Issue] Removed unused plugin on protected method #37927: Removed unused plugin on protected method

@m2-assistant
Copy link

m2-assistant bot commented Feb 15, 2021

Hi @erfanimani. Thank you for your contribution
Here are 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

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

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

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@BarnyShergold
Copy link

@magento run all tests

@magento-engcom-team
Copy link
Contributor

Hi @BarnyShergold, thank you for the review.
ENGCOM-8761 has been created to process this Pull Request
✳️ @BarnyShergold, 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

@BarnyShergold BarnyShergold added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Feb 15, 2021
@BarnyShergold
Copy link

@magento run Functional Tests B2B

2 similar comments
@BarnyShergold
Copy link

@magento run Functional Tests B2B

@BarnyShergold
Copy link

@magento run Functional Tests B2B

@BarnyShergold
Copy link

@erfanimani The Functional Tests b2B keep failing but I can't see why what you've added would cause these issues - this maybe a false positive. Can you check?

@erfanimani
Copy link
Contributor Author

Thanks for the heads up @BarnyShergold.

I had a look at the Allure output of the functional tests, and the errors definitely seem unrelated. It looks like these might be changes introduced in 2.4-develop from other PRs?

@BarnyShergold
Copy link

@engcom-Hotel Can you advise?

@gabrieldagama gabrieldagama added the Priority: P3 May be fixed according to the position in the backlog. label May 25, 2021
@BarnyShergold
Copy link

@magento run Functional Tests B2B

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@BarnyShergold
Copy link

@magento run Functional Tests B2B

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@BarnyShergold
Copy link

@magento run Functional Tests B2B

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@engcom-Echo
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento create issue

@engcom-Echo
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo engcom-Echo moved this from Ready for Testing to Testing in Progress in Community Dashboard Aug 28, 2023
@engcom-Echo
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento run Integration Tests,Functional Tests EE,Functional Tests B2B

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

@magento run Integration Tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Echo
Copy link
Contributor

engcom-Echo commented Aug 29, 2023

Thanks for the contribution!

✔️ QA Passed

QA not required.

As in this PR, the changes are related to removed unused plugin on protected method
There is nothing to reproduce in this issue but it is a good to have.

Build are failing hence moving it to Extended Testing

@engcom-Echo engcom-Echo moved this from Testing in Progress to Extended testing (optional) in Community Dashboard Aug 29, 2023
@engcom-Echo
Copy link
Contributor

Functional Tests B2B failure are different on last two run on same commit.
Run1
Screenshot 2023-08-29 at 1 54 01 PM

Run2
Screenshot 2023-08-29 at 1 54 06 PM

Hence moving it to Merge In Progress

@engcom-Echo engcom-Echo moved this from Extended testing (optional) to Merge in Progress in Community Dashboard Aug 29, 2023
@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 61182f5 into magento:2.4-develop Aug 31, 2023
11 of 12 checks passed
@engcom-Echo engcom-Echo moved this from Merge in Progress to Recently Merged in Community Dashboard Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Component: Dhl Component: OfflineShipping Priority: P3 May be fixed according to the position in the backlog. Progress: accept Project: Community Picked PRs upvoted by the community Release Line: 2.4 Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Community Dashboard
Recently Merged
Development

Successfully merging this pull request may close these issues.

[Issue] Removed unused plugin on protected method
9 participants