1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/controllers
Dan J Miller 789122d587 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 14:47:01 -02:30
..
ens
permissions [FLASK] Add Snaps Keyring (#19710) 2023-06-29 09:24:08 -04:00
transactions
alert.js
app-metadata.test.ts Capture app and migration version (#20458) 2023-08-16 14:47:01 -02:30
app-metadata.ts Capture app and migration version (#20458) 2023-08-16 14:47:01 -02:30
app-state.js
app-state.test.js
backup.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
backup.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
cached-balances.js
cached-balances.test.js
decrypt-message.test.ts
decrypt-message.ts
detect-tokens.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
detect-tokens.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
encryption-public-key.test.ts
encryption-public-key.ts
incoming-transactions.js
incoming-transactions.test.js
metametrics.js Added code fences to updateExtensionUninstallUrl (#19845) 2023-06-30 16:27:16 +02:00
metametrics.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
mmi-controller.js [MMI] replace logic from preferences controller with event emitter (#19781) 2023-06-28 16:45:22 +02:00
mmi-controller.test.js
onboarding.js
preferences.js fix: fetch for snap registry (#19866) 2023-07-10 13:54:52 -02:30
preferences.test.js
swaps.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00
swaps.test.js Replace NetworkController w/ core version (#19486) 2023-06-22 12:46:09 -06:00