Introduce a dedicated `search-replace url` command
Nobody has claimed this yet.
- #209 by @MarkBerube — closed without merging
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Gherkin
- Stars
- 61
- Forks
- 47
- Avg merge
- 8m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wp-cli/search-replace-command
-
bug command:search-replace scope:distribution state:unconfirmed
Difficulty 4/5 3-5 days Newbie friendliness 45/100
wp-cli/search-replace-command#231 · 5 comments ·
-
command:search-replace
Difficulty 5/5 Over a week Newbie friendliness 35/100
wp-cli/search-replace-command#194 · 1 comment ·
-
command:search-replace
Difficulty 4/5 3-5 days Newbie friendliness 35/100
wp-cli/search-replace-command#142 · 5 comments · 2 reactions ·
-
command:search-replace
Difficulty 3/5 1-2 days Newbie friendliness 52/100
wp-cli/search-replace-command#137 · 6 comments · 4 reactions ·
-
Progress bar Opencommand:search-replace
wp-cli/search-replace-command#134 · 1 comment · 6 reactions · 1 assignee ·
All issues in wp-cli/search-replace-command
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nightscout/nocturne#1424 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paritytech/zombienet-sdk#591 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mruangutai/harness#1897 ·
-
os:linux
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
mpv-player/mpv#18510 · 2 comments ·