uport-project / uport-mobile

uPort mobile app
https://uport.me
GNU General Public License v3.0
76 stars 28 forks source link

Fix restoration of migrated identities #150

Closed pelle closed 5 years ago

pelle commented 5 years ago

Migrated uport dids would be restored as uport dids but without the data.

This checks for presence of a backup first and then restores it as an ethr did.

codecov[bot] commented 5 years ago

Codecov Report

Merging #150 into develop will increase coverage by 0.07%. The diff coverage is 78.94%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #150      +/-   ##
===========================================
+ Coverage    55.14%   55.21%   +0.07%     
===========================================
  Files          255      255              
  Lines         8545     8563      +18     
  Branches      1715     1718       +3     
===========================================
+ Hits          4712     4728      +16     
- Misses        3419     3422       +3     
+ Partials       414      413       -1
Impacted Files Coverage Δ
lib/sagas/requests/disclosureRequest.js 83.98% <ø> (+1.2%) :arrow_up:
lib/sagas/persona.js 61.11% <ø> (-0.91%) :arrow_down:
lib/utilities/cache.js 9.09% <ø> (+0.75%) :arrow_up:
lib/sagas/requests/index.js 65.98% <ø> (-0.14%) :arrow_down:
lib/sagas/hubSaga.js 65.45% <100%> (+3.2%) :arrow_up:
lib/sagas/migrations/MigrateLegacy.ts 85.48% <100%> (-0.24%) :arrow_down:
lib/sagas/jwt.js 56.71% <30%> (-4.69%) :arrow_down:
lib/sagas/recoverySaga.js 91.3% <91.66%> (+2.93%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update effee73...09999b9. Read the comment docs.