[Date] Localitățile din nomenclator sunt fără diacritice

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, database

Hướng nghiên cứu

Start with backend/src/migrations/seed/city.seed.ts and the CountyDiacritics migration referenced in the issue, then locate the volunteer CSV import and its municipality matching tests. Use the SIRUTA nomenclature as the source; keep city IDs stable and make matching case and diacritic insensitive within each county, including ş/ţ variants. Done means the migration and seed use the corrected names, its down restores old values, and tests cover matching older CSV names.

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

Mô tả

Cele ~13.900 de localități din backend/src/migrations/seed/city.seed.ts (tabela _city) sunt scrise fără diacritice („Brasov”, „Targu Mures”, „Iasi”), deși județele au fost corectate în #629 prin migrarea CountyDiacritics.

De făcut

  • Migrare TypeORM care actualizează _city.name la forma corectă (ș/ț cu virgulă, ca la județe), fără să schimbe id-urile; down revine la valorile vechi.
  • city.seed.ts actualizat la aceleași nume.
  • Sursă: nomenclatorul SIRUTA (INS), nu corecturi manuale.
  • Importul CSV de voluntari potrivește localitatea după nume: trebuie să rămână insensibil la diacritice (inclusiv ş/ţ cu sedilă) și la majuscule, în cadrul județului, ca fișierele vechi fără diacritice să se potrivească în continuare. Teste pentru potrivire.
Ngôn ngữ chính
TypeScript
Star
3
Fork
2
Merge trung bình
18 phút
Pull request đã merge (30 ngày)
118

Chuẩn bị môi trường

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 code4romania/vic

Tất cả issue của code4romania/vic

Issue tương tự

Thêm issue về TypeScript

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.