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

fix: Reuse mmkv instance once created #11139

Merged
merged 18 commits into from
Oct 9, 2024
Merged

fix: Reuse mmkv instance once created #11139

merged 18 commits into from
Oct 9, 2024

Conversation

tommasini
Copy link
Contributor

@tommasini tommasini commented Sep 10, 2024

Description

We should reuse MMKV instance instead of creating a new one each time we want to access storage.

Related issues

N/A

Manual testing steps

  1. Fresh install the app
  2. Press import with SRP
  3. Accept share data and terms of use
  4. kill the app
  5. Open it
  6. go to import with SRP again
  7. Should not show the same modals (This means it's being saved and read under MMKV)

Screenshots/Recordings

Screen.Recording.2024-10-09.at.11.12.46.mov

Before

N/A

After

N/A

Pre-merge author checklist

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.

@tommasini tommasini added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) team-mobile-platform Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 10, 2024
@tommasini tommasini requested a review from a team as a code owner September 10, 2024 14:13
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Contributor

github-actions bot commented Sep 10, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 8731e04
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/c669e910-54b5-4466-88b8-e31c53c1d016

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@tommasini tommasini added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 10, 2024
@tommasini tommasini added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 8, 2024
Copy link
Contributor

github-actions bot commented Oct 8, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 0ad4386
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/de487618-9e7e-4132-9d3c-1b35f2f41ca2

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 54.17%. Comparing base (9e3d268) to head (a322f83).

Files with missing lines Patch % Lines
app/store/storage-wrapper.ts 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11139      +/-   ##
==========================================
+ Coverage   54.14%   54.17%   +0.03%     
==========================================
  Files        1695     1695              
  Lines       38592    38596       +4     
  Branches     4718     4725       +7     
==========================================
+ Hits        20894    20908      +14     
+ Misses      16260    16247      -13     
- Partials     1438     1441       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tommasini tommasini added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: a322f83
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ae660838-4203-4d57-ba18-793565ae00d9

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@MetaMask MetaMask deleted a comment from github-actions bot Oct 9, 2024
app/store/storage-wrapper.test.ts Show resolved Hide resolved
app/store/storage-wrapper.test.ts Outdated Show resolved Hide resolved
app/store/storage-wrapper.test.ts Outdated Show resolved Hide resolved
app/store/storage-wrapper.test.ts Outdated Show resolved Hide resolved
app/store/storage-wrapper.test.ts Show resolved Hide resolved
app/store/storage-wrapper.ts Show resolved Hide resolved
app/store/storage-wrapper.ts Show resolved Hide resolved
app/store/storage-wrapper.ts Show resolved Hide resolved
app/store/storage-wrapper.ts Show resolved Hide resolved
app/store/storage-wrapper.ts Show resolved Hide resolved
@NicolasMassart NicolasMassart self-requested a review October 9, 2024 12:58
Copy link

sonarcloud bot commented Oct 9, 2024

@tommasini tommasini added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: bb004c6
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/33fd2cf3-2488-43bf-854d-0bfd2b953855

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@tommasini tommasini added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit 5b7b39b Oct 9, 2024
43 checks passed
@tommasini tommasini deleted the fix/reuse-mmkv-instance branch October 9, 2024 14:46
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants