Skip to content

fix(integrations): final review pass for the Atlassian and AWS sweeps - #9961

Merged
waleedlatif1 merged 5 commits into
stagingfrom
fix/integrations-final-pass
Nov 12, 2026
Merged

waleedlatif1 merged 5 commits into
stagingfrom
fix/integrations-final-pass

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Final-review follow-up for the Atlassian (#9950) and AWS (#9952) validation sweeps. An independent review of both merged diffs found no blockers. This PR applies the should-fix and nit findings. Everything changed here was added by those two PRs and isn't on main yet, so production behaviour is unaffected.

Atlassian

  • Jira search: the heavy per-issue fields fix(atlassian): validate Jira, Confluence, JSM, Bitbucket, Trello against vendor docs #9950 added (descriptionAdf, customFields, attachments, issuelinks, subtasks) are now opt-in through fields, so default searches don't carry every customfield_* into agent prompts. renderedDescription needs the renderedFields expansion. Every field that exists on main keeps its exact value.
  • Moved transformIssueData into tools/jira/utils.ts with a typed raw payload (no any), shared by retrieve and search.
  • JSM Assets AQL: a trailing order by is split only at parenthesis depth 0 (still honouring quotes and escapes), and a leading order by with a scope filter produces valid AQL.
  • JSM object types: if the /flat fallback itself fails, the result is the original empty list, so the fallback can't add a new failure mode. Aborts still propagate.
  • Confluence search and search-in-space send next=true with a cursor, as Confluence's own _links.next does.
  • Agent-call hardening:
    • Trello update accepts label/member IDs as an array or a comma-separated string.
    • A blank Jira parent is treated as unset.
    • A numeric Confluence parentCommentId no longer throws.
  • JSM types include renderedValue.

AWS

  • New toBooleanFromInput in @sim/utils/coerce replaces the two local copies in Secrets Manager and CloudFormation. The duplicates in google_docs/blocks/utils belong to the Workspace sweep and migrate separately.
  • The IAM tags schema moves into iam-shared, and the SES message-tag schema into ses-shared.
  • SES send tools accept emailTags as a JSON string from agent calls.
  • Secrets Manager names the field on invalid JSON.
  • IAM accepts JSON-array tag strings and skips null tag values.
  • Textract rejects a JSON-object query string instead of sending it as question text, and the size error no longer suggests Multi-Page mode for operations that lack it.

Type of Change

  • Bug fix
  • Code quality

Testing

  • New regression tests, each red on the pre-fix code:
    • JSM: AQL splitting and the flat fallback.
    • Trello: ID list input.
    • Jira: search heavy fields and blank parent.
    • Confluence: numeric comment id and next=true paging.
  • The transformIssueData move was checked for output equivalence on sample payloads.
  • vitest across the Atlassian and AWS tools, internal ops, block tests, tools/google_docs and packages/utils: 443 + 120 passed.
  • check-block-registry.ts origin/staging, check:tool-metadata, check:docs, check:integration-catalog, check:unused-exports, check:utils, check:test-patterns and biome pass. Type-check and the remaining audits run in CI.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • 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 Nov 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Nov 12, 2026 11:38pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues remain.

Summary

This PR hardens inputs across the Atlassian and AWS tools and shares repeated helpers and schemas.

  • Jira searches return heavy issue details only when callers ask for them.
  • JSM Assets keeps scoped queries valid and preserves empty fallback results.
  • Confluence search resumes pages with both the cursor and next=true.
  • Atlassian tools accept common agent-call forms for IDs and parent fields.
  • SES send tools accept message tags passed as a JSON string.
  • AWS tools accept more agent-friendly tag, boolean, and JSON inputs.
  • Textract rejects object-shaped query text and clarifies its size-limit guidance.

No new actionable issues were found. Tests were inspected but not run.

Reviews (3) · Last reviewed commit: "fix(textract): use isRecordLike for the ..." · Reviewed by 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 40 files

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

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/blocks/textract.ts Resolved
Comment thread apps/sim/tools/jira/retrieve.ts Resolved
Comment thread apps/sim/blocks/blocks/iam.ts Resolved
Comment thread apps/sim/tools/ses/utils.ts Resolved
Comment thread apps/sim/lib/internal/jsm/assets.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 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.

All reported issues were addressed across 43 files

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

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/blocks/iam.ts Resolved
Comment thread apps/sim/blocks/blocks/textract.ts Resolved
Make Jira search heavy fields (ADF description, custom fields, attachments,
links, subtasks) opt-in through fields, move transformIssueData into jira/utils,
keep AQL order by splitting at parenthesis depth 0, let the object-types /flat
fallback never add a failure, send next=true with Confluence search cursors, and
harden Trello ID lists, Jira parent, and Confluence comment ids for agent calls.
Share the optional-boolean parse through @sim/utils/coerce toBooleanFromInput,
the IAM tags schema through iam-shared, and the SES message-tag schema through
ses-shared. Accept SES email tags as a JSON string from agent calls, name the
field on Secrets Manager JSON errors, accept JSON-array IAM tag strings and skip
null tag values, and reject a JSON-object Textract query string.
Treat only a leading [ as a JSON Textract query list, reject JSON-array IAM tag
strings and SES email-tag strings that do not parse to valid entries, name
Secrets Manager tag JSON errors, restore the JSM list TSDoc placement, and
shrink the explicit-any baseline after the Jira mapper move.
@waleedlatif1
waleedlatif1 force-pushed the fix/integrations-final-pass branch from 5289f4a to fb29195 Compare November 12, 2026 23:34
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 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 43 files

Confidence score: 5/5

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

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

1 active deployment
Preview — fb291954 Deployed Nov 12, 2026 by vercel[bot]
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