Skip to content

Clean up unused code from Connection.php#3071

Closed
ajello-meta wants to merge 3 commits intomainfrom
clean-up-connection
Closed

Clean up unused code from Connection.php#3071
ajello-meta wants to merge 3 commits intomainfrom
clean-up-connection

Conversation

@ajello-meta
Copy link
Copy Markdown
Contributor

@ajello-meta ajello-meta commented Apr 18, 2025

Description

This PR removes unused code in Connection.php that related to enhanced onboarding. In #2968, we introduced the enhanced settings UI, which completely revamped all extension settings using Enhanced_Settings.php. The logic that was deleted here is available in Shops.php.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Syntax change (non-breaking change which fixes code modularity, linting or phpcs issues)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Test Plan

  1. Go to http://test-site-i.local/wp-admin/admin.php?page=wc-facebook. Make sure you are seeing the legacy setting UI.
  2. Go to the "Connection" tab and test the functionality. Make sure to test the UI in both the connected state and non-connected state.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ajello-meta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ajello-meta merged this pull request in 2e57f1e.

mradmeta pushed a commit that referenced this pull request Apr 19, 2025
Summary:
## Description
This PR removes unused code in `Connection.php` that related to enhanced onboarding. In #2968, we introduced the enhanced settings UI, which completely revamped all extension settings using `Enhanced_Settings.php`. The logic that was deleted here is available in `Shops.php`.

### Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Syntax change (non-breaking change which fixes code modularity, linting or phpcs issues)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Pull Request resolved: #3071

Test Plan:
1. Go to `http://test-site-i.local/wp-admin/admin.php?page=wc-facebook`. Make sure you are seeing the legacy setting UI.
2. Go to the "Connection" tab and test the functionality. Make sure to test the UI in both the connected state and non-connected state.

**!---- (auto-generated) DO NOT EDIT OR PUT ANYTHING AFTER THIS LINE ----!**
MFTRunTestsScript Run / Test Suite: sa_checkout / Test Collection: www / Diff Version V1
https://internalfb.com/intern/testinfra/testrun/1125900319629707
MFTRunTestsScript Run / Test Suite: sa_checkout / Test Collection: bloks / Diff Version V1
https://internalfb.com/intern/testinfra/testrun/12947849007730003

Reviewed By: jczhuoMeta

Differential Revision: D73272875

Pulled By: ajello-meta

fbshipit-source-id: 2a6f3bf6cd96a1260d966b2ac0459863b388038a
mradmeta pushed a commit to mradmeta/facebook-for-woocommerce that referenced this pull request Apr 22, 2025
Summary:
## Description
This PR removes unused code in `Connection.php` that related to enhanced onboarding. In facebook#2968, we introduced the enhanced settings UI, which completely revamped all extension settings using `Enhanced_Settings.php`. The logic that was deleted here is available in `Shops.php`.

### Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Syntax change (non-breaking change which fixes code modularity, linting or phpcs issues)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Pull Request resolved: facebook#3071

Test Plan:
1. Go to `http://test-site-i.local/wp-admin/admin.php?page=wc-facebook`. Make sure you are seeing the legacy setting UI.
2. Go to the "Connection" tab and test the functionality. Make sure to test the UI in both the connected state and non-connected state.

**!---- (auto-generated) DO NOT EDIT OR PUT ANYTHING AFTER THIS LINE ----!**
MFTRunTestsScript Run / Test Suite: sa_checkout / Test Collection: www / Diff Version V1
https://internalfb.com/intern/testinfra/testrun/1125900319629707
MFTRunTestsScript Run / Test Suite: sa_checkout / Test Collection: bloks / Diff Version V1
https://internalfb.com/intern/testinfra/testrun/12947849007730003

Reviewed By: jczhuoMeta

Differential Revision: D73272875

Pulled By: ajello-meta

fbshipit-source-id: 2a6f3bf6cd96a1260d966b2ac0459863b388038a
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.

2 participants