refactor: remove package-name stutter and fix initialisms in Go identifiers

Đang mở
#404 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
65/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, sql
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start by locating the listed identifiers in the handlers, store and query code, then find the sqlc rename configuration for the generated names. Apply the internal renames without changing API, JSON, database behavior or metric label values; run just db-gen, storage tests and just check to verify completion.

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

Mô tả

Internal-only renames; no API, JSON or database changes.

  • intelligence.IntelligenceSnapshot → intelligence.Snapshot
  • alert.AlertEnv, alert.AlertSummary → alert.Env, alert.Summary
  • writegate.WriteGate, writegate.WriteOperation → writegate.Gate,
    writegate.Operation (metric label values unchanged)
  • FanQL AST MExpr, MCall, MArg, MBinary, MNeg, MConst →
    MeasureExpr, MeasureCall, MeasureArg, MeasureBinary,
    MeasureNegation, MeasureConstant
  • sqlc output WebhookUrl, SpecJson → WebhookURL, SpecJSON via
    sqlc rename configuration, then just db-gen
  • UpdateRule → ReplaceRule in handler, store and query (the PUT route
    already replaces the writable representation)

Verification: just check, just db-gen with storage tests.

Ngôn ngữ chính
Go
Star
11
Fork
0
Merge trung bình
7 giờ 39 phút
Pull request đã merge (30 ngày)
97

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 labstack/fanout

Tất cả issue của labstack/fanout

Issue tương tự

Thêm issue về Go

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.