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

feat: resolves #17 by adding support for providing additional url que… #25

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

sdewitt-newrelic
Copy link
Contributor

@sdewitt-newrelic sdewitt-newrelic commented Jan 10, 2024

…ry parameters on table API call

Description

Support additional query parameters for the ServiceNow Provider in entity tag sync. Adds support in the CMDB provider to recognize a new urlQueryParams attribute and will add all key+value pairs as query parameters on the SNOW table API call.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing
    functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • Manual testing run against a ServiceNow developer instance

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@sdewitt-newrelic sdewitt-newrelic self-assigned this Jan 10, 2024
@sdewitt-newrelic sdewitt-newrelic added the enhancement Feature Improvements label Jan 10, 2024
Comment on lines +393 to +398
The `query` configuration parameter should not be confused with the
`urlQueryParameters` configuration parameter. The former is used to specify an
[encoded query string](https://docs.servicenow.com/csh?topicname=c_EncodedQueryStrings&version=utah&pubname=utah-platform-user-interface)
used to filter the ServiceNow query result set. The latter is used to specify
additional query parameters to add to the ReST API URL generated to execute the
`table` API query.
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

@sdewitt-newrelic sdewitt-newrelic merged commit a683e85 into main Jan 10, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants