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

Update extension_schema.go to accept a context.Context #289

Merged
merged 1 commit into from Mar 29, 2021

Conversation

theckman
Copy link
Collaborator

Updates #267

@theckman theckman added the undocumented feature This PR or issue is trying to make use of a feature not yet documented by PagerDuty label Feb 26, 2021
@theckman theckman added this to the v1.4.0 milestone Feb 26, 2021
type ListExtensionSchemaResponse struct {
APIListObject
ExtensionSchemas []ExtensionSchema `json:"extension_schemas"`
}

// ListExtensionSchemaOptions are the options to send with the
// ListExtensionSchema reques(s).
type ListExtensionSchemaOptions struct {
APIListObject
Query string `url:"query,omitempty"`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@stmcallister I don't see this field documented here. Does this look like a candidate for removal as part of 1.5, or should this remain?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Although, now that I look more maybe it's implicitly supported so that you can get the total count as part of the paginated response?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've reached out to our engineering team to see if we can document the query query string parameter.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@stmcallister since this something we can (and should) solve outside of this PR, are we good to merge this one to call the context.Context addition done?

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.

Looks good! 🎉

@stmcallister stmcallister merged commit 1b67a25 into master Mar 29, 2021
@theckman theckman deleted the ctx_extension_schema branch April 23, 2021 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
undocumented feature This PR or issue is trying to make use of a feature not yet documented by PagerDuty
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants