Skip to content
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

fix: user deletion module update #1750

Conversation

anantjain45823
Copy link
Contributor

@anantjain45823 anantjain45823 commented Jan 3, 2023

Description of the change

Fixing the user deletion module with mocking and refactoring where needed.
Changed the API for Intercom as per their documentation.
Supported Batching in Braze and Amplitude
Changed the Batching Method for Sendgrid using the URL Limit from Max ids allowed per batch since it's not given.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@anantjain45823 anantjain45823 requested a review from a team as a code owner January 3, 2023 14:19
@anantjain45823 anantjain45823 self-assigned this Jan 3, 2023
@anantjain45823 anantjain45823 changed the title Fix.user deletion handlers update test casesv2 fix: user deletion module update Jan 3, 2023
Copy link
Member

@saikumarrs saikumarrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review 1. Probably due to cherry-picking commits, some recent changes were overridden. Please take care of that.

src/v0/destinations/am/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/am/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/am/config.js Show resolved Hide resolved
src/v0/destinations/braze/config.js Outdated Show resolved Hide resolved
src/v0/destinations/clevertap/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/braze/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/braze/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/engage/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/intercom/deleteUsers.js Show resolved Hide resolved
src/v0/util/deleteUserUtils.js Outdated Show resolved Hide resolved
src/v0/util/deleteUserUtils.js Outdated Show resolved Hide resolved
src/v0/util/deleteUserUtils.js Outdated Show resolved Hide resolved
src/v0/destinations/sendgrid/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/sendgrid/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/sendgrid/config.js Outdated Show resolved Hide resolved
src/v0/destinations/sendgrid/config.js Show resolved Hide resolved
src/v0/destinations/sendgrid/config.js Outdated Show resolved Hide resolved
src/v0/destinations/mp/deleteUsers.js Outdated Show resolved Hide resolved
src/v0/destinations/mp/deleteUsers.js Outdated Show resolved Hide resolved
@saikumarrs saikumarrs merged commit 0b6fc61 into fix.user-deletion-handlers-v2 Jan 5, 2023
saikumarrs added a commit that referenced this pull request Jan 5, 2023
* fix: make all the destination user deletion handlers uniform

* fix: update the metadata fetch code to send to bugsnag

* fix: req metadata function in user deletion handler

* fix: correction for the MAX_BATCH_SIZE value (#1720)

Co-authored-by: Anant <[email protected]>

* fix: update to add robust error handling (#1719)

* fix: update deletion flows

* fix: update test cases

* fix: update test cases to remove the ones which require mocking

* fix: handled specific success sattus for braze and intercom

* fix: make config error for af as retryable

* fix: user deletion handlers test cases (#1723)

* feat: mock cases for clevertap

* feat: mock cases for engage

Co-authored-by: Anant <[email protected]>

* fix(destination): avoid creating parallel delete user requests in clevertap (#1751)

* fix: user deletion module update (#1750)

* chore: coverage and testing for mixpanel and engage

* fix: updated api and test coverage for intercom

* refactor: coverage and testing for sendgrid

* feat: Batch Support with testing and mocking for Amplitude

* feat: Batch Support with testing and mocking for Braze

* fix: conflicts

* fix: conflicts+1

* fix: conflicts and resolved comments

* fix: added comments

* fix: resolved Comments

* fix: resolved Conflicts

* fix: resolved Comments

* fix: resolved Comments+1

* fix: resolved Comments+2

Co-authored-by: Anant <[email protected]>

* refactor: af user deletion (#1735)

* refactor: af user deletion

* fix: conflicts

Co-authored-by: Anant <[email protected]>

Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: Anant Jain <[email protected]>
Co-authored-by: Anant <[email protected]>
@devops-github-rudderstack devops-github-rudderstack deleted the fix.user-deletion-handlers-updateTestCasesv2 branch April 6, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants