Skip to content

Commit

Permalink
chore: added statuscode stat for user deletion (#3108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-4116 authored Feb 21, 2024
1 parent 9a2ebd4 commit b77e173
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/v0/destinations/af/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const deleteUser = async (config, endpoint, body, identityType, identityValue) =
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/am/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/braze/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/clevertap/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/custify/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const userDeletionHandler = async (userAttributes, config) => {
processedDeletionRequest.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(processedDeletionRequest.status),
[tags.TAG_NAMES.STATUS]: processedDeletionRequest.status,
},
deletionResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/engage/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/intercom/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/iterable/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/mp/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const deleteProfile = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/sendgrid/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
1 change: 1 addition & 0 deletions src/v0/destinations/sprig/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const userDeletionHandler = async (userAttributes, config) => {
handledDelResponse.status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(handledDelResponse.status),
[tags.TAG_NAMES.STATUS]: handledDelResponse.status,
},
handledDelResponse,
);
Expand Down
3 changes: 2 additions & 1 deletion src/v0/util/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const TAG_NAMES = {
DESTINATION_ID: 'destinationId',
WORKSPACE_ID: 'workspaceId',
SOURCE_ID: 'sourceId',
STATUS: 'statusCode',
};

const MODULES = {
Expand Down Expand Up @@ -51,7 +52,7 @@ const ERROR_TYPES = {
OAUTH_SECRET: 'oAuthSecret',
UNSUPPORTED: 'unsupported',
REDIS: 'redis',
FILTERED: 'filtered'
FILTERED: 'filtered',
};

const METADATA = {
Expand Down

0 comments on commit b77e173

Please sign in to comment.