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

オープン
#7,038 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
sql
領域
databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TSQL
スター
32
フォーク
7
平均マージ
1日 16時間
マージ済み PR(30日)
504

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MemberJunction/MJ のほかの issue

MemberJunction/MJ の issue をすべて見る

似ている issue

Databases の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。