-
Notifications
You must be signed in to change notification settings - Fork 244
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
fix: Support the From header when snoozing an incident #541
Conversation
9bce536
to
54f28f1
Compare
This is a breaking change but the snooze calls don't work currently, so they're already broken. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't mind addressing the tiny comments I would be happy to get this merged.
54f28f1
to
fdfbb0a
Compare
@ChezCrawford thanks - should be g2g now |
Ahhh. As I am coming out of my holiday-vacation-fog I am realizing that this is actually a breaking change for some users. The If we are going to make a breaking change here I am tempted to ask that we do this the right way by adding a |
I can make that change to use a struct. Yes, it's breaking but for me Snooze wasn't even working without this. |
You are likely using one of the two types of tokens I mentioned above. I did verify that it works correctly with User API Keys right now.
I think that is the best move here. If we are going to make a breaking change let's change it to the "correct" thing that will work properly for everyone. |
The API docs list From as a reqired header, but the From header is only required when using an Account API Key or an App OAuth Token. https://developer.pagerduty.com/api-reference/fc871396fb23f-snooze-an-incident#request-headers
fdfbb0a
to
430090a
Compare
Updated the PR. Thanks for helping get this merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this PR makes a breaking change in order to add support for the snooze incident API with Account API Keys and App Tokens.
The API docs list From as a required header.
https://developer.pagerduty.com/api-reference/fc871396fb23f-snooze-an-incident#request-headers