Introduce a dedicated `search-replace url` command

Abierto
#186 2 comentarios 11 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

  • #209 de @MarkBerube — cerrado sin fusionar

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
json
Área
cli, database

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Gherkin
Estrellas
61
Forks
47
Merge medio
8 min
PR fusionados (30 d)
1

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wp-cli/search-replace-command

Todos los issues de wp-cli/search-replace-command

Issues similares

Más issues de CLI

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.