Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
a980566 to
864d4f6
Compare
Greptile OverviewGreptile SummaryThis PR adds a nullable The main correctness risk is an API/signature change: Confidence Score: 3/5
Important Files Changed
|
Additional Comments (4)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Context Used: Rule from Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
This test uses Context Used: Rule from
The comment says the distance backfill was added in migration |
3bb7875 to
85899ae
Compare
adamsachs
left a comment
There was a problem hiding this comment.
nice, this is so straightforward to review given the solid backfill framework already in place! 👏
just a couple of very small, non-blocking comments.
Ticket ENG-2292
Description Of Changes
This PR adds a
distancecolumn to theStagedResourceAncestortable to track the hierarchical distance between resources in their ancestor relationships. The distance is calculated based on URN segment depth (e.g., database → schema = 1, database → table = 2, database → field = 3).The implementation includes a database migration, backfill script to populate existing records, and tests.
Code Changes
distancecolumn (nullable integer) toStagedResourceAncestortablebackfill_stagedresrouceancestor_distance.pythat calculates distance from URN segment countsStagedResourceAncestor.create_all_staged_resource_ancestor_links()to accept and store distance valuesix_staged_resource_ancestor_desc_anc_distindex on[descendant_urn, ancestor_urn, distance]Steps to Confirm
distancecolumn is added tostagedresourceancestortable/api/v1/admin/backfills/statusincludes distance backfill statusPre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works