Skip to content

Reader: Adds caller param to users/sites endpoint#109897

Open
mehmoodak wants to merge 1 commit intotrunkfrom
READ-470/add-caller-param-on-reader-user-sites-endpoint
Open

Reader: Adds caller param to users/sites endpoint#109897
mehmoodak wants to merge 1 commit intotrunkfrom
READ-470/add-caller-param-on-reader-user-sites-endpoint

Conversation

@mehmoodak
Copy link
Copy Markdown
Member

Closes: READ-470
BE PR: 210992-ghe-Automattic/wpcom

Proposed Changes

Add caller query param to the users/sites endpoint which filters the sites for the Reader.

Testing Instructions

  • Go to any user profile page.
  • Verify users/:id/sites endpoint is called with caller=reader param.

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?
  • Have you tested accessibility for your changes? Ensure the feature remains usable with various user agents (e.g., browsers), interfaces (e.g., keyboard navigation), and assistive technologies (e.g., screen readers) (PCYsg-S3g-p2).
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • 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 example, ES, PT, FR, or DE)? The length of text and words vary significantly between 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)?

@mehmoodak mehmoodak self-assigned this Apr 8, 2026
@mehmoodak mehmoodak requested a review from a team as a code owner April 8, 2026 19:14
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Apr 8, 2026
@matticbot
Copy link
Copy Markdown
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • help-center

To test WordPress.com changes, run install-plugin.sh $pluginSlug READ-470/add-caller-param-on-reader-user-sites-endpoint on your sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants