Skip to content

[WAUM] Fix the product sync button showing up twice#3199

Closed
sharunaanandraj wants to merge 1 commit intomainfrom
fix-product-sync
Closed

[WAUM] Fix the product sync button showing up twice#3199
sharunaanandraj wants to merge 1 commit intomainfrom
fix-product-sync

Conversation

@sharunaanandraj
Copy link
Copy Markdown
Contributor

Description

The product sync button was showing up twice due to a change we added when building the rollout switch. Fixing this in this diff.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Changelog entry

Fix the product sync button showing up twice

Test Plan

Screenshots

Before Change

Screenshot 2025-05-15 at 11 16 56 AM

With GK

Product sync shows once with utility messages tab
Screenshot 2025-05-15 at 11 02 41 AM

Without GK

Product sync shows once without utility messages tab
Screenshot 2025-05-15 at 11 11 19 AM


$this->screens = $this->build_menu_item_array();

add_action( 'admin_menu', array( $this, 'build_menu_item_array' ) );
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is called twice, so removing

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

📦 Latest Plugin Build

Built at: 2025-05-15T18:19:10.894Z
Commit: 5593997
Size: 1.1M

Download: Click here to download the plugin

To download: Click the link above → Scroll to bottom → Download "facebook-for-woocommerce" artifact

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

📦 Latest Plugin Build

Built at: 2025-05-15T18:19:10.894Z
Commit: 5593997
Size: 1.1M

Download: Click here to download the plugin

To download: Click the link above → Scroll to bottom → Download "facebook-for-woocommerce" artifact

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@sharunaanandraj merged this pull request in 10e90e5.

sharunaanandraj added a commit that referenced this pull request May 15, 2025
Summary:
## Description

The product sync button was showing up twice due to a change we added when building the rollout switch. Fixing this in this diff.

### Type of change
- Bug fix (non-breaking change which fixes an issue)

## Changelog entry
Fix the product sync button showing up twice

Pull Request resolved: #3199

Test Plan:
## Screenshots
### Before Change
<img width="1131" alt="Screenshot 2025-05-15 at 11 16 56 AM" src="https://github.com/user-attachments/assets/40f9da5b-57aa-402d-abe1-edc3d1e19905" />

### With GK
Product sync shows once with utility messages tab
<img width="961" alt="Screenshot 2025-05-15 at 11 02 41 AM" src="https://github.com/user-attachments/assets/5bf92fd0-0c22-4449-8e96-3ef351c1f6cb" />
### Without GK
Product sync shows once without utility messages tab
<img width="960" alt="Screenshot 2025-05-15 at 11 11 19 AM" src="https://github.com/user-attachments/assets/21074f65-9910-4cc7-b6dd-3f182d1486f8" />

Reviewed By: jkaryo1

Differential Revision:
D74827821

Privacy Context Container: L1332882

Pulled By: sharunaanandraj

fbshipit-source-id: 8880c3024ada1066230ac262e9a7bac12aaaacfe
@tzahgr tzahgr mentioned this pull request May 20, 2025
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