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

Use pointer to Priority so don't send an empty priority for incident #164

Conversation

atomicules
Copy link
Contributor

Due to the changes to the Incident struct the library now inadvertently
sends an empty priority to the API ("priority":{}) and for
ManageIncidents this results in a response of:

Priority id cannot be empty

To prevent sending an empty priority we can use a pointer to Priority.

Seems like a super simple fix for this - and as such I'm worried I've
missed something else.

Full discussion of this in this issue:

References: #135

Due to the changes to the Incident struct the library now inadvertently
sends an empty priority to the API (`"priority":{}`) and for
ManageIncidents this results in a response of:

    Priority id cannot be empty

To prevent sending an empty priority we can use a pointer to Priority.

Seems like a super simple fix for this - and as such I'm worried I've
missed something else.

Full discussion of this in this issue:

References: PagerDuty#135
@auhlig
Copy link

auhlig commented Aug 21, 2019

Thanks for picking this up 🎉

@atomicules atomicules changed the title Use pointer to Priority so don't send and empty priority for incident Use pointer to Priority so don't send an empty priority for incident Aug 27, 2019
@stmcallister
Copy link
Contributor

thank you for contributing this change!

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.

3 participants