-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5dce95e - Browse repository at this point
Copy the full SHA 5dce95eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1200ab - Browse repository at this point
Copy the full SHA e1200abView commit details -
Configuration menu - View commit details
-
Copy full SHA for e175f0c - Browse repository at this point
Copy the full SHA e175f0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eaba4e5 - Browse repository at this point
Copy the full SHA eaba4e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 666b723 - Browse repository at this point
Copy the full SHA 666b723View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74b4720 - Browse repository at this point
Copy the full SHA 74b4720View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0c988a - Browse repository at this point
Copy the full SHA f0c988aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dd231d - Browse repository at this point
Copy the full SHA 9dd231dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9dba40 - Browse repository at this point
Copy the full SHA a9dba40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bfb0b8 - Browse repository at this point
Copy the full SHA 7bfb0b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a60c9c5 - Browse repository at this point
Copy the full SHA a60c9c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa59115 - Browse repository at this point
Copy the full SHA aa59115View commit details -
Configuration menu - View commit details
-
Copy full SHA for 850fd00 - Browse repository at this point
Copy the full SHA 850fd00View commit details -
updating the controller pattern, renaming the env variable, updating …
…some state files to fix circle ci failure'
Configuration menu - View commit details
-
Copy full SHA for ac041f5 - Browse repository at this point
Copy the full SHA ac041f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f01ec84 - Browse repository at this point
Copy the full SHA f01ec84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63ae627 - Browse repository at this point
Copy the full SHA 63ae627View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb45e7b - Browse repository at this point
Copy the full SHA eb45e7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for dda5a2b - Browse repository at this point
Copy the full SHA dda5a2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0bd00d - Browse repository at this point
Copy the full SHA b0bd00dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9109601 - Browse repository at this point
Copy the full SHA 9109601View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c8ed9d - Browse repository at this point
Copy the full SHA 7c8ed9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aeb0c2 - Browse repository at this point
Copy the full SHA 5aeb0c2View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for c92183b - Browse repository at this point
Copy the full SHA c92183bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14b8df0 - Browse repository at this point
Copy the full SHA 14b8df0View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for bcbf1c6 - Browse repository at this point
Copy the full SHA bcbf1c6View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for fb49511 - Browse repository at this point
Copy the full SHA fb49511View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 19f8fc2 - Browse repository at this point
Copy the full SHA 19f8fc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fdadd1 - Browse repository at this point
Copy the full SHA 8fdadd1View commit details -
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 <43930900+NiranjanaBinoy@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f6ff9a6 - Browse repository at this point
Copy the full SHA f6ff9a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f8ba43 - Browse repository at this point
Copy the full SHA 6f8ba43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3831b9c - Browse repository at this point
Copy the full SHA 3831b9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bc25613 - Browse repository at this point
Copy the full SHA bc25613View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2273c5f - Browse repository at this point
Copy the full SHA 2273c5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 330313e - Browse repository at this point
Copy the full SHA 330313eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc9a5ee - Browse repository at this point
Copy the full SHA cc9a5eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e02705 - Browse repository at this point
Copy the full SHA 5e02705View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31b3b66 - Browse repository at this point
Copy the full SHA 31b3b66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 102b024 - Browse repository at this point
Copy the full SHA 102b024View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fa9f65 - Browse repository at this point
Copy the full SHA 5fa9f65View commit details -
removed the setHasMetaMetricsDataRecorded instead update the variable…
… while creating delete regulation
Configuration menu - View commit details
-
Copy full SHA for 631a80d - Browse repository at this point
Copy the full SHA 631a80dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a9be3b - Browse repository at this point
Copy the full SHA 3a9be3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d03f030 - Browse repository at this point
Copy the full SHA d03f030View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2148e37 - Browse repository at this point
Copy the full SHA 2148e37View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7e6dcf - Browse repository at this point
Copy the full SHA e7e6dcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98cefc6 - Browse repository at this point
Copy the full SHA 98cefc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc92dee - Browse repository at this point
Copy the full SHA cc92deeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12db029 - Browse repository at this point
Copy the full SHA 12db029View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5f2d75 - Browse repository at this point
Copy the full SHA d5f2d75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a77df8 - Browse repository at this point
Copy the full SHA 6a77df8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28e4eec - Browse repository at this point
Copy the full SHA 28e4eecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 886abe4 - Browse repository at this point
Copy the full SHA 886abe4View commit details