View Issue Details

IDProjectCategoryView StatusLast Update
0007446Talerwallet-corepublic2023-09-23 13:09
Reportersebasjm Assigned Tosebasjm Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.9.1 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007446: dev mode is not persisted after restart
DescriptionService worker is a short lived process, so any setting on the wallet core should persist restart.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

sebasjm

2022-11-16 17:55

developer   ~0019428

should we add this into the wallet-core db?

Christian Grothoff

2022-11-18 21:40

manager   ~0019452

Does it even make sense to persist dev-mode? I actually think turning it off on restart might be a good thing. Devs can re-enable, but having it on by accident might be bad...

MarcS

2022-11-22 23:07

developer   ~0019473

On iOS, Dev-Mode is persisted in the application settings, which is just two words of code preceding a variable definition:
    @AppStorage("developerMode") var developerMode: Bool = false
Next time the app launches it will not init with false, but use the value for key "developerMode". If I delete the first two words, the app will fall back to false at launch - after reboot, or if the user manually kicked it off the background app list, or the user launched so many other apps while we are in the background that iOS runs out of memory and kills us - which could take days if the user doesn't launch many other apps. In this case they would maybe see Dev-Mode active for multiple days, and on other days falling back to inactive even within minutes (if they launch many other apps before coming back to us). Such unpredictability is not the best user experience - but OK, it's just developer mode...

sebasjm

2022-11-23 11:57

developer   ~0019477

> I actually think turning it off on restart might be a good thing.

Restart the browser yes, but service worker may restart (wiping out wallet memory) after short time.

I will implement saving the state in localStorage (the web version of marc's description) and sync wallet on startup.

sebasjm

2023-04-26 14:28

developer   ~0020163

fixed with the implementation of feature flags

Issue History

Date ModifiedUsernameFieldChange
2022-11-07 15:30sebasjmNew Issue
2022-11-07 15:30sebasjmStatusnew => assigned
2022-11-07 15:30sebasjmAssigned To => Florian Dold
2022-11-16 17:55sebasjmNote Added: 0019428
2022-11-18 21:40Christian GrothoffNote Added: 0019452
2022-11-22 23:07MarcSNote Added: 0019473
2022-11-23 11:57sebasjmNote Added: 0019477
2022-11-23 11:57sebasjmAssigned ToFlorian Dold => sebasjm
2023-01-13 16:08Christian GrothoffSeverityminor => feature
2023-01-13 16:08Christian GrothoffTarget Versiongit (master) => 0.9.4
2023-04-13 18:36Florian DoldCategorywallet (TS core) => wallet-core
2023-04-26 14:28sebasjmStatusassigned => informing
2023-04-26 14:28sebasjmResolutionopen => fixed
2023-04-26 14:28sebasjmNote Added: 0020163
2023-04-29 11:49Christian GrothoffFixed in Version => 0.9.3
2023-04-29 11:49Christian GrothoffTarget Version0.9.4 => 0.9.3
2023-09-23 13:09Christian GrothoffStatusinforming => closed