1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
Dan J Miller 9bbabd4868
Capture app and migration version (#20458)
* Add AppMetadataController so current and previous application and migration version can be captured in sentry

* Add currentAppVersion, previousAppVersion, previousMigrationVersion, currentMigrationVersion to SENTRY_OBJECT

* Update app/scripts/controllers/app-metadata.ts

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update app/scripts/controllers/app-metadata.ts

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Update app/scripts/controllers/app-metadata.ts

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Fix types

* Add tests for app-metadata.test.ts

* Lint fixes

* Modify loadStateFromPersistence to return the whole versionData object, so that the migration version can be passed to the metamask-controller on instantiation

* Remove reference to implementation details in test descriptions in app/scripts/controllers/app-metadata.test.ts

* Reset all mocks afterEach in AppMetadataController

* Refactor AppMetadataController to be passed version instead of calling platform.version directly (for ease of unit testing the MetaMask Controller)

* Make maybeUpdateAppVersion and maybeUpdateMigrationVersion private, and remove unit tests of those specific functions

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-08-16 12:22:38 -02:30
..
account-import-strategies
constants
controllers Capture app and migration version (#20458) 2023-08-16 12:22:38 -02:30
lib Capture app and migration version (#20458) 2023-08-16 12:22:38 -02:30
migrations adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00
platforms
app-init.js
background.js Capture app and migration version (#20458) 2023-08-16 12:22:38 -02:30
contentscript.js
detect-multiple-instances.js
detect-multiple-instances.test.js
disable-console.js
first-time-state.js
init-globals.js
inpage.js
lockdown-more.js Bump SES to fix audit failure (#20434) 2023-08-14 16:30:34 -02:30
lockdown-run.js
metamask-controller.actions.test.js Use addNewAccount from core KeyringController (#19814) 2023-08-16 11:19:41 +02:00
metamask-controller.js Capture app and migration version (#20458) 2023-08-16 12:22:38 -02:30
metamask-controller.test.js Use addNewAccount from core KeyringController (#19814) 2023-08-16 11:19:41 +02:00
mmi-keyring-builder-factory.js
sentry-install.js
translate.test.ts
translate.ts
ui.js
use-snow.js