Skip to content

Sites: include a8c-owned sites for non-Automatticians - #113932

Merged
p-jackson merged 5 commits into
trunkfrom
DOTMSD-1491-fetch-all-sites-non-a11n
Sep 1, 2026
Merged

Sites: include a8c-owned sites for non-Automatticians#113932
p-jackson merged 5 commits into
trunkfrom
DOTMSD-1491-fetch-all-sites-non-a11n

Conversation

@p-jackson

Copy link
Copy Markdown
Member

Part of DOTMSD-1491

Proposed Changes

  • Always request include_a8c_owned sites for users who are not Automatticians. Previously shouldIncludeA8COwned required isAutomattician, so a8c-owned sites were excluded for everyone else.
  • Automatticians keep the existing behaviour: a8c-owned sites are included unless the is_a8c filter is explicitly set to false.

Why are these changes being made?

  • The is_a8c filter is only exposed to Automatticians, but a regular user can still be a member of an a8c-owned site. With the old logic those sites were silently missing from their site list, and there was no filter they could use to bring them back.

Testing Instructions

  • Log in as a non-Automattician account that is a member of an a8c-owned site and open the sites dashboard. The a8c-owned site should now appear in the list.
  • As an Automattician, confirm the site list still includes a8c-owned sites by default, and that setting the "A8C" filter to exclude removes them.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • For UI changes, have you tested the affected components in dark mode?
  • Have you tested accessibility for your changes?
  • Have you used memoizing on expensive computations?
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

https://claude.ai/code/session_01EE6fVjw6DZiarMheomhS1P

Non-Automatticians have no is_a8c filter in the site list, but they can
still be members of a8c-owned sites. Always request a8c-owned sites for
them so those sites are not silently missing from the list.

Claude-Session: https://claude.ai/code/session_01EE6fVjw6DZiarMheomhS1P
@p-jackson p-jackson self-assigned this Aug 31, 2026
@p-jackson
p-jackson marked this pull request as ready for review August 31, 2026 04:45
@p-jackson
p-jackson requested a review from a team as a code owner August 31, 2026 04:45
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 31, 2026
@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Comment thread client/dashboard/sites/index.tsx Outdated
Comment thread client/dashboard/sites/index.tsx Outdated
p-jackson and others added 3 commits August 31, 2026 16:49
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Split the a8c filter reading into its own boolean so that
include_a8c_owned and site_visibility no longer share a variable.
Non-Automatticians keep site_visibility 'visible' by default; 'all' is
opted into by search, account restore, or an Automattician wanting
a8c-owned sites.

Claude-Session: https://claude.ai/code/session_01EE6fVjw6DZiarMheomhS1P
Comment thread client/dashboard/sites/index.tsx Outdated
@p-jackson
p-jackson merged commit e8fbeed into trunk Sep 1, 2026
11 checks passed
@p-jackson
p-jackson deleted the DOTMSD-1491-fetch-all-sites-non-a11n branch September 1, 2026 02:37
@github-actions github-actions Bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants