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

feat: Adding a new controller for Metametrics Data Deletion #24503

Merged
merged 51 commits into from
Sep 16, 2024

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    5dce95e View commit details
    Browse the repository at this point in the history
  2. adding env variable

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    e1200ab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e175f0c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eaba4e5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    666b723 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    74b4720 View commit details
    Browse the repository at this point in the history
  7. updating setupsentry

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f0c988a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9dd231d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a9dba40 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7bfb0b8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a60c9c5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    aa59115 View commit details
    Browse the repository at this point in the history
  13. removing the return

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    850fd00 View commit details
    Browse the repository at this point in the history
  14. updating the controller pattern, renaming the env variable, updating …

    …some state files to fix circle ci failure'
    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    ac041f5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f01ec84 View commit details
    Browse the repository at this point in the history
  16. fixing the actions

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    63ae627 View commit details
    Browse the repository at this point in the history
  17. lint fix

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    eb45e7b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    dda5a2b View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    b0bd00d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    9109601 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    7c8ed9d View commit details
    Browse the repository at this point in the history
  22. fixing rebase conflict

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    5aeb0c2 View commit details
    Browse the repository at this point in the history
  23. Add additional data deletion service configuration options (#24806)

    <!--
    Please submit this PR as a draft initially.
    Do not mark it as "Ready for review" until the template has been
    completely filled out, and PR status checks have passed at least once.
    -->
    
    ## **Description**
    
    The `circuitBreakDuration`, `degradedThreshold`, and `timeout` are now
    configurable for the `DataDeletionService`. This configuration is relied
    upon in the unit tests, to be added in a later PR.
    
    [![Open in GitHub
    Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/24806?quickstart=1)
    
    ## **Related issues**
    
    This is an improvement for the PR #24503
    
    ## **Manual testing steps**
    
    N/A
    
    ## **Screenshots/Recordings**
    
    N/A
    
    ## **Pre-merge author checklist**
    
    - [x] I’ve followed [MetaMask Coding
    Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
    - [x] I've completed the PR template to the best of my ability
    - [x] I’ve included tests if applicable
    - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
    if applicable
    - [x] I’ve applied the right labels on the PR (see [labeling
    guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
    Not required for external contributors.
    
    ## **Pre-merge reviewer checklist**
    
    - [ ] I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
    - [ ] I confirm that this PR addresses all acceptance criteria described
    in the ticket it closes and includes the necessary testing evidence such
    as recordings and or screenshots.
    Gudahtt authored and NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    c92183b View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    14b8df0 View commit details
    Browse the repository at this point in the history
  25. refactor: Create dedicated services directory (#24863)

    <!--
    Please submit this PR as a draft initially.
    Do not mark it as "Ready for review" until the template has been
    completely filled out, and PR status checks have passed at least once.
    -->
    
    The `DataDeletionService` has been moved to a `services` directory,
    independent of controllers. This was done to reinforce that services are
    independent of controllers, and can be used outside of them.
    
    [![Open in GitHub
    Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/24863?quickstart=1)
    
    This is an improvement for the PR
    #24503
    
    N/A
    
    N/A
    
    - [x] I’ve followed [MetaMask Coding
    Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
    - [x] I've completed the PR template to the best of my ability
    - [x] I’ve included tests if applicable
    - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
    if applicable
    - [x] I’ve applied the right labels on the PR (see [labeling
    guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
    Not required for external contributors.
    
    - [ ] I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
    - [ ] I confirm that this PR addresses all acceptance criteria described
    in the ticket it closes and includes the necessary testing evidence such
    as recordings and or screenshots.
    Gudahtt authored and NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    bcbf1c6 View commit details
    Browse the repository at this point in the history
  26. refactor: Decouple the data deletion controller (#24870)

    <!--
    Please submit this PR as a draft initially.
    Do not mark it as "Ready for review" until the template has been
    completely filled out, and PR status checks have passed at least once.
    -->
    
    ## **Description**
    
    The `DataDeletionController` has been decoupled from the
    `MetaMetricsController` by updating the constructor parameters to expect
    just a function for getting the MetaMetrics ID, rather than the entire
    `MetaMetricsController` state. This vastly simplifies the API surface,
    making it easier to audit and test. It also prevents the
    `DataDeletionController` from having the capability to make changes to
    the `MetaMetricsController` state.
    
    [![Open in GitHub
    Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/24870?quickstart=1)
    
    ## **Related issues**
    
    This is an improvement for #24503
    
    ## **Manual testing steps**
    
    N/A
    
    ## **Screenshots/Recordings**
    
    N/A
    
    ## **Pre-merge author checklist**
    
    - [x] I’ve followed [MetaMask Coding
    Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
    - [x] I've completed the PR template to the best of my ability
    - [x] I’ve included tests if applicable
    - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
    if applicable
    - [x] I’ve applied the right labels on the PR (see [labeling
    guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
    Not required for external contributors.
    
    ## **Pre-merge reviewer checklist**
    
    - [ ] I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
    - [ ] I confirm that this PR addresses all acceptance criteria described
    in the ticket it closes and includes the necessary testing evidence such
    as recordings and or screenshots.
    Gudahtt authored and NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    fb49511 View commit details
    Browse the repository at this point in the history
  27. test: Add a MetaMetricsDataDeletionController test (#24879)

    <!--
    Please submit this PR as a draft initially.
    Do not mark it as "Ready for review" until the template has been
    completely filled out, and PR status checks have passed at least once.
    -->
    
    A single test has been added, along with a helper setup function that is
    designed to be used for further unit tests as well.
    
    [![Open in GitHub
    Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/24879?quickstart=1)
    
    This is an improvement for the PR
    #24503
    
    N/A
    
    N/A
    
    - [x] I’ve followed [MetaMask Coding
    Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
    - [x] I've completed the PR template to the best of my ability
    - [x] I’ve included tests if applicable
    - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
    if applicable
    - [x] I’ve applied the right labels on the PR (see [labeling
    guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
    Not required for external contributors.
    
    - [ ] I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
    - [ ] I confirm that this PR addresses all acceptance criteria described
    in the ticket it closes and includes the necessary testing evidence such
    as recordings and or screenshots.
    Gudahtt authored and NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    19f8fc2 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    8fdadd1 View commit details
    Browse the repository at this point in the history
  29. Add tests for createDataDeletionRegulationTask (#24816)

    Add unit tests for the `createDataDeletionRegulationTask` method of
    `DataDeletionService`.
    
    One of the two service methods is now fully tested. The remaining method
    will be tested in a later PR.
    
    [![Open in GitHub
    Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/24816?quickstart=1)
    
    This is an improvement for the PR #24503
    
    N/A
    
    N/A
    
    - [x] I’ve followed [MetaMask Coding
    Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
    - [ ] I've completed the PR template to the best of my ability
    - [ ] I’ve included tests if applicable
    - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
    if applicable
    - [ ] I’ve applied the right labels on the PR (see [labeling
    guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
    Not required for external contributors.
    
    - [ ] I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
    - [ ] I confirm that this PR addresses all acceptance criteria described
    in the ticket it closes and includes the necessary testing evidence such
    as recordings and or screenshots.
    
    ---------
    
    Co-authored-by: Niranjana Binoy <[email protected]>
    Gudahtt and NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    f6ff9a6 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    6f8ba43 View commit details
    Browse the repository at this point in the history
  31. fixing lint error

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    3831b9c View commit details
    Browse the repository at this point in the history
  32. fixing rebase errors

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    bc25613 View commit details
    Browse the repository at this point in the history
  33. rebase fix

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    2273c5f View commit details
    Browse the repository at this point in the history
  34. fixing lint error

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    330313e View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    cc9a5ee View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    5e02705 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    31b3b66 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    102b024 View commit details
    Browse the repository at this point in the history
  39. fixing e2e failures

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    5fa9f65 View commit details
    Browse the repository at this point in the history
  40. removed the setHasMetaMetricsDataRecorded instead update the variable…

    … while creating delete regulation
    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    631a80d View commit details
    Browse the repository at this point in the history
  41. fixing e2e failure

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    3a9be3b View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    d03f030 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    2148e37 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    e7e6dcf View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    98cefc6 View commit details
    Browse the repository at this point in the history
  46. fixing error.spec

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    cc92dee View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    12db029 View commit details
    Browse the repository at this point in the history
  48. updating lavamoat

    NiranjanaBinoy committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    d5f2d75 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    6a77df8 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    28e4eec View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    886abe4 View commit details
    Browse the repository at this point in the history