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

Aperta
#574 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
database

Direzione di ricerca

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.

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

Descrizione

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

Lingua principale
Python
Stelle
17
Fork
30
Merge medio
6h 16m
PR unite (30g)
9

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.