这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@srinandan
Copy link
Collaborator

No description provided.

@srinandan srinandan requested a review from kurtkanaskie August 9, 2023 22:01
@srinandan srinandan self-assigned this Aug 9, 2023
@srinandan srinandan added the enhancement New feature or request label Aug 9, 2023
@srinandan srinandan linked an issue Aug 9, 2023 that may be closed by this pull request
Copy link
Collaborator

@kurtkanaskie kurtkanaskie left a comment

Choose a reason for hiding this comment

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

Everything works OK, except for update

go run main.go -t $TOKEN appgroups update --org=$ORG --name=apigeecli-app-group --attrs='company=Acme,org=crm' --devs='apigeecli1@google.com=admin,apigeecli2@google.com=admin'
{"name":"apigeecli-app-group","status":"active","attributes":[{},{"name":"org","value":"sales"},{"name":"__apigee_reserved__developer_details","value":"W3sgImRldmVsb3BlcklkIjoiYXBpZ2VlY2xpMUBnb29nbGUuY29tIiwgInJvbGVzIjpbICJhZG1pbiIgXSB9LHsgImRldmVsb3BlcklkIjoiYXBpZ2VlY2xpMkBnb29nbGUuY29tIiwgInJvbGVzIjpbICJhZG1pbiIgXSB9XQ=="}]}
exit status 1

Formatted:

{
  "name": "apigeecli-app-group",
  "status": "active",
  "attributes": [{}, {}, {
    "name": "company",
    "value": "Acme"
  }, {
    "name": "org",
    "value": "crm"
  }, {
    "name": "__apigee_reserved__developer_details",
    "value": "W3sgImRldmVsb3BlcklkIjoiYXBpZ2VlY2xpMUBnb29nbGUuY29tIiwgInJvbGVzIjpbICJhZG1pbiIgXSB9LHsgImRldmVsb3BlcklkIjoiYXBpZ2VlY2xpMkBnb29nbGUuY29tIiwgInJvbGVzIjpbICJhZG1pbiIgXSB9XQ=="
  }]
}

Expected: Overwrite __apigee_reserved__developer_details and all attributes
Actual: Response not formatted, response looks OK, overwrites all attributes, but does not update - exit status 1

@srinandan srinandan requested a review from kurtkanaskie August 10, 2023 16:35
Copy link
Collaborator

@kurtkanaskie kurtkanaskie left a comment

Choose a reason for hiding this comment

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

LGTM!

@srinandan srinandan merged commit 5845d74 into main Aug 10, 2023
@srinandan srinandan deleted the appgroup branch August 10, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the user experience for appgroup developer details

3 participants