[Integration][Servicenow] Servicenow selector propagation#2994
[Integration][Servicenow] Servicenow selector propagation#2994melodyogonna wants to merge 11 commits intomainfrom
Conversation
Review Summary by QodoFix selector and kind propagation for ServiceNow resources WalkthroughsDescription• Add selector and kind propagation for ServiceNow resources • Create resource-specific config classes with typed kind fields • Support custom resource kinds via allow_custom_kinds flag • Improve API query parameter documentation with titles Diagramflowchart LR
A["Generic ResourceConfig"] -->|"Replace with typed configs"| B["IncidentResourceConfig"]
A -->|"Replace with typed configs"| C["UserGroupResourceConfig"]
A -->|"Replace with typed configs"| D["ServiceCatalogResourceConfig"]
A -->|"Replace with typed configs"| E["VulnerabilityResourceConfig"]
A -->|"Replace with typed configs"| F["ReleaseProjectResourceConfig"]
A -->|"Support custom kinds"| G["CustomResource"]
B -->|"Enable propagation"| H["ResourceSelector with APIQueryParams"]
C -->|"Enable propagation"| H
D -->|"Enable propagation"| H
E -->|"Enable propagation"| H
F -->|"Enable propagation"| H
G -->|"Enable propagation"| H
File Changes1. integrations/servicenow/integration.py
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
Pull request overview
This PR updates the ServiceNow integration’s configuration models to better propagate kind and selector-related configuration into the resync flow.
Changes:
- Bumped ServiceNow integration version to
0.3.34and added a changelog entry. - Refactored ServiceNow config models into per-kind
ResourceConfigsubclasses and introduced aResourceSelectorwithapiQueryParams. - Updated resync logic to read selector config directly from
event.resource_config.selector.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| integrations/servicenow/pyproject.toml | Version bump to 0.3.34. |
| integrations/servicenow/main.py | Reads ResourceSelector from the current resource config to build API query params for resync. |
| integrations/servicenow/integration.py | Adds typed ResourceSelector + per-kind resource config classes; enables custom kinds. |
| integrations/servicenow/CHANGELOG.md | Release note for 0.3.34 describing selector/kind propagation fix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
eriport
left a comment
There was a problem hiding this comment.
looks good to me, one small comment only 🙏
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
raskinmaya
left a comment
There was a problem hiding this comment.
Please enable formMappingEnabled in spec.yaml to prevent another version bump
Description
What - Selector and Kind propagation for service now
Why -
How -
Type of change
Please leave one option from the following and delete the rest:
All tests should be run against the port production environment(using a testing org).
Core testing checklist
Integration testing checklist
examplesfolder in the integration directory.Preflight checklist
Screenshots
Include screenshots from your environment showing how the resources of the integration will look.
API Documentation
Provide links to the API documentation used for this integration.