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

CLOUDP-70025: mongocli iam projects teams(s) update #404

Merged
merged 3 commits into from
Sep 2, 2020

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Sep 2, 2020

Proposed changes

Jira ticket: CLOUDP-70025

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

Atlas

./bin/mongocli iam project teams update 5f4f7e43a489de6dd3c0e463 --role GROUP_READ_ONLY,GROUP_OWNER -o json
[
  {
    "links": [
      {
        "rel": "self",
        "href": "https://cloud-dev.mongodb.com/api/atlas/v1.0/groups/5e4e593f70dfbf1010295836/teams/5f4f7e43a489de6dd3c0e463"
      }
    ],
    "roleNames": [
      "GROUP_OWNER",
      "GROUP_READ_ONLY"
    ],
    "teamId": "5f4f7e43a489de6dd3c0e463"
  }
]
./bin/mongocli iam project teams update 5f4f7e43a489de6dd3c0e463 --role GROUP_READ_ONLY,GROUP_OWNER
Team's roles updated.

OM

./bin/mongocli iam project teams update 5f4f7e950ed5b166b56b34aa --role GROUP_READ_ONLY,GROUP_OWNER -P ops -o json
[
  {
    "links": [
      {
        "rel": "self",
        "href": "http://localhost:9080/api/public/v1.0/groups/5f4f3c760ed5b166b56b02d3/teams/5f4f7e950ed5b166b56b34aa"
      }
    ],
    "roleNames": [
      "GROUP_OWNER",
      "GROUP_READ_ONLY"
    ],
    "teamId": "5f4f7e950ed5b166b56b34aa"
  }
]
./bin/mongocli iam project teams update 5f4f7e950ed5b166b56b34aa --role GROUP_READ_ONLY,GROUP_OWNER -P ops
Team's roles updated.

Screenshot 2020-09-02 at 16 38 09

@andreaangiolillo andreaangiolillo marked this pull request as ready for review September 2, 2020 14:39
Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

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

LGTM

@andreaangiolillo andreaangiolillo merged commit 1532f8a into master Sep 2, 2020
@andreaangiolillo andreaangiolillo deleted the CLOUDP-70025 branch September 2, 2020 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants