-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Connectors][ServiceNow] Update store links #117374
Conversation
Pinging @elastic/security-threat-hunting-cases (Team:Threat Hunting:Cases) |
@elasticmachine merge upstream |
@@ -26,13 +26,15 @@ export const snExternalServiceConfig: SNProductsConfig = { | |||
table: 'incident', | |||
useImportAPI: ENABLE_NEW_SN_ITSM_CONNECTOR, | |||
commentFieldKey: 'work_notes', | |||
appId: '7148dbc91bf1f450ced060a7234bcb88', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to create a constants for this ids? Is it any chance this id could be changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. When the applications are published the ids will stay the same forever. There is a very rare occasion where they can change on publish.
@@ -253,6 +253,7 @@ export interface SNProductsConfigValue { | |||
useImportAPI: boolean; | |||
importSetTable: string; | |||
commentFieldKey: string; | |||
appId?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder why this is optional...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I make it optional because ITOM does not have an application.
describe('ApplicationRequiredCallout', () => { | ||
test('it renders the callout', () => { | ||
render(<ApplicationRequiredCallout />); | ||
render(<ApplicationRequiredCallout appId={appId} />); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this ids is something which will never change, then I think the better approach to avoid passing this as props and just use a constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I pass the id as a pros is that the component is used by both the ITSM & SecOps so it is different for each connector. Do you want me to do something different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the explanation. It seems to be right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @cnasikas |
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Christos Nasikas <[email protected]>
Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Christos Nasikas <[email protected]>
Summary
This PR updates the ServiceNow Store URLs for the Elastic applications.
Checklist
Delete any items that are not applicable to this PR.
For maintainers