fix(deploy): reconcile canonical integration status#165
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
More reviews will be available in 6 minutes and 20 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
1 issue found across 2 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/deploy/src/connect.ts">
<violation number="1" location="packages/deploy/src/connect.ts:268">
P2: Canonical primary-source polling can report connected for the wrong provider config because `sessionConfigKey` is not passed into `statusIsConnectedForSource`.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| const fallbackSource = workspaceFallbackSource( | ||
| if (sessionId) { | ||
| const canonicalStatus = await fetchIntegrationStatusForScope(statusArgs); | ||
| if (statusIsConnectedForSource(canonicalStatus, provider, effectiveSource)) { |
There was a problem hiding this comment.
P2: Canonical primary-source polling can report connected for the wrong provider config because sessionConfigKey is not passed into statusIsConnectedForSource.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/deploy/src/connect.ts, line 268:
<comment>Canonical primary-source polling can report connected for the wrong provider config because `sessionConfigKey` is not passed into `statusIsConnectedForSource`.</comment>
<file context>
@@ -260,7 +263,18 @@ const fallbackSource = workspaceFallbackSource(
-const fallbackSource = workspaceFallbackSource(
+ if (sessionId) {
+ const canonicalStatus = await fetchIntegrationStatusForScope(statusArgs);
+ if (statusIsConnectedForSource(canonicalStatus, provider, effectiveSource)) {
+ const connectionId = readConnectionId(canonicalStatus)
+ ?? sessionId
</file context>
| if (statusIsConnectedForSource(canonicalStatus, provider, effectiveSource)) { | |
| if (statusIsConnectedForSource(canonicalStatus, provider, effectiveSource, sessionConfigKey)) { |
|
Fixed the PR findings. Changes made:
Validation:
|
Summary
Validation