Deprecate the natural keys parameters to `insert_data` and `bulk_insert_dicts`

Abierto
#574 0 comentarios 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
database

Línea de trabajo

Start by locating insert_data, bulk_insert_dicts, and the PullRequest model, then trace the call sites that pass pr_natural_keys. Work out how the model exposes its natural keys and which tests cover these insertion paths. Done means the parameters are deprecated consistently and the tests verify natural keys are derived from PullRequest.

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

Descripción

needs-plan tech debt

The above also made me realize: There are multiple places we update the pull requests table, so any PR we would have submitted to address it in one place (in addition to the DB) would have been wrong.

Im realizing that this means the whole concept of passing in pr_natural_keys manually in each call to bulk_insert_dicts is super fragile and prone to not matching aross different call sites.

We should probably derive the natural keys from the PullRequest Object itself, so its consistent every time.

Originally posted by @MoralCode in #93

Lenguaje dominante
Python
Estrellas
17
Forks
30
Merge medio
6 h 16 min
PR fusionados (30 d)
9

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.