db-command icon indicating copy to clipboard operation
db-command copied to clipboard

Implement exclude revision flag to remove revision results from the search

Open imrraaj opened this issue 1 year ago • 3 comments

This PR implements the exclude_revisions flag for wp db search command. This flag allows users to exclude revisions from the search results.

PR fixes following issues:

  • #156

Usage

wp db search <search> [--tables=<tables>] [--exclude_revisions]

imrraaj avatar May 27 '24 07:05 imrraaj

@imrraaj Also can you please add Behat test for this new feature? Ref - https://make.wordpress.org/cli/handbook/contributions/pull-requests/#functional-tests

ernilambar avatar Jun 19 '24 04:06 ernilambar

@ernilambar I'll do the necessary changes and I'll add the tests for the same

imrraaj avatar Jun 19 '24 05:06 imrraaj

I hope you merge this into the new version of the WP CLI soon. I am still looking for a workaround to exclude revisions while exporting the database, but I can't find it yet.

fatihturan avatar Sep 13 '24 11:09 fatihturan

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests.

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar Nov 02 '25 15:11 codecov[bot]