-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into enhance.algolia
- Loading branch information
Showing
11 changed files
with
58 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -752,11 +752,18 @@ const splitEventsForCreateUpdate = async (inputs, destination) => { | |
} | ||
const secondaryProp = primaryToSecondaryFields[identifierType]; | ||
if (secondaryProp) { | ||
// second condition is for secondary property for identifier type | ||
/* second condition is for secondary property for identifier type | ||
For example: | ||
update[secondaryProp] = "[email protected];[email protected];[email protected]" | ||
destinationExternalId = "[email protected]" | ||
So we are splitting all the emails in update[secondaryProp] into an array using ';' | ||
and then checking if array includes destinationExternalId | ||
*/ | ||
const filteredInfoForSecondaryProp = hsIdsToBeUpdated.filter((update) => | ||
update[secondaryProp] | ||
?.toString() | ||
.toLowerCase() | ||
.split(';') | ||
.includes(destinationExternalId.toString().toLowerCase()), | ||
); | ||
if (filteredInfoForSecondaryProp.length > 0) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ export const data = [ | |
FORM: {}, | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|
@@ -172,7 +172,7 @@ export const data = [ | |
FORM: {}, | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|
@@ -716,7 +716,7 @@ export const data = [ | |
body: { | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"}}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"}}") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|
@@ -827,7 +827,7 @@ export const data = [ | |
body: { | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, group_id: group_title item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"}}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"}}", group_id: "group_title") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|
@@ -1188,7 +1188,7 @@ export const data = [ | |
body: { | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, group_id: group_title item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"},\\"checkbox\\":{\\"checked\\":true},\\"numbers\\":\\"45\\",\\"text\\":\\"texting\\",\\"country\\":{\\"countryName\\":\\"Unites States\\",\\"countryCode\\":\\"US\\"},\\"location\\":{\\"address\\":\\"New York\\",\\"lat\\":\\"51.23\\",\\"lng\\":\\"35.3\\"},\\"phone\\":{\\"phone\\":\\"2626277272\\",\\"countryShortName\\":\\"US\\"},\\"rating\\":3,\\"link\\":{\\"url\\":\\"demo.com\\",\\"text\\":\\"websiteLink\\"},\\"long_text\\":{\\"text\\":\\"property description\\"},\\"world_clock\\":{\\"timezone\\":\\"America/New_York\\"}}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"},\\"checkbox\\":{\\"checked\\":true},\\"numbers\\":\\"45\\",\\"text\\":\\"texting\\",\\"country\\":{\\"countryName\\":\\"Unites States\\",\\"countryCode\\":\\"US\\"},\\"location\\":{\\"address\\":\\"New York\\",\\"lat\\":\\"51.23\\",\\"lng\\":\\"35.3\\"},\\"phone\\":{\\"phone\\":\\"2626277272\\",\\"countryShortName\\":\\"US\\"},\\"rating\\":3,\\"link\\":{\\"url\\":\\"demo.com\\",\\"text\\":\\"websiteLink\\"},\\"long_text\\":{\\"text\\":\\"property description\\"},\\"world_clock\\":{\\"timezone\\":\\"America/New_York\\"}}", group_id: "group_title") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ export const data = [ | |
FORM: {}, | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{}") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|
@@ -159,7 +159,7 @@ export const data = [ | |
body: { | ||
JSON: { | ||
query: | ||
'mutation { create_item (board_id: 339283933, group_id: group_title item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"}}") {id}}', | ||
'mutation { create_item (board_id: 339283933, item_name: "Task 1", column_values: "{\\"status\\":{\\"label\\":\\"Done\\"},\\"email\\":{\\"email\\":\\"[email protected]\\",\\"text\\":\\"emailId\\"}}", group_id: "group_title") {id}}', | ||
}, | ||
JSON_ARRAY: {}, | ||
XML: {}, | ||
|