Skip to content
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

Align access level of Workspaces of type "prebuild" with Prebuilds #11138

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

geropl
Copy link
Member

@geropl geropl commented Jul 5, 2022

Description

Align access level of Workspaces of type "prebuild" with Prebuilds

ℹ️ It make sense to review this PR per commit:

  • the 1st commit fixes the test setup (and a bug)
  • the 2nd commit is the actual fix for this issue

Related Issue(s)

Fixes #11127

How to test

  • cd components/server
  • yarn test

Release Notes

align access level of Workspaces of type "prebuild" with Prebuilds

Documentation

Werft options:

  • /werft with-preview

@geropl geropl requested a review from a team July 5, 2022 08:25
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jul 5, 2022
resourceKind: "workspace",
workspaceType: "prebuild",
isOwner: false,
teamRole: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this case where the user is not the owner but also doesn't have a team?

Copy link
Member Author

@geropl geropl Jul 5, 2022

Choose a reason for hiding this comment

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

They have read access to the repository (repositoryAccess, see one line 👇 ).

That's the qualifier based on which we share access to prebuilds, and thus should be the same for workspaces (at least for those of type prebuild). 👍

This fixes the UI issue we see currently.

Copy link
Contributor

Choose a reason for hiding this comment

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

Aha, makes sense.

@roboquat roboquat merged commit 8ea4d4d into main Jul 5, 2022
@roboquat roboquat deleted the gpl/11127-wsperms branch July 5, 2022 09:50
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align permissions for Workspace-like GuardedResources so people can access prebuilds in all scenarios
3 participants