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

Mark Type struct field deprecated, for incident creation + management #392

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

theckman
Copy link
Collaborator

We should not expect consumers to set this value, as there is only a single
value that is valid (incident) based on how we use the API. As such, let's
deprecate the field and just set it in the methods that need it.

This also updates the tests to assert that we're automatically setting it
appropriately.

Closes #390

@theckman theckman added this to the v1.5.0 milestone Nov 14, 2021
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.

This makes sense. Again, thanks for the detailed comments! 👍

We should not expect consumers to set this value, as there is only a single
value that is valid (`incident`) based on how we use the API. As such, let's
deprecate the field and just set it in the methods that need it.

This also updates the tests to assert that we're automatically setting it
appropriately.

Closes #390
@theckman theckman merged commit 2f646c3 into master Nov 16, 2021
@theckman theckman deleted the issue_390 branch November 16, 2021 07:24
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.

When creating an incident, consumers shouldn't need to set the Type field
2 participants