Skip to content

Conversation

@kirtangajjar
Copy link
Contributor

Description of the Change

Add ability to search for a site on the Pull Content screen

Closes #1235

How to test the Change

Changelog Entry

Added - Ability to search for a site on pull content screen

Credits

Props @kirtangajjar

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@kirtangajjar kirtangajjar requested a review from a team as a code owner August 4, 2024 05:02
@kirtangajjar kirtangajjar requested review from peterwilsoncc and removed request for a team August 4, 2024 05:02
@github-actions github-actions bot added this to the 2.2.0 milestone Aug 4, 2024
@github-actions github-actions bot added the needs:code-review This requires code review. label Aug 4, 2024
@kirtangajjar kirtangajjar changed the title Pull screen search Pull screen search feature Aug 4, 2024
Copy link
Collaborator

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

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

I've added some notes inline.

The UI looks good but I'm hitting a bug with the search. Otherwise the notes a minor.

add_filter( 'amp_dev_mode_element_xpaths', __NAMESPACE__ . '\add_element_xpaths' );
add_filter( 'script_loader_tag', __NAMESPACE__ . '\add_dev_mode_to_assets', 10, 2 );
add_action( 'wp_ajax_dt_load_connections', __NAMESPACE__ . '\get_connections' );
add_action( 'wp_ajax_dt_load_connections_push', __NAMESPACE__ . '\get_connections' );
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm assuming this is for clarity from wp_ajax_dt_load_connections_pull?

We're probably stuck with the old name to ensure backward compatibility with the third party extensions and between different versions of the plugin. Otherwise we could go through a soft deprecation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing it out. I've added the old method back with soft deprecation. LMK if I did it correctly(this is my first time doing it)

@kirtangajjar
Copy link
Contributor Author

@peterwilsoncc I've addressed your feedback. LMK if you find anything else.

@peterwilsoncc
Copy link
Collaborator

These changes look good, thank you.

This is looking good, I'm seeing a bug on the pull screen when there are two connections with the same ID (ie an external connection's POST ID matches the network connection's SITE ID). I'm seeing that selecting the external site is showing the internal site in the drop down following a refresh:

pulled-from-incorrect

In the gif you'll see I am selecting XU-Distributor but upon refresh the dropdown is showing 10 Dist thirty-four.

@github-actions github-actions bot added the needs:refresh This requires a refreshed PR to resolve. label Jul 9, 2025
@github-actions
Copy link

github-actions bot commented Jul 9, 2025

@kirtangajjar thanks for the PR! Could you please rebase your PR on top of the latest changes in the base branch?

@dkotter dkotter modified the milestones: 2.2.0, 2.3.0 Aug 26, 2025
@jeffpaul jeffpaul mentioned this pull request Sep 15, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review. needs:refresh This requires a refreshed PR to resolve.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to search for a site on the Pull Content screen

3 participants