fix(ai-review): gate Create-PR button on server-computed eligibility (GitHub + flags)#23668
Conversation
🧪 Test Selection✅ Tests that will run
⏭️ Tests skipped (no relevant file changes detected)
|
|
Your preview environment pr-23668 has been deployed. Preview environment endpoints are available at: |
598e162 to
df961e4
Compare
69a8f0f to
9a8078f
Compare
9a8078f to
9918d63
Compare
df961e4 to
6303b0d
Compare
9918d63 to
1c3325c
Compare
6303b0d to
256997b
Compare
Preview Environment🌐 URL: https://lightdash-preview-pr-23668.lightdash.okteto.dev 📋 Logs: View in GCP Console 🔧 SSH: |
256997b to
e6dce05
Compare
1c3325c to
bfb5668
Compare
e6dce05 to
610015f
Compare
bfb5668 to
6179378
Compare
610015f to
ff905f4
Compare
6179378 to
a216dda
Compare
a216dda to
1544d83
Compare
| } catch { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
The bare catch {} block silently swallows all errors from projectModel.get(). The backend rules require proper error handling and logging: errors should be logged (via Winston) and categorised using the appropriate error classes from errors.ts. At minimum, unexpected errors should be logged at warn/error level so they surface in monitoring.
Spotted by Graphite (based on custom rule: packages/backend rules)
Is this helpful? React 👍 or 👎 to let us know.
# [0.3055.0](0.3054.0...0.3055.0) (2026-05-29) ### Bug Fixes * **ai-review:** gate Create-PR button on server-computed eligibility (GitHub + flags) ([#23668](#23668)) ([2ecae83](2ecae83)) * **ai-review:** writeback hardening — progress-write race + resilience ([#23669](#23669)) ([ae39718](ae39718)) ### Features * **ai-review:** review-queue UI — Create PR, dismiss, status + PR link ([#23666](#23666)) ([2866822](2866822)) * **ai-review:** run writeback on worker with live progress (PR6) ([#23667](#23667)) ([c991df5](c991df5))
|
🎉 This PR is included in version 0.3055.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |

Part 7/9 (fix). Server-computes a per-item
writebackEligible(semantic-layer and GitHub project and both flags on); the Create PR button keys off it instead of root-cause alone. Also fast-fails the engine flag before enqueue.Why server-side:
useProjects()doesn't expose the dbt connection type, so the frontend can't tell which projects are GitHub-connected.🤖 Generated with Claude Code