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

release/3.3.3 #2873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

release/3.3.3 #2873

wants to merge 1 commit into from

Conversation

vahidkay-meta
Copy link
Contributor

This branch contains the release version updates

@github-actions github-actions bot added the changelog: none Skip changelog entry for this PR label Feb 7, 2025
@@ -726,6 +726,8 @@ public function prepare_product( $retailer_id = null, $type_to_prepare_for = sel

$custom_fields = $this->get_facebook_specific_fields();

$custom_fields = $this->get_facebook_specific_fields();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this line was duplicated in the previous release, can we delete it?

Copy link
Collaborator

@iodic iodic left a comment

Choose a reason for hiding this comment

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

Can we just remove the duplicated line in includes/fbproduct.php:729?

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@vahidkay-meta has updated the pull request. You must reimport the pull request before landing.

…sion endpoint (#2844)

Summary:

**Problem:**

1. The Delete Permission User API only removed Meta connection assets from the WooCommerce database, leaving asset-related data enabled on Meta surfaces.
2. If a user disconnected the connection before uninstalling assets from Meta surfaces using Managed Connection; the UI for Managed Connection was also removed, making it difficult for users to uninstall this feature from Meta surface.

**Solution:**

1. Replaced the Delete Permission User API with the recommended Delete FBE Connection endpoint, which uninstalls assets from Meta surfaces and removes their permissions.
2. Removed the Managed Connection UI button for uninstalling FBE from Meta surfaces, as the Delete Connection endpoint now handles this functionality.

**Before:**

<img width="784" alt="image" src="https://github.com/user-attachments/assets/76bf6364-2af8-4657-a043-8e79aaff99c6">

**After:**

<img width="803" alt="image" src="https://github.com/user-attachments/assets/45e7ebc8-4a74-4589-a9e3-0e4fff1f4f20">

![Screenshot 2025-02-04 at 15 29 54](https://github.com/user-attachments/assets/77e02cba-ca89-42f9-a016-85c50e4b02fc)

<img width="797" alt="image" src="https://github.com/user-attachments/assets/f4d215b0-0959-4ee8-8347-16c64afe3460">

1. Run new tests: `./vendor/bin/phpunit --filter test_delete_mbe_connection_deletes_user_permission_request`
2. Run all tests : `npm run test:php`
3. Lint: `./vendor/bin/phpcs`
4. Manual testing: I have tested new Disconnect UI flow; it uninstall FBE connection from WooCommerce as well as from Meta surface

- **Removed:** Delete Permission User API

- **Added:** Delete FBE Connection endpoint to uninstall assets from Meta surfaces and remove permissions

- **Removed:** Managed Connection UI button for uninstalling FBE from Meta surfaces (now handled by Delete Connection endpoint)

Pull Request resolved: #2844

Reviewed By: halilozanakgul

Differential Revision: D68972713

Pulled By: atuld123

fbshipit-source-id: b19ee8351b4852c69192449f9af2644960a55307

parent 4be2987
author github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 1738833933 +0000
committer Vahid Kaykhaei <vahidkay@meta.com> 1739267285 +0100

Start `release/3.3.3`.

Start `release/3.3.1`.

Updated the plugin version to 3.3.3

Updated the stable tag to 3.3.3

Fixed the version nr in fb-for-woo.php

Fixed a review comment
@facebook-github-bot
Copy link
Contributor

@vahidkay-meta has updated the pull request. You must reimport the pull request before landing.

@vahidkay-meta vahidkay-meta changed the title Release/3.3.3 release/3.3.3 Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: none Skip changelog entry for this PR CLA Signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants