Ability to Exclude Revisions from `wp db search`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start at the wp db search command entry point and trace how its options and database search are defined. Review the existing command tests and documentation, if available; done means an --exclude-revisions option works and matching revision records are omitted from results.
索引モデルが issue の本文から書いたものです。
説明
Describe your use case and the problem you are facing
I often use wp db search to determine if a certain shortcode, class, etc. is in use. These search results include revisions, so it's possible that a search with 10 results only represents a single post. This makes the function significantly less useful for what feels like a pretty simple use case.
Describe the solution you'd like
The simplest solution would be some type of standalone flag so I could do something like wp db search 'string' --exclude-revisions.
My only hesitancy in suggesting this is wondering whether some more generalized way to include or exclude other things would be useful. On the flipside, a super powerful way to limit the search query would probably end up being much less user-friendly.
- 主要言語
- PHP
- スター
- 76
- フォーク
- 73
- 平均マージ
- 9時間 31分
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wp-cli/db-command のほかの issue
-
command:db-size scope:documentation
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
wp-cli/db-command#348 · コメント 1 件 ·
-
bug command:db-query
wp-cli/db-command#319 · コメント 5 件 · リアクション 1 件 · 担当者 2 名 ·
-
command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · コメント 5 件 · リアクション 1 件 · 担当者 2 名 ·
-
bug command:db-export
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
wp-cli/db-command#289 · コメント 2 件 ·
-
command:db-export command:db-import scope:distribution state:unconfirmed
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
wp-cli/db-command#327 · コメント 8 件 · リアクション 2 件 ·
wp-cli/db-command の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
Перевод устарел
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
[6.x]: "Cannot use object of type stdClass as array" loading Users index (regression of #19182) オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100