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

Aperta
#506 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)

Lingua principale
Python
Stelle
18
Fork
33
Merge medio
2g 16h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chaoss/CollectOSS

Tutte le issue di chaoss/CollectOSS

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.