diff --git a/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts b/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts index f318c44ba2..326c49d471 100644 --- a/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/SentryIo/GenericFunctions.ts @@ -1,6 +1,6 @@ import { OptionsWithUri - } from 'request'; +} from 'request'; import { IExecuteFunctions, @@ -24,7 +24,7 @@ export async function sentryIoApiRequest(this: IHookFunctions | IExecuteFunction method, qs, body, - uri: uri ||`https://sentry.io${resource}`, + uri: uri || `https://sentry.io${resource}`, json: true, }; if (!Object.keys(body).length) { @@ -73,7 +73,7 @@ export async function sentryIoApiRequest(this: IHookFunctions | IExecuteFunction } } -export async function sentryApiRequestAllItems(this: IHookFunctions | IExecuteFunctions| ILoadOptionsFunctions, method: string, resource: string, body: any = {}, query: IDataObject = {}): Promise { // tslint:disable-line:no-any +export async function sentryApiRequestAllItems(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, method: string, resource: string, body: any = {}, query: IDataObject = {}): Promise { // tslint:disable-line:no-any const returnData: IDataObject[] = []; @@ -99,17 +99,17 @@ export async function sentryApiRequestAllItems(this: IHookFunctions | IExecuteFu } function getNext(link: string) { - if (link === undefined) { + if (link === undefined) { return; } const next = link.split(',')[1]; if (next.includes('rel="next"')) { - return next.split(';')[0].replace('<', '').replace('>','').trim(); + return next.split(';')[0].replace('<', '').replace('>', '').trim(); } } function hasMore(link: string) { - if (link === undefined) { + if (link === undefined) { return; } const next = link.split(',')[1]; diff --git a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts index 37d9abbe7e..8ac624f7d3 100644 --- a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts +++ b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts @@ -171,6 +171,13 @@ export const issueFields = [ }, }, options: [ + { + displayName: 'Query', + name: 'query', + type: 'string', + default: '', + description: 'An optional Sentry structured search query. If not provided an implied "is:unresolved" is assumed. Info here.', + }, { displayName: 'Stats Period', name: 'statsPeriod', diff --git a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts index 0e02a28522..f545683416 100644 --- a/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts +++ b/packages/nodes-base/nodes/SentryIo/SentryIo.node.ts @@ -56,14 +56,14 @@ export class SentryIo implements INodeType { description: INodeTypeDescription = { displayName: 'Sentry.io', name: 'sentryIo', - icon: 'file:sentryio.png', + icon: 'file:sentryio.svg', group: ['output'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', description: 'Consume Sentry.io API', defaults: { name: 'Sentry.io', - color: '#000000', + color: '#362d59', }, inputs: ['main'], outputs: ['main'], diff --git a/packages/nodes-base/nodes/SentryIo/sentryio.png b/packages/nodes-base/nodes/SentryIo/sentryio.png deleted file mode 100644 index a44ffc3ccd..0000000000 Binary files a/packages/nodes-base/nodes/SentryIo/sentryio.png and /dev/null differ diff --git a/packages/nodes-base/nodes/SentryIo/sentryio.svg b/packages/nodes-base/nodes/SentryIo/sentryio.svg new file mode 100644 index 0000000000..11d971474b --- /dev/null +++ b/packages/nodes-base/nodes/SentryIo/sentryio.svg @@ -0,0 +1 @@ + \ No newline at end of file