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

service_dependency: fix (dis-)associate operations #254

Merged
merged 1 commit into from Dec 11, 2020

Conversation

GiedriusS
Copy link
Contributor

@GiedriusS GiedriusS commented Dec 8, 2020

Fix the (dis-)associate functions by not doing the hocus pocus with
map[string].... relationships already exists due to the JSON tag in
the struct. Without this, the payload looks like:

{"relationships": {"relationships": [...] } }

And PD API returns "invalid request". Tested locally that it works as
expected with these changes.

Fix the (dis-)associate functions by now doing the hocus pocus with
`map[string]...`. `relationships` already exists due to the JSON tag in
the struct. Without this, the payload looks like:

```json
{"relationships": {"relationships": [...] } }
```

And PD API returns "invalid request". Tested locally that it works as
expected with these changes.
Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

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

Another great catch. Thank you!! 🎉

@stmcallister stmcallister merged commit 198f070 into PagerDuty:master Dec 11, 2020
@theckman theckman added this to the v1.4.0 milestone Mar 10, 2021
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

3 participants