Proposal: convert historical URLs table into a Slowly Changing Dimension structure

Đang mở
#506 1 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ó
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
28/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
databases

Hướng nghiên cứu

Start by locating the historical URLs table and reviewing its existing date fields, current URL handling, and repo_git consumers. Compare the current schema with the proposed Type 2 SCD model, then clarify the validity-date backfill and stable.repo lookup before implementation. Done means the design is agreed and URL history supports reliable current and past ownership.

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

Mô tả

database

we have a historical urls table that isnt really useful for anything operationally because a new repo can take a url that belonged to another repo in the past.

I think we could make this more useful using a Slowly Changing Dimension pattern: https://en.wikipedia.org/wiki/Slowly_changing_dimension

something like a type 2 SCD.

we already store enough dates to maybe back-calculate validity dates for each url.
i think the key innovations here would be to:

  1. change the dates to be validity start and end
  2. include the current repo url in the table with a null validity end date indicating its the current one
  3. maybe we can make a repo table in the stable schema that queries for this current url to populate the repo_git column.

Then we have more reliable URL history that at least able to be unambiguous for analytical/informational purposes, especially when dealing with cases where different repos occupy the same URL at different times (such as chaoss/augur)

Ngôn ngữ chính
Python
Star
18
Fork
33
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
12

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 chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

Issue tương tự

Thêm issue về Python

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.