Introduce a dedicated `search-replace url` command

未关闭
#186 2 条评论 11 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

  • #209 来自 @MarkBerube —— 已关闭,未合并

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
json
领域
cli, database

调研方向

Start by reading the existing wp search-replace behavior and document the URL storage permutations mentioned, including serialized values and http versus https. Define the proposed search-replace url command around those cases, then develop it test-first with coverage showing that each documented URL form is handled.

由索引模型根据 Issue 内容生成。

描述

command:search-replace contributor-day

The primary usage of wp search-replace is to update URLs in the database. However, URLs can be stored in various forms in the database (e.g. serialized into JSON), which means they're missed by wp search-replace.

We don't really want to change the behavior of wp search-replace, lest the sky fall down on our head. However, we could introduce a wp search-replace url command that handled the edge cases of URL formatting (serialized, http vs. https, etc.).

If we want to introduce this command, we'd first want to document these permutations of how URLs are stored. Afterwards, we could develop the command in a test-driven manner.

主要语言
Gherkin
星标
61
派生
47
平均合并
8 分钟
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wp-cli/search-replace-command 的其他 Issue

查看 wp-cli/search-replace-command 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。