Skip to content

Add new Option for cross site search allowed ids#12357

Merged
kraftbj merged 2 commits intomasterfrom
update/add-option-for-cross-site-search
May 14, 2019
Merged

Add new Option for cross site search allowed ids#12357
kraftbj merged 2 commits intomasterfrom
update/add-option-for-cross-site-search

Conversation

@nickdaugherty
Copy link
Copy Markdown
Contributor

@nickdaugherty nickdaugherty commented May 13, 2019

Changes proposed in this Pull Request:

Adds a new, whitelisted, non-compact option name - allowed_xsite_search_ids.

This option will contain an array of other blog ids that are allowed to search the current site's content.

This option will be synced to WP.com for use in the Search endpoint to control access on cross-site searches.

Happy to tweak the option name if there is something better!

Is this a new feature or does it add/remove features to an existing part of Jetpack?

Adds a new option name. See p3QzjZ-Rh-p2 and p6jPRI-20f-p2

Testing instructions:

  • Jetpack_Options::update_option( 'allowed_xsite_search_ids', array( <some-jp-site-id> ) ); <-- should be ok and not complain about invalid option name
  • Anything else? Needs a corresponding tweak on the WP.com side to allow this to be synced (WIP), then can verify it makes it up.

Proposed changelog entry for your changes:

  • Add new option for cross-site search permissions

@nickdaugherty nickdaugherty added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review This PR is ready for review. [Package] Sync [Status] Needs Testing We need to add this change to the testing call for this month's release [Feature] Search For all things related to Search labels May 13, 2019
@nickdaugherty nickdaugherty requested a review from a team May 13, 2019 23:12
@nickdaugherty nickdaugherty requested a review from a team as a code owner May 13, 2019 23:12
@matticbot
Copy link
Copy Markdown
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello nickdaugherty! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer, review, and approve D28153-code before merging this PR. Thank you!

@jetpackbot
Copy link
Copy Markdown
Collaborator

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: May 14, 2019.
Scheduled code freeze: May 7, 2019

Generated by 🚫 dangerJS against 84c2a2f

Copy link
Copy Markdown
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

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

This works for me. 👍 🚢

@jeherve jeherve added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. [Status] Needs Testing We need to add this change to the testing call for this month's release labels May 14, 2019
@jeherve jeherve added this to the 7.4 milestone May 14, 2019
Copy link
Copy Markdown
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

Feel free to ping @Automattic/poseidon for a review of the corresponding .com diff.

@kraftbj kraftbj merged commit 9b21620 into master May 14, 2019
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Ready to Merge Go ahead, you can push that green button! labels May 14, 2019
@kraftbj kraftbj deleted the update/add-option-for-cross-site-search branch May 14, 2019 16:39
@nickdaugherty
Copy link
Copy Markdown
Contributor Author

Thanks all!

jeherve added a commit that referenced this pull request May 17, 2019
jeherve added a commit that referenced this pull request May 23, 2019
jeherve added a commit that referenced this pull request May 27, 2019
* Kick off the changelog

* Add 7.3.1

* Update date and post link

* changelog: add #12219

* changelog: add #12170

* changelog: add #12184

* Changelog: add #12268

* Changelog: add #12081

* Changelog: add #12323

* Changelog: add #12204

* Changelog: add #12269

* Changelog: add #12332

* changelog: add #12339

* changelog: add #12209

* Changelog: add #12319

* Changelog: add #12357

* Changelog: add #12124

* Changelog: add #12373

* Changelog: add #12252

* Changelog: add #12383

* Changelog: add #12372

* changelog: add #12337

* Changelog: add #12290

* Changelog: add #12301

* Changelog: add #12061

* Testing list: add instructions for #12061

* Changelog: add #12393

* Update minimum supported version

See #12287

* Changelog: add #12406

* Testing list: add #12406

* Changelog: add #12277

* Changelog: add #12412

* Changelog: add #11318

* Changelog: add #12328

* Changelog: add #12425

* Changelog: add #12380

* Changelog: add #12428

* Changelog: add #12414

* Changelog: add #12395

* Changelog & Testing list: add #12416, #12417, #12418, and #12348

* changelog: add #12379

* Changelog: add #12341

* changelog: add #12444

* Changelog: add #12434

* Changelog: add #12454

* Changelog: add #12460

* Changelog: add #12463

* Changelog: add #12457

* Changelog / testing list: add #10333

* Changelog: add #12467


Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Search For all things related to Search [Package] Sync Touches WP.com Files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants