Skip to content

feat: forward table references to CI payload#97

Merged
veksen merged 2 commits intomainfrom
veksen/ci-table-references
Mar 26, 2026
Merged

feat: forward table references to CI payload#97
veksen merged 2 commits intomainfrom
veksen/ci-table-references

Conversation

@veksen
Copy link
Member

@veksen veksen commented Mar 26, 2026

Summary

  • Add referencedTables to all post-analysis QueryProcessResult variants in runner.ts
  • Add tableReferences field to CiQueryPayload in site-api.ts
  • Forward result.referencedTables (with [] fallback) through mapResultToQuery() for all query result kinds
  • Update test fixtures in github.test.ts to include the new field

Complements Query-Doctor/Site#2614 which added tableReferences to CiRunQueryResult on the Site side.

Test plan

  • TypeScript compiles cleanly (tsc --noEmit)
  • All non-Docker unit tests pass (43/43)
  • Verify end-to-end with a CI run that the Site API receives tableReferences in the payload

🤖 Generated with Claude Code

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Query Doctor Analysis

View full run details

28 queries analyzed

2 pre-existing issues

Using assumed statistics (10000 rows/table). For better results, sync production stats.

Thread referencedTables from Analyzer.analyze() through
QueryProcessResult and into the CiQueryPayload sent to the Site API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@veksen veksen force-pushed the veksen/ci-table-references branch from bc72880 to 639dd95 Compare March 26, 2026 07:04
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@veksen veksen merged commit 132a3ca into main Mar 26, 2026
6 checks passed
@veksen veksen deleted the veksen/ci-table-references branch March 26, 2026 07:17
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