From 94f79f9a61d4fc8aaa8d4d94fa498932eb0dd6e9 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Wed, 22 Dec 2021 22:22:13 +0100 Subject: [PATCH 1/4] Expose pleaseParse-functionality in n8n interface --- .../nodes/Raindrop/descriptions/BookmarkDescription.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts index fcbdc938b6..013d77c728 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts @@ -106,6 +106,13 @@ export const bookmarkFields: INodeProperties[] = [ default: false, description: 'Whether this bookmark is marked as favorite.', }, + { + displayName: 'Fetch Cover/Description/HTML for URL', + name: 'pleaseParse', + type: 'boolean', + default: false, + description: 'Whether Raindrop should load cover, description and HTML for the URL', + }, { displayName: 'Order', name: 'order', From 7843c59ab456f9d79f947a6bc0d3a6c1e78fcba4 Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Thu, 23 Dec 2021 17:45:30 +0100 Subject: [PATCH 2/4] Add functionality back to Node --- packages/nodes-base/nodes/Raindrop/Raindrop.node.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts b/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts index d208ef0093..c68816f2b3 100644 --- a/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts +++ b/packages/nodes-base/nodes/Raindrop/Raindrop.node.ts @@ -216,7 +216,10 @@ export class Raindrop implements INodeType { }; delete updateFields.collectionId; } - + if (updateFields.pleaseParse === true) { + body.pleaseParse = {}; + delete updateFields.pleaseParse; + } if (updateFields.tags) { body.tags = (updateFields.tags as string).split(',').map(tag => tag.trim()) as string[]; } From 88fd0078f5ad1bdacfa53edc1e97d146eb83d3dc Mon Sep 17 00:00:00 2001 From: Tim Adler Date: Thu, 23 Dec 2021 17:46:46 +0100 Subject: [PATCH 3/4] Expose functionality for update --- .../nodes/Raindrop/descriptions/BookmarkDescription.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts index 013d77c728..68f2156e43 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts @@ -301,6 +301,13 @@ export const bookmarkFields: INodeProperties[] = [ default: false, description: 'Whether this bookmark is marked as favorite.', }, + { + displayName: 'Please Parse', + name: 'pleaseParse', + type: 'boolean', + default: false, + description: 'Whether Raindrop should reload cover, description and HTML for the URL', + }, { displayName: 'Order', name: 'order', From 9493d72c2123fcc2216fc70fbc3c5a15d02b5a94 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 25 Dec 2021 11:35:53 +0100 Subject: [PATCH 4/4] :zap: Minor improvement --- .../descriptions/BookmarkDescription.ts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts index 68f2156e43..2bd1c614fc 100644 --- a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts +++ b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts @@ -106,13 +106,6 @@ export const bookmarkFields: INodeProperties[] = [ default: false, description: 'Whether this bookmark is marked as favorite.', }, - { - displayName: 'Fetch Cover/Description/HTML for URL', - name: 'pleaseParse', - type: 'boolean', - default: false, - description: 'Whether Raindrop should load cover, description and HTML for the URL', - }, { displayName: 'Order', name: 'order', @@ -120,6 +113,13 @@ export const bookmarkFields: INodeProperties[] = [ default: 0, description: 'Sort order for the bookmark. For example, to move it to first place, enter 0.', }, + { + displayName: 'Parse Metadata', + name: 'pleaseParse', + type: 'boolean', + default: false, + description: 'Whether Raindrop should load cover, description and HTML for the URL', + }, { displayName: 'Tags', name: 'tags', @@ -301,13 +301,6 @@ export const bookmarkFields: INodeProperties[] = [ default: false, description: 'Whether this bookmark is marked as favorite.', }, - { - displayName: 'Please Parse', - name: 'pleaseParse', - type: 'boolean', - default: false, - description: 'Whether Raindrop should reload cover, description and HTML for the URL', - }, { displayName: 'Order', name: 'order', @@ -315,6 +308,13 @@ export const bookmarkFields: INodeProperties[] = [ default: 0, description: 'For example if you want to move bookmark to the first place set this field to 0', }, + { + displayName: 'Parse Metadata', + name: 'pleaseParse', + type: 'boolean', + default: false, + description: 'Whether Raindrop should reload cover, description and HTML for the URL', + }, { displayName: 'Tags', name: 'tags',