Skip to content

Conversation

zippolyte
Copy link
Contributor

Avoid consistency issues, due to replication delays, caused by calling the GET endpoint right after POST/PUT

@zippolyte zippolyte requested a review from a team as a code owner February 15, 2021 13:24
Copy link
Contributor

@therve therve left a comment

Choose a reason for hiding this comment

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

One small suggestion, otherwise looks great.

switch rolePerms := rolePermsI.(type) {
case []datadog.RelationshipToPermissionData:
for _, permI := range rolePerms {
perms = appendPerm(perms, &permI, permsIDToName)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can just pass permI.GetId(), this will simplify the code in appendPerm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, thanks for the suggestion

therve
therve previously approved these changes Feb 15, 2021
@zippolyte
Copy link
Contributor Author

/azp run

@zippolyte zippolyte enabled auto-merge (squash) February 15, 2021 15:59
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zippolyte
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zippolyte zippolyte merged commit 44af4c2 into master Feb 15, 2021
@zippolyte zippolyte deleted the hippo/rolesredo branch February 15, 2021 16:23
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.

2 participants