-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(eco): Allow superusers to view integration configuration #102353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Currently blocks the link and redirects you away. Let me see it.
| integrationSlug={integrationSlug} | ||
| description={description} | ||
| alerts={alerts} | ||
| <SentryDocumentTitle title={integrationName}> |
There was a problem hiding this comment.
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
| const superuser = isActiveSuperuser(); | ||
| const canConfigure = | ||
| (hasAccess || superuser) && this.integrationStatus === 'active'; | ||
| const disableAction = !(hasAccess && this.integrationStatus === 'active'); |
There was a problem hiding this comment.
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
This reverts commit fcb2978.
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" />
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" />
Currently blocks the link and redirects you away. Let me see it. Adds missing document title on integration details page.