Skip to content

Use new 'ROLE_of' helpers in all Workspaces domain code

MR: Pending

Description

Use new 'ROLE_of' helpers in all Workspaces domain code

The following discussion from !175486 (merged) should be addressed:

  • @pedropombeiro started a discussion: (+2 comments)

    suggestion: can we simplify this to:

        # create the minimum privileged user that should have the project and namespace
        # permissions to access the workspaces_agent_config.
        create(:user, developer_of: project.namespace)
      end
    
      let_it_be(:unauthorized_user) do
        # create the maximum privileged user that should NOT have the project and namespace
        # permissions to access the agent.
        create(:user, reporter_of: project.namespace)

Acceptance Criteria

TODO: Fill out (required)

  • [Describe what must be achieved to complete this issue.]
  • [Describe another requirement needed to complete this issue.]
  • [Add additional acceptance criteria as needed.]

Technical Requirements

TODO: Fill out or delete (optional) [If applicable, please list out any technical requirements for this feature/enhancement.]

Design Requirements

TODO: Fill out or delete (optional) [If applicable, please provide a link to the design specifications for this feature/enhancement.]

Impact Assessment

TODO: Fill out or delete (optional) [Please describe the impact this feature/enhancement will have on the user experience and/or the product as a whole.]

User Story

TODO: Fill out or delete (optional) [Provide a user story to illustrate the use case for this feature/enhancement. Include examples to help communicate the intended functionality.]