-
Notifications
You must be signed in to change notification settings - Fork 45
skip-revisions, select columns, callbacks = The forever reroll (now with tests) #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added --revision / --no-revision Added --callback Reroll wp-cli#104, wp-cli#128, wp-cli#184 Fixes wp-cli#125, wp-cli#127, wp-cli#142
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Thanks for your PR! Would it be possible to split it up into 3 individual ones, one per new argument? That would make reviews much easier. There could also be one PS. Notice the lint failure |
I understand it's a significant diff on core code, but:
There is also at least one imperfection I'm aware of:
|
|
ping |
|
Heya, apologies for missing your previous reply. Thanks a lot for your effort, it's truly appreciated! |
Replacement callback & row-based filtering (include/exclude posts revisions)
--whereexpression has been a long requested feature (for more than 8 years)Added
--whereflag to precisely select rows aimed for replacementAdded
--revision/--no-revisionAdded
--callbackReroll of Feature: Call user function with --callback flag #104 (Dec 2018), Replacement callback & row-based filtering #128 (Sept 2019) (Feature: Call user function with --callback flag Feature: Call user function with --callback flag #104 and skip-revisions, select columns, callbacks = The forever reroll #184 (June 2023)
Fix Filter by post types and post status in post table #125 (Introduce
--whereflag) and Limit search-replace in DB --wp_db_id="wp_posts:1234" (New command parameter) #142 (--wp_db_id)Resolves Pass current
$coland$primary_keysdown to the SearchReplacer #127 (Callback access to current primary key & column)