Introduce a dedicated `search-replace url` command

Đang mở
#186 2 bình luận 11 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

  • #209 của @MarkBerube — đã đóng, không merge

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
json
Lĩnh vực
cli, database

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Gherkin
Star
61
Fork
47
Merge trung bình
8 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wp-cli/search-replace-command

Tất cả issue của wp-cli/search-replace-command

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.