Skip to content

fix: Scope generated graphs provenance per-import#655

Closed
SandeepTuniki wants to merge 4 commits into
masterfrom
fix-generated-graphs-provenance
Closed

fix: Scope generated graphs provenance per-import#655
SandeepTuniki wants to merge 4 commits into
masterfrom
fix-generated-graphs-provenance

Conversation

@SandeepTuniki

@SandeepTuniki SandeepTuniki commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Work in progress. Don't review yet. Created this primarily to get feedback.

- Update StatVarGroupGenerator to run globally but propagate provenance dynamically from source SVs (e.g. dc/base/generated/<import_name>).
- Update LinkedEdgeGenerator to use dynamic provenance for active imports.
- Update AggregationDeleter to clean up the new generated graphs by scoping deletion lists.
- Update integration and unit tests to assert the new dynamic provenance format.
@codacy-production

codacy-production Bot commented Jul 17, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 5 minor

Alerts:
⚠ 5 issues (≤ 0 issues of at least minor severity)

Results:
5 new issues

Category Results
Documentation 3 minor
CodeStyle 2 minor

View in Codacy

🟢 Metrics 13 complexity

Metric Results
Complexity 13

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request transitions the aggregation pipeline from using a static, global GeneratedGraphs provenance to dynamic, per-import generated provenances (e.g., dc/base/generated/{import_name}). This involves updating the deleter to support deleting generated graphs separately, modifying SQL queries in linked_edge_generator and stat_var_group_generator to dynamically resolve and propagate the new provenance format, and updating orchestrator logic and tests accordingly. A critical issue was identified in stat_var_group_generator.py where the static check WHERE provenance != generated_provenance in CuratedMemberOf fails to filter out the new scoped generated provenances, which would cause previously generated edges to be incorrectly treated as curated; a dynamic prefix-based filter is recommended to resolve this.

@SandeepTuniki
SandeepTuniki deleted the fix-generated-graphs-provenance branch July 25, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant