Canon: DBAutoDoc proposers for undeclared foreign keys and stale table copies

Aperta
#7,038 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
sql
Ambito
databases

Direzione di ricerca

Read plans/canon-factory-run.md and the DBAutoDoc ledger and path-search entry points to locate how References edges are proposed and how entities are filtered. Start by tracing existing Proposed rows and the schema for foreign-key checks and table metadata. Done means matching undeclared keys are proposed only after the bounded probe returns rows, and top-ranked paths do not cross tables marked as stale copies.

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

Descrizione

canon

Not part of the Canon factory run (MJ 7002). Ruled post-run by D45 in plans/canon-factory-run.md. Slice 2.4 only records facts on existing References edges and keeps path search off entities that are not Active.

Two proposers for DBAutoDoc, both writing Proposed rows through the ledger, dry run by default:

1. Confirm an undeclared foreign key before proposing it

On a schema with undeclared foreign keys, check a candidate join by the overlap of distinct values and one bounded, read-only probe join, and propose the References edge only when the join returns rows. Opt in per source, with a stated cost limit per table.

2. Detect stale copies of a table

Recognise prefixed or versioned copies (OLD_*, *_BAK, *_V2) as one family and propose marking the stale members, so path search does not bridge across them.

Done when

An undeclared key with matching values is proposed only when the probe returns rows, and the top-ranked path never crosses a table marked as a stale copy.


Generated by Claude Code

Lingua principale
TSQL
Stelle
32
Fork
7
Merge medio
1g 16h
PR unite (30g)
504

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 MemberJunction/MJ

Tutte le issue di MemberJunction/MJ

Issue simili

Altre issue su Databases

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.