Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wp-cli/search-replace-command
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: wp-cli/search-replace-command
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: copilot/add-progress-bar-indicator
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 2 files changed
  • 3 contributors

Commits on Nov 10, 2025

  1. Initial plan

    Copilot committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    6b308fd View commit details
    Browse the repository at this point in the history
  2. Add progress bar support to search-replace command

    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    41bbda5 View commit details
    Browse the repository at this point in the history
  3. Add Behat tests for progress bar functionality

    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    cd31f29 View commit details
    Browse the repository at this point in the history
  4. Remove unused progress_bar property

    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    61e02c0 View commit details
    Browse the repository at this point in the history
  5. Refactor progress tick to reduce code duplication

    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    77534f5 View commit details
    Browse the repository at this point in the history
  6. Lint fix

    swissspidy committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    59217ca View commit details
    Browse the repository at this point in the history
  7. Revert to early continue pattern and fix progress tick to count by batch

    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    681d4c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2025

  1. Suppress progress bar when logging is enabled

    Fixes logging test by suppressing progress bar whenever logging is enabled (not just when logging to STDOUT), as the progress bar output can interfere with clean log output.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 13, 2025
    Configuration menu
    Copy the full SHA
    1f1bb20 View commit details
    Browse the repository at this point in the history
  2. Update test to include search string in generated post content

    Modified the "Progress bar shows when not in verbose mode" test to generate posts with content containing http://example.com. This ensures the progress bar has matching rows to process and display when using the --precise flag.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 13, 2025
    Configuration menu
    Copy the full SHA
    8d65105 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2025

  1. Fix test by explicitly setting option with search string

    Changed test to use `wp option set` to explicitly create an option containing http://example.com, rather than relying on post generation with --post_content parameter. This ensures the test data has a guaranteed match in wp_options table that will be found by --precise mode.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 14, 2025
    Configuration menu
    Copy the full SHA
    b5da516 View commit details
    Browse the repository at this point in the history
  2. Fix test to check STDERR for progress bar output

    Progress bars in WP-CLI output to STDERR, not STDOUT. Updated tests to check STDERR for "Updating" message from progress bar. This fixes the test that was failing because it was checking the wrong output stream.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 14, 2025
    Configuration menu
    Copy the full SHA
    46ba4ed View commit details
    Browse the repository at this point in the history
  3. Add WP_CLI::log message before progress bar to show processing status

    Added WP_CLI::log() call to output "Updating table.column (X rows)" message before creating progress bar. This ensures users see feedback even if the progress bar doesn't display properly, and provides clear indication of what's being processed. Also reverted test back to checking STDOUT as requested.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 14, 2025
    Configuration menu
    Copy the full SHA
    3e0e5a0 View commit details
    Browse the repository at this point in the history
  4. Fix progress bar sprintf format strings

    Fixed sprintf format strings for make_progress_bar() calls. Changed from 'Progress' (which ignored table/col parameters) to 'Processing table.column' for regular processing and 'Processing table' for exports. This ensures the progress bar displays with meaningful labels.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 14, 2025
    Configuration menu
    Copy the full SHA
    3efdf0a View commit details
    Browse the repository at this point in the history
  5. Move progress bar initialization into while loop

    Moved progress bar setup from before the while loop to inside the loop on first iteration. This ensures the progress bar is created when rows are actually fetched, even if the initial COUNT query returns 0. Addresses issue where COUNT might return 0 but the while loop still fetches rows to process.
    
    Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
    Copilot and swissspidy committed Nov 14, 2025
    Configuration menu
    Copy the full SHA
    0d531c9 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2026

  1. Configuration menu
    Copy the full SHA
    077285b View commit details
    Browse the repository at this point in the history
Loading