Skip to content

Conversation

@scttcper
Copy link
Member

Currently blocks the link and redirects you away. Let me see it. Adds missing document title on integration details page.

image

Currently blocks the link and redirects you away. Let me see it.
@scttcper scttcper requested a review from a team October 29, 2025 20:25
integrationSlug={integrationSlug}
description={description}
alerts={alerts}
<SentryDocumentTitle title={integrationName}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all whitespace changes except for this

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 29, 2025
const superuser = isActiveSuperuser();
const canConfigure =
(hasAccess || superuser) && this.integrationStatus === 'active';
const disableAction = !(hasAccess && this.integrationStatus === 'active');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Superusers without org:integrations permission cannot upgrade integrations because disableAction incorrectly disables the "Update Now" button.
Severity: CRITICAL | Confidence: 1.00

🔍 Detailed Analysis

When a superuser without org:integrations permission attempts to upgrade an integration, the "Update Now" button is disabled. This occurs because the disableAction variable at line 121 does not account for superuser status, unlike the canConfigure variable used for the "Configure" button. This leads to an inconsistent user experience where a superuser can configure an integration but cannot update it.

💡 Suggested Fix

Update the disableAction variable at line 121 to include superuser status, similar to how canConfigure is defined, to allow superusers to upgrade integrations.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location:
static/app/views/settings/organizationIntegrations/installedIntegration.tsx#L121

Potential issue: When a superuser without `org:integrations` permission attempts to
upgrade an integration, the "Update Now" button is disabled. This occurs because the
`disableAction` variable at line 121 does not account for superuser status, unlike the
`canConfigure` variable used for the "Configure" button. This leads to an inconsistent
user experience where a superuser can configure an integration but cannot update it.

Did we get this right? 👍 / 👎 to inform future reviews.

displays integration activity information if the activity came from an activity
@scttcper scttcper requested a review from a team as a code owner October 29, 2025 21:27
@scttcper scttcper merged commit 20b3bcf into master Oct 29, 2025
46 checks passed
@scttcper scttcper deleted the scttcper/view-integration-config-superuser branch October 29, 2025 22:45
shashjar pushed a commit that referenced this pull request Nov 4, 2025
Currently blocks the link and redirects you away. Let me see it. Adds
missing document title on integration details page.

<img width="694" height="389" alt="image"
src="https://github.com/user-attachments/assets/9930d1c9-a2ea-454c-badf-b45ec89f89cf"
/>
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
Currently blocks the link and redirects you away. Let me see it. Adds
missing document title on integration details page.

<img width="694" height="389" alt="image"
src="https://github.com/user-attachments/assets/9930d1c9-a2ea-454c-badf-b45ec89f89cf"
/>
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants