Conversation
🔍 Preview links for changed docs |
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Show resolved
Hide resolved
a8871a9 to
e86e482
Compare
02979d4 to
11a5ca7
Compare
seanstory
left a comment
There was a problem hiding this comment.
self review for AI consumption
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...m/plugins/shared/data_sources/server/sources/servicenow/workflows/get_knowledge_article.yaml
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/data_sources/server/sources/servicenow/workflows/search.yaml
Show resolved
Hide resolved
x-pack/platform/plugins/shared/data_sources/server/sources/servicenow/data_type.ts
Outdated
Show resolved
Hide resolved
|
buildkite test this |
florent-leborgne
left a comment
There was a problem hiding this comment.
Few comments/questions on the docs before I approve :)
docs/reference/connectors-kibana/_snippets/elastic-connectors-list.md
Outdated
Show resolved
Hide resolved
docs/reference/connectors-kibana/servicenow-search-action-type.md
Outdated
Show resolved
Hide resolved
docs/reference/connectors-kibana/servicenow-search-action-type.md
Outdated
Show resolved
Hide resolved
466f94c to
cd88dae
Compare
cd88dae to
53ec79e
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
History
|
erikcurrin-elastic
left a comment
There was a problem hiding this comment.
Some questions about handlers and correct formatting...
| @@ -0,0 +1,699 @@ | |||
| /* | |||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | |||
There was a problem hiding this comment.
This seems excessive for what is basically a bunch of mocks.
There was a problem hiding this comment.
Have a concrete suggestion/request? If AI is going to write and maintain an excessive number of tests, I'm not too bothered. I'd rather have the better coverage.
...rm/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.test.ts
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Show resolved
Hide resolved
...latform/packages/shared/kbn-connector-specs/src/specs/servicenow_search/servicenow_search.ts
Outdated
Show resolved
Hide resolved
53ec79e to
8fb3b65
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a ServiceNow data source connector for federated search capabilities, enabling users to search and retrieve records from ServiceNow instances including incidents, knowledge articles, change requests, and other record types.
Changes:
- Added a new ServiceNow Search connector with OAuth2 client credentials authentication
- Implemented comprehensive workflow definitions for search, retrieval, and data access operations
- Added full test coverage and documentation for the connector
Reviewed changes
Copilot reviewed 22 out of 23 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
servicenow_search.ts |
Core connector implementation with actions for search, record retrieval, listing, and attachment handling |
types.ts |
Zod schemas and TypeScript types for all connector action inputs |
servicenow_search.test.ts |
Comprehensive unit tests covering all connector actions and error cases |
workflows/*.yaml |
Workflow definitions for search, list, get, and attachment operations |
data_type.ts |
Data source configuration integrating the connector with the catalog |
servicenow-search-action-type.md |
User-facing documentation including setup instructions and API reference |
all_specs.ts, connector_icons_map.ts, index.ts |
Registration and integration of the new connector |
| }, | ||
| }, | ||
|
|
||
| listTables: { |
There was a problem hiding this comment.
Is there a way to describe a table? Or this method returns schema?
There was a problem hiding this comment.
This method doesn't include the schema. The developer instance of ServiceNow I'm using for testing has "normal" serviceNow tables, so the LLM has been able to just rely on its training to figure out which columns to use. But I think this is a good point, and wont' hold up in a production scenario. I'll add a tool for explicit schema discovery.
Iterate on ServiceNow data source Fix getComments filter logic Changes from node scripts/eslint_all_files --no-cache --fix
cc81f5b to
9d61084
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
History
|
Summary
Closes https://github.com/elastic/search-team/issues/12864
Adds a ServiceNow datasource
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelinesbackport:*labels.Release note
Adds a ServiceNow: Search connector, for searching across records and knowledge bases, retrieving contents, metadata, and comments.