Skip to content

improvement(integrations): show the sites an Atlassian account reaches - #9762

Merged
waleedlatif1 merged 2 commits into
stagingfrom
improvement/atlassian-account-sites
Nov 7, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
improvement/atlassian-account-sites

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Adding a site to an Atlassian login refreshes the existing account (fix(oauth): add Atlassian sites and Notion workspaces on the same login #9760), so the Integrations page looked unchanged after a successful add, and success had no message at all
  • Connecting Confluence or Jira now also reads accessible-resources and stores each site's name and origin in the account's provider metadata. The listing is best effort: a failed or malformed response never fails the connection, and Search still lists sites live on every request, so the stored list is display only
  • The account view lists its sites, the accounts list shows "Connected · 2 sites", and a successful connect or reconnect on the integration page shows "Confluence connected" / "Confluence reconnected"
  • No migration: provider_metadata is jsonb. Existing accounts show their sites after their next reconnect

Type of Change

  • Improvement

Testing

  • managed-oauth.test.ts: sites recorded from the grant with non-HTTPS and unnamed entries dropped; connecting still succeeds without a list after an error status, a network failure, or a malformed body. The recording case failed before the change
  • multiple-provider-accounts.integration.ts on real Postgres: the account read returns stored sites and ignores malformed entries. Failed before the change
  • 1204 unit tests across lib/auth/connectors, lib/credential-groups, app/o, lib/knowledge/application, lib/mothership/application
  • biome, check:comment-hygiene, check:utils, check:test-patterns, check:source-conventions, check:file-names, check:explicit-any, check:boundaries, check:client-boundary, check:api-validation:strict, check:schema-mock; drizzle-kit reports no schema change; type-check on pre-push
  • check:audits and the full suite 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)

Adding a site to an Atlassian login refreshes the existing account, so the page
looked unchanged after a successful add. Record the sites a grant reaches when
it connects, list them on the account, count them in the accounts list, and
confirm a successful connect or reconnect with a toast.
@vercel

vercel Bot commented Nov 7, 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 Nov 7, 2026 1:59am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no outstanding actionable findings.

Summary

Records Atlassian sites for display and shows connection success messages.

  • Jira and Confluence account records include the sites their Atlassian grant reaches.
  • Atlassian account details show sites and site counts.
  • Successful integration connections now show a confirmation.

Reviews (2) · Last reviewed commit: "fix(integrations): bound recorded sites ..." · 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 9 files

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

Turn on auto-fix | Re-trigger cubic

@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 7, 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 12 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

@waleedlatif1
waleedlatif1 merged commit dbdd3eb into staging Nov 7, 2026
79 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/atlassian-account-sites branch November 7, 2026 02:04

This branch was previously deployed

1 inactive deployment
Preview — 68bef599 Deployed Nov 7, 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