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

Refactor state classes to prepare for state corruption backup mitigation #29745

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Jan 16, 2025

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

brad-decker and others added 2 commits January 16, 2025 07:49
Capture sentry error if there is an empty/corrupt vault, and handle more possible empty/corrupt vault types

Ensure log.debug call in case fetch in init in ReadOnlyNetworkStore has an error without a message

Ensure that  in ReadOnlyNetworkStore waits for initializing to complete

Lint fix

Ensure that first time state is returned if state has no data

Update app/scripts/lib/Stores/ExtensionStore.ts

Co-authored-by: Danica Shen <[email protected]>

Update test description

Use const for DEFAULT_INITIAL_STATE in ExtensionStore.test.ts

Improve naming and usage of versionedData variable in background.js

lint fix

Capture exception with sentry in both error cases ExtensionStore.get

Lint fix

Add app/scripts/lib/Stores/ReadOnlyNetworkStore.test.ts

Delete files that are no longer used

Use async/await for get/set in ExtensionStore.ts
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants