Ability to Exclude Revisions from `wp db search`
还没有人认领这个 Issue。
评估
- 难度
- 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
- 派生
- 74
- 平均合并
- 19 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wp-cli/db-command 的其他 Issue
-
Size: separate data_length and index_length可能已有人在做 @swissspidy 于 21 天前认领。 未关闭command:db-size scope:documentation
难度 3/5 1-2 天 新手友好度 65/100
wp-cli/db-command#348 · 1 条评论 ·
-
query shouldn't require mysql/mariadb cli tools可能已有人在做 @swissspidy 于 187 天前认领。 未关闭bug command:db-query
wp-cli/db-command#319 · 5 条评论 · 1 个 reaction · 已指派 2 人 ·
-
Add `wp db status` command for quick database health overview可能已有人在做 @swissspidy 于 247 天前认领。 未关闭command:db scope:distribution state:unconfirmed
wp-cli/db-command#306 · 5 条评论 · 1 个 reaction · 已指派 2 人 ·
-
Giving multiple same arguments to mysqldump (via wp db export) only forwards the latest可能已有人在做 @astappiev 于 361 天前认领。 未关闭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 一周以上 新手友好度 25/100
wp-cli/db-command#327 · 8 条评论 · 2 个 reaction ·
查看 wp-cli/db-command 的全部 Issue
相似的 Issue
-
product / databases
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
VilnaCRM-Org/user-service#525 ·
维护者通常 21 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
shukiv/jabali-panel#2029 ·
维护者通常 1 天内回复
-
area:pool-types good first issue priority:low type:bug
难度 2/5 1-3 小时 新手友好度 76/100
crazy-goat/php-fpm-ng#822 ·
维护者通常 1 天内回复
-
agentic bug
难度 2/5 1-3 小时 新手友好度 78/100
MagnaCapax/PMSS#1023 · 1 条评论 ·
维护者通常 5 天内回复