Skip to content

feat(eloqua): add Oracle Eloqua integration - #7424

Open
BillLeoutsakosvl346 wants to merge 5 commits into
stagingfrom
investigate/oracle-eloqua-integration
Open

feat(eloqua): add Oracle Eloqua integration#7424
BillLeoutsakosvl346 wants to merge 5 commits into
stagingfrom
investigate/oracle-eloqua-integration

Conversation

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor

Summary

  • add Oracle Eloqua OAuth with credential-bound pod discovery, 30 Application and Bulk API tools, and five server selectors
  • add the marketing block, typed contracts, templates, skills, generated integration docs, catalog metadata, and deployment availability

Type of Change

  • New feature

Testing

  • bun run lint
  • bun run --cwd apps/sim type-check
  • focused OAuth, tool, selector, and availability tests
  • canvas, boundary, catalog, docs, deployment, and full audit checks

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 3, 2026 1:39am UTC

Request Review

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@greptile-apps

greptile-apps Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds a complete Oracle Eloqua integration with credential-bound pod discovery, OAuth token resolution, application and bulk operations, selectors, workflow configuration, documentation, catalog registration, and deployment capability metadata.

  • Persists and validates the Eloqua pod through OAuth account scope.
  • Adds 30 Eloqua tools and five credential-backed selectors.
  • Registers the integration across workflow, documentation, generated metadata, and deployment surfaces.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/lib/auth/connectors/providers.ts Adds Eloqua OAuth configuration and persists the validated pod marker through the generic OAuth token scope.
apps/sim/lib/oauth/eloqua.ts Implements Eloqua identity discovery, pod validation, marker serialization, and token exchange helpers.
apps/sim/lib/oauth/token-resolution.ts Restores the credential-bound Eloqua instance URL from stored OAuth scope during execution.
apps/sim/lib/selectors/server/providers/eloqua.ts Resolves selector tokens and validated pod metadata against the same authorized account ID and fails closed when unavailable.
apps/sim/blocks/blocks/eloqua.ts Defines the Eloqua workflow block, operation-specific inputs, parameter normalization, outputs, templates, and skills.
apps/sim/tools/eloqua/factories.ts Provides shared construction and execution behavior for the new Eloqua application and bulk API tools.

Sequence Diagram

sequenceDiagram
  participant User
  participant OAuth as Eloqua OAuth
  participant Account as Stored OAuth account
  participant Selector as Eloqua selector
  participant API as Eloqua pod API
  User->>OAuth: Connect Eloqua account
  OAuth->>API: Discover identity and pod
  OAuth->>Account: Persist token and validated pod marker
  User->>Selector: Open credential-backed selector
  Selector->>Account: Resolve authorized account and scope
  Selector->>Account: Resolve access token for same account ID
  Selector->>API: Request options from validated pod
  API-->>Selector: Return bounded results
Loading

Reviews (6): Last reviewed commit: "test(eloqua): harden selector hydration" | Re-trigger Greptile

Comment thread apps/sim/lib/auth/connectors/providers.ts
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 64 files

Re-trigger cubic

Comment thread apps/sim/lib/auth/connectors/providers.ts
Comment thread apps/sim/tools/eloqua/create_contact_import.ts
Comment thread apps/sim/lib/selectors/server/providers/eloqua.ts
Comment thread apps/sim/lib/integrations/icon-mapping.ts
Comment thread apps/sim/blocks/blocks/eloqua.ts Outdated
Comment thread apps/sim/blocks/blocks/eloqua.ts Outdated
Comment thread apps/sim/tools/eloqua/list_accounts.ts Outdated
Comment thread apps/sim/lib/selectors/server/providers/eloqua.ts Outdated
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 64 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

2 issues found across 64 files

Confidence score: 3/5

  • apps/sim/lib/selectors/server/providers/eloqua.ts can return a valid but different provider ID from the detail response, causing hydration to associate data with the wrong selector; validate parsed.data.id === id and preserve the requested id.
  • apps/sim/lib/selectors/server/providers/eloqua.test.ts does not verify caller cancellation, leaving abort-handling regressions undetected; make the mocked fetch wait for its signal, abort after execution starts, and assert rejection.
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="apps/sim/lib/selectors/server/providers/eloqua.test.ts">

<violation number="1" location="apps/sim/lib/selectors/server/providers/eloqua.test.ts:206">
P2: This test does not exercise caller cancellation despite claiming to forward it. Make the mocked fetch wait for its received signal to abort, abort the controller after execution starts, and assert the selector rejects with `AbortError`.</violation>
</file>

<file name="apps/sim/lib/selectors/server/providers/eloqua.ts">

<violation number="1" location="apps/sim/lib/selectors/server/providers/eloqua.ts:173">
P2: When the detail response contains a valid but different `id`, this returns that provider ID instead of the requested selector ID. Validate `parsed.data.id === id` and preserve `id` in the result so detail hydration cannot change the value used by the tool.

(Based on your team's feedback about preserving requested numeric selector IDs.)</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/lib/selectors/server/providers/eloqua.test.ts Outdated
Comment thread apps/sim/lib/selectors/server/providers/eloqua.ts Outdated
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 64 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Re-trigger cubic

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