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

Alleviate storage limit issue (Internal Ticket) #2914

Closed
mobularay opened this issue Jul 19, 2021 · 2 comments · Fixed by #2972
Closed

Alleviate storage limit issue (Internal Ticket) #2914

mobularay opened this issue Jul 19, 2021 · 2 comments · Fixed by #2972
Assignees
Labels
storage limit this issue is prioritized Story in develop or in release type-bug Something isn't working

Comments

@mobularay
Copy link
Contributor

mobularay commented Jul 19, 2021

Description

In the mobile application we are starting to see a Storage Limit Error becoming a more frequent reported issue. This requires the user to setup their wallet each time this error is thrown. The evidence seems to suggest that since we are saving the entire redux state for the app and decrypting it upon login it opens up the potential for data corruption causing the error.

Focus:

  1. Store the opt-in to metrics in a different location to allow this issue to be logged.
  2. Limit the amount of user generated data that can be stored (e.g. Txs, NFTs). The extension only stores the latest 100 Txs across all accounts.

Technical Requirements

  • Pull at least the analytics field from redux persist into it's own key so that it's not nested under the root key. Hint: Look at the analytics reducer, that's where analytics is being set. This addresses focus number one.
  • Regarding limiting TXs, limit/truncate the incoming TXs count to 40. This addresses focus number two.
  • Will most likely need to update analytics reducer.
  • May have to update tests related to redux
  • Add to controller addTransaction() see extension reference

Acceptance Criteria

  • Ensure that the analytics field that controls MetaMetrics is stored outside of the root key in redux-persist.
  • Somehow emulate the corrupt storage scenario and verify that events are still being tracked
  • Ensure that the max number of TXs cached is 40.
  • Still be able to view transactions on different accounts

References

@mobularay mobularay added type-bug Something isn't working storage limit labels Jul 19, 2021
@Cal-L Cal-L changed the title Implement solution to the storage limit issue Alleviate storage limit issue (Internal Ticket) Jul 21, 2021
@sethkfman sethkfman self-assigned this Jul 27, 2021
@omnat omnat added the this issue is prioritized Story in develop or in release label Jul 28, 2021
@officialsirvic
Copy link

officialsirvic commented Aug 2, 2021

i am getting this error while trying to launch

Uncaught TypeError: r.browser.identity.onSignInChanged is undefined
ts moz-extension://b056142d-4c16-45f9-8e62-9dec64d118b4/extension.js:2
t moz-extension://b056142d-4c16-45f9-8e62-9dec64d118b4/extension.js:2
moz-extension://b056142d-4c16-45f9-8e62-9dec64d118b4/extension.js:2
moz-extension://b056142d-4c16-45f9-8e62-9dec64d118b4/extension.js:2

Error: Please use $(ref:runtime.getURL)

@sethkfman
Copy link
Contributor

@officialsirvic Are you observing this issue on the extension or mobile application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storage limit this issue is prioritized Story in develop or in release type-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants