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

Create Space Application Supporter role in ccdb and allow role to be assigned to a user #2210

Closed
MerricdeLauney opened this issue Apr 20, 2021 · 0 comments · Fixed by #2251
Closed
Labels
space-application-supporter https://github.com/cloudfoundry/cfar-proposals/issues/22

Comments

@MerricdeLauney
Copy link
Member

MerricdeLauney commented Apr 20, 2021

Issue

Create Space Application Supporter role in ccdb and allow role to be assigned to a user.

Context

We are introducing a new role and we want to make sure it has the right access.

Expected result

As admin or space manager
I want to assign the role Space Application Supporter to a user in my space
So that the user and space guid association is stored in a ccdb table titled to explain the relationship.

Acceptance Criteria

Scenario:
Given I have a user with guid "user_guid" who has the role `organization_user` in an org containing a space with the guid "space_guid"
When I run 
cf curl v3/roles  -d '{
      "type": "space_application_supporter",
      "relationships": {
        "user": {
          "data": {
            "guid": "user-guid"
          }
        },
        "space": {
          "data": {
            "guid": "space-guid"
          }
        }
      }
    }'
Then I get a 201 response with a role returned and can see a table with a relevant title has a row populated with the user and space guid.

Dev Notes:
This should require a migration. Be careful naming the new table and try to match existing naming conventions very closely

Documentation

When I browse to the valid role types in v3 docs I see the new role type listed with an explanation that it is not to be used and is not fully implemented.

@MerricdeLauney MerricdeLauney added the space-application-supporter https://github.com/cloudfoundry/cfar-proposals/issues/22 label Apr 20, 2021
@MerricdeLauney MerricdeLauney linked a pull request Apr 30, 2021 that will close this issue
5 tasks
weymanf added a commit that referenced this issue May 12, 2021
space_application_supporter

* #2210

Co-authored-by: Weyman Fung <[email protected]>
Co-authored-by: Mona Mohebbi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
space-application-supporter https://github.com/cloudfoundry/cfar-proposals/issues/22
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants