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

Add a new controller for MetaMetrics Data Deletion #24405

Open
NiranjanaBinoy opened this issue May 7, 2024 · 0 comments · May be fixed by #24503
Open

Add a new controller for MetaMetrics Data Deletion #24405

NiranjanaBinoy opened this issue May 7, 2024 · 0 comments · May be fixed by #24503
Assignees
Labels

Comments

@NiranjanaBinoy
Copy link
Contributor

NiranjanaBinoy commented May 7, 2024

Part of https://github.com/MetaMask/MetaMask-planning/issues/880

The controller will have API calls to create the DELETE_ONLY regulation based on USER_ID and check the status of an existing regulation or current regulation based on regulation ID.

Creating data deletion regulation:

  • Api call to create delete regulation
  • POST method
  • Regulationtype: DELETE_ONLY
  • subjectType: USER_ID
  • subjectId: metametricsId
  • Returns => Success or Error
  • Save the regulation id and creation date to state

Get the status of the existing regulation:

  • Api call to get the details of the existing regulation using regulation id from state.
  • GET method
  • Parameter: existing regulation id
  • Returns =>
{
  "data": {
    "regulation": {
      "id": "1qJkfE1tpwvQcklImGksLN629wn",
      "workspaceId": "9aQ1Lj62S4bomZKLF4DPqW",
      "overallStatus": "FINISHED",
      "finishedAt": "2022-03-08T00:39:36.546951Z",
      "createdAt": "2022-03-08T00:39:36.546951Z",
      "streamStatus": []
    }
  }
}
  • In our context, we will be using only overallStatus which will be one of the following FAILED, FINISHED, INITIALIZED, INVALID, NOT_SUPPORTED, PARTIAL_SUCCESS, RUNNING, UNKNOWN
@metamaskbot metamaskbot added the INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. label May 7, 2024
@NiranjanaBinoy NiranjanaBinoy removed the INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. label May 8, 2024
@metamaskbot metamaskbot added the INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. label May 13, 2024
@NiranjanaBinoy NiranjanaBinoy removed the INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. label May 13, 2024
@NiranjanaBinoy NiranjanaBinoy changed the title Add a new controller for MetaMetrics Data Deletion feat : Add a new controller for MetaMetrics Data Deletion May 13, 2024
@NiranjanaBinoy NiranjanaBinoy changed the title feat : Add a new controller for MetaMetrics Data Deletion Add a new controller for MetaMetrics Data Deletion May 13, 2024
@metamaskbot metamaskbot added the INVALID-ISSUE-TEMPLATE Issue's body doesn't match any issue template. label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants