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

Abierto
#506 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
28/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python
Área
databases

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
Python
Estrellas
18
Forks
33
Merge medio
2 d 16 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de chaoss/CollectOSS

Todos los issues de chaoss/CollectOSS

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.