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

オープン
#506 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python
領域
databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Python
スター
18
フォーク
33
平均マージ
2日 16時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

chaoss/CollectOSS のほかの issue

chaoss/CollectOSS の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。