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(NOTIFY-998): add logic around the new get all feature entries endpoint #4626

Merged
merged 9 commits into from
Sep 2, 2024

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Aug 20, 2024

Explanation

This PR adds support for the GET /api/v1/userstorage/:feature endpoint, both for the SDK and UserStorageController.

References

NOTIFY-998

NOTE: this PR is the base on which #4629 is built upon. You can skip merging this one if you merge #4629.

Changelog

@metamask/profile-sync-controller

  • ADDED: added SDK and controller support for the new GET /api/v1/userstorage/:feature endpoint.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@mathieuartu mathieuartu added the team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications label Aug 20, 2024
@mathieuartu mathieuartu force-pushed the notify_998_get_all_feature_entries branch from 2da56b7 to d776b67 Compare August 21, 2024 09:59
@mathieuartu mathieuartu changed the title feat: add logic around the new get all feature entries endpoint feat(NOTIFY-998): add logic around the new get all feature entries endpoint Aug 23, 2024
@mathieuartu mathieuartu marked this pull request as ready for review September 2, 2024 11:49
@mathieuartu mathieuartu requested a review from a team as a code owner September 2, 2024 11:49
return [];
}

return encryption.decryptString(entry.Data, opts.storageKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

Note - this is good.

Heads up, depending on mobile investigations, encryption and decryption may become async (meaning that we'll may need to await these)

@mathieuartu mathieuartu merged commit b43ae02 into main Sep 2, 2024
116 checks passed
@mathieuartu mathieuartu deleted the notify_998_get_all_feature_entries branch September 2, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants