Skip to content

Sync: Replace site_owner with is_a8c field for filtering out A8C sites - #1262

Merged
ivan-ottinger merged 1 commit into
trunkfrom
update/sites-filtering-using-is_a8c-field
Apr 25, 2025
Merged

Sync: Replace site_owner with is_a8c field for filtering out A8C sites#1262
ivan-ottinger merged 1 commit into
trunkfrom
update/sites-filtering-using-is_a8c-field

Conversation

@ivan-ottinger

@ivan-ottinger ivan-ottinger commented Apr 24, 2025

Copy link
Copy Markdown
Contributor

Related issues

Proposed Changes

  • use is_a8c instead of site_owner field to filter out A8C sites

Testing Instructions

  1. If 181408-ghe-Automattic/wpcom hasn't been merged and deployed yet, check out related branch and sandbox public-api.wordpress.com.
  2. Check out the PR branch and build the app with npm start.
  3. Head over to the Sync tab of any local site and click on the Connect site button.
  4. Observe that the list of sites in the modal does not include any A8C sites.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@ivan-ottinger ivan-ottinger self-assigned this Apr 24, 2025
@ivan-ottinger
ivan-ottinger requested a review from a team April 24, 2025 13:21

@gcsecsey gcsecsey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM and works well. When using this branch with the sandboxed API, I can only see my own sites in the list! 👌

CleanShot 2025-04-24 at 14 33 57@2x

@bcotrim bcotrim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works as described and code LGTM 👍
Kudos for jumping on this so quickly!

@sejas sejas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested along 181408-ghe-Automattic/wpcom and I confirm it works great.
If is_a8c doesn't exist, it still rendering all sites without any issue.
If you apply the backend change, it filters out A8c sites. Thanks for iterating so fast 👏

Screenshot 2025-04-24 at 17 18 34

@ivan-ottinger

Copy link
Copy Markdown
Contributor Author

Thank you for your reviews, everyone! 🙇🏼

@ivan-ottinger
ivan-ottinger merged commit 6fcdc0f into trunk Apr 25, 2025
@ivan-ottinger
ivan-ottinger deleted the update/sites-filtering-using-is_a8c-field branch April 25, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants