View Issue Details

IDProjectCategoryView StatusLast Update
0004345Talerobsolete componentpublic2016-04-07 20:39
ReporterChristian Grothoff Assigned ToMarcello Stanisci 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
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Version0.0 
Target Version0.0Fixed in Version0.0 
Summary0004345: account numbers should not be random
DescriptionAccount numbers should be assigned sequentially.

If not accounts exist, the bank should _always_ on startup create
0: bank
1: exchange

taler-bank-manage --preaccounts should then create accounts for Tor/GNUnet/Taler as 2/3/4, and -- sampledata should fill those with some transactions (but again consistently: withdraw from bank to exchange, and from exchange -> Tor/GNUnet/Taler. The invariance that all account balances add up to zero should be maintained.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Marcello Stanisci

2016-04-05 15:15

reporter   ~0010379

Last edited: 2016-04-05 15:15

Adding the basic accounts creation at startup, but the bank gets account number 1, as
changing the starting value of an AutoField requires injecting Postgres specific SQL
into the Django's routine which fills the tables (technically called 'migration'), which
is not cross-DB practice. See link below


http://stackoverflow.com/questions/11298392/initial-value-for-django-model-autofield

Christian Grothoff

2016-04-05 15:37

manager   ~0010380

Sure, we can start with account 1. Can you set it up so that the exchange's account is also always created as #2?

I guess we should also be more specific about which taler-bank-manage option does what. For the bank-lib testcase, the following would be ideal:

--definetables: create tables AND setup bank + exchange accounts
--preaccounts: create FSF/GNUnet/Tor/etc. accounts based on configuration
--sampledata: put in some transaction history

We also still need a way to set/reset an account's password.

Marcello Stanisci

2016-04-05 16:41

reporter   ~0010381

That's already there. You can also run 'python manage.py dump_talerdb' in order to see how accounts and history look like.

Marcello Stanisci

2016-04-07 16:20

reporter   ~0010402

fixed by 07b6805. To change password via cli, run

$ python manage.py bank_admin users --reset-password USER NEWPASSWORD

This script is meant to be a "swiss army knife" for bank operations, so it'll
likely replace the shell script that is currently deployed.

Issue History

Date ModifiedUsernameFieldChange
2016-03-23 17:25Christian GrothoffNew Issue
2016-03-23 17:25Christian GrothoffStatusnew => assigned
2016-03-23 17:25Christian GrothoffAssigned To => Marcello Stanisci
2016-04-05 15:15Marcello StanisciNote Added: 0010379
2016-04-05 15:15Marcello StanisciNote Edited: 0010379
2016-04-05 15:37Christian GrothoffNote Added: 0010380
2016-04-05 16:41Marcello StanisciNote Added: 0010381
2016-04-07 16:20Marcello StanisciNote Added: 0010402
2016-04-07 16:20Marcello StanisciStatusassigned => informing
2016-04-07 16:20Marcello StanisciResolutionopen => fixed
2016-04-07 20:39Christian GrothoffStatusinforming => closed
2016-04-07 20:39Christian GrothoffFixed in Version => 0.0
2016-04-07 20:39Christian GrothoffTarget Version0.1 => 0.0
2022-08-23 18:26Christian GrothoffCategorybank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 00:23Christian GrothoffCategorypy bank (demonstrator, obsolete) => obsolete componet
2023-12-11 19:08Florian DoldCategoryobsolete componet => obsolete component