Skip to content

Conversation

@oioki
Copy link
Member

@oioki oioki commented May 5, 2025

Unlike integrations, plugins (legacy integrations) have project level access. This PR adjusts UI to reflect that considering team level roles as well.

Affects two views:

This is not a security fix but a frontend bug fix.

Example

A member has these team-level roles:
image

projectPlugins

Before. There is no link on "Configure plugin".
image
After. Team contributor has read project-level access to python-flask project, hence "View plugin":
image

pluginDetailedView

Before. Both "Configure" button links are unavailable:
image

After. "Configure" is shown as the user has write permissions on go project, and "View" because of the read permissions on python-flask project.
image

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 5, 2025
@oioki oioki requested review from a team and removed request for a team May 5, 2025 07:35
@oioki oioki merged commit 2afefea into master May 5, 2025
44 checks passed
@oioki oioki deleted the fix/legacy-integrations-configure-and-view branch May 5, 2025 16:33
andrewshie-sentry pushed a commit that referenced this pull request May 12, 2025
…ct access (#90881)

Unlike integrations, plugins (legacy integrations) have project level
access. This PR adjusts UI to reflect that considering team level roles
as well.

Affects two views:
- projectPlugins:
http://localhost:8000/settings/abc/projects/python-flask/plugins/
- pluginDetailedView:
http://localhost:8000/settings/abc/plugins/redmine/?tab=configurations

This is not a security fix but a frontend bug fix.

# Example
A member has these team-level roles:
<img width="656" alt="image"
src="https://github.com/user-attachments/assets/b2f439d4-c51d-4b7b-a7a2-342fb480cfd1"
/>

## projectPlugins
**Before.** There is no link on "Configure plugin".
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/1abfb051-4cea-4b6e-a272-fe2c579bf554"
/>
**After.** Team contributor has read project-level access to
`python-flask` project, hence "View plugin":
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/82be309f-6d12-4731-a81b-65a7cfdadfee"
/>

## pluginDetailedView
**Before.** Both "Configure" button links are unavailable:
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/171d1f33-d919-48c8-9086-68e74713a12e"
/>

**After.** "Configure" is shown as the user has write permissions on
`go` project, and "View" because of the read permissions on
`python-flask` project.
<img width="897" alt="image"
src="https://github.com/user-attachments/assets/5417cdae-562a-4d2c-93f7-9c5dde45594d"
/>
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 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