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 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
..
ens
permissions
transactions fix: minimise public api of tx controller (#20361) 2023-08-03 13:42:44 +02:00
alert.js
app-metadata.test.ts Capture app and migration version (#20458) 2023-08-16 12:22:38 -02:30
app-metadata.ts Capture app and migration version (#20458) 2023-08-16 12:22:38 -02:30
app-state.js Remove unnecessary log from accept approval (#20233) 2023-07-31 11:06:18 +01:00
app-state.test.js Remove unnecessary log from accept approval (#20233) 2023-07-31 11:06:18 +01:00
backup.js
backup.test.js
cached-balances.js
cached-balances.test.js
decrypt-message.test.ts
decrypt-message.ts PPOM dependency updates (#20342) 2023-08-14 21:48:40 +05:30
detect-tokens.js
detect-tokens.test.js
encryption-public-key.test.ts Use getKeyringForAccount from core KeyringController (#20202) 2023-07-28 20:09:14 +01:00
encryption-public-key.ts PPOM dependency updates (#20342) 2023-08-14 21:48:40 +05:30
incoming-transactions.js
incoming-transactions.test.js
metametrics.js Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
metametrics.test.js Capture Sentry errors prior to initialization (#20265) 2023-07-31 18:49:32 -02:30
mmi-controller.js
mmi-controller.test.js
onboarding.js
preferences.js Add Opt-out Settings toggle for 4byte contract method names resolution (#20098) 2023-08-04 13:28:37 -04:00
preferences.test.js Add Opt-out Settings toggle for 4byte contract method names resolution (#20098) 2023-08-04 13:28:37 -04:00
swaps.js adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00
swaps.test.js adapt to use networksMetadata state instead of single networkStatus and networksDetails state (#20219) 2023-08-03 12:31:35 -05:00