Thanks Courage and Vishwas for the answers this far. As we don't have all the answers yet I hope others also find time to answer. Especially important would be to crack the khepri_beats problem.
> Details at https://cwiki.apache.org/confluence/display/FINERACT/Fineract+CN+demo-server I was investigating it now and I got a question regarding this block: demo_server -> provisioner: add rhythm service to the tenant provisioner -> rhythm: provision signature with same timestamp as current identity signature. provisioner -> identity: create application with signature returned by rhythm provisioner -> rhythm: ask what permissions rhythm needs provisioner -> identity: create permission request for rhythm to access identity to create permission requests provisioner -> rhythm: initialize (in this case only, tenant data is not in separate databases) When I add rhythm service to tenant (04.001 in my Postman scripts): PUT [{"name": "rhythm-v1"}] to http://{{provisionerUrl}} /provisioner/v1/tenants/{{tenantIdentifier}}/applications Does that mean that provision should make a series of requests to rhythm and identity? Regards, Juhan Kontakt Vishwas Babu A J (<vishwasb...@apache.org>) kirjutas kuupƤeval K, 25. september 2019 kell 04:26: > Hi Juhan, > > > 3. I create scheduler user imhotep (and change password to 26500BC) but > > what else should I do with this user? Feed it to some application? Why is > > this role and user created in demo server? > > Details at > https://cwiki.apache.org/confluence/display/FINERACT/Fineract+CN+demo-server > > > > 5. I have no idea how connect a user with a specific customer (to > simulate > > customer logging in one one's own behalf). How should that work? > > AFAIK, you cannot do the same on the current micro-services. The Mifos > initiative has another project (Customer Self Service API Gateway) which > allows customer self service by maintaining separate credentials for each > customer. After the customer has been authenticated and authorized at the > gateway, it interfaces with Fineract-CN using a system / back-office user > credential . > > Next week, I am planning to spend time on going through the deposits > micro-service while filling out the checklist at > https://cwiki.apache.org/confluence/display/FINERACT/Digital+wallet, so > will find the answers to the questions you have raised in case someone has > not already replied to the same. > > Regards, > Vishwas > > > > On 2019/09/23 14:22:54, Juhan Aasaru <aas...@gmail.com> wrote: > > Hi! > > > > I have improved Postman provisioning scripts located under > > https://github.com/apache/fineract-cn-docker-compose/. I would like to > > complete the provisioning scripts but as some logic is not working for > me I > > need help. *Vishwas, Courage, Myrle, Awasum, Ebenezer, Isaac or anyone > > else, if you have time, plese look into this as provisioning is needed > for > > everyone. *Also if anyone could explain what should be happening it would > > be easier to solve the issues or at least get the bugs logged in Jira. > > > > When I started to imporve the initial scripts created by Vishwas I > > investigated the provisioning in Demo server and also I looked bash > > provisioning scripts that Courage has created earlier but I didn't find > > answers to these questions from there. > > > > What currently works with Postman: > > * creating a tenant > > * creating an application > > * assigning an application to a tenant > > * creating roles (like admin and scheduler) > > * creating users with specific role > > * creating members/customers > > * creating ledgers and accounts (full chart of accounts) > > * creating and activating products > > > > *What doesn't work (need your help!):* > > > > When testing scripts I had following micro services running: provisioner, > > rhythm, identity, customer, accounting, deposit, portfolio, fims-web-app > > > > 1. With rhythm I still get error relation "khepri_beats" does not exist - > > this is also registered as FINCN-177 > > <https://issues.apache.org/jira/browse/FINCN-177> by me. After I > > increased rhythm.beatCheckRate to 600000 it takes more time for this > error > > to occur in logs. I wonder if other errors could be caused by rhythym not > > functioning. Also at what point should this table be created? > > > > 2. I cannot enable privileges (at steps 06.5 and 06.6 in Postman): > > > > PUT http://{{identityUrl}} > > > /identity/v1/applications/rhythm-v1/permissions/identity__v1__app_self/users/imhotep/enabled > > > > PUT http://{{identityUrl}} > > > /identity/v1/applications/rhythm-v1/permissions/portfolio__v1__khepri/users/imhotep/enabled > > > > I get error: > > "message": "Application permission 'rhythm-v1.identity__v1__app_self' > > doesn't exist.", > > "path": > > > "/identity/v1/applications/rhythm-v1/permissions/identity__v1__app_self/users/imhotep/enabled" > > > > and > > > > "message": "Application permission 'rhythm-v1.portfolio__v1__khepri' > > doesn't exist.", > > "path": > > > "/identity/v1/applications/rhythm-v1/permissions/portfolio__v1__khepri/users/imhotep/enabled" > > should I do anything before issuing these commands? Is this needed at > all? > > If I look into cassandra keyspace playground table > > isis_application_permissions then it is empty. Anyone knows when should > the > > values be created there? > > > > 3. I create scheduler user imhotep (and change password to 26500BC) but > > what else should I do with this user? Feed it to some application? Why is > > this role and user created in demo server? > > > > 4. I cannot connect product with a customer (at step 11.1 in Postman) > > I post the following JSON to http://{{depositUrl}}/deposit/v1/instances > > > > { > > "productIdentifier": "savingsProduct001", > > "beneficiaries": [ > > "customer10" > > ], > > "customerIdentifier": "customer10" > > } > > I get 202 status code back but requesting user products after that: > > http://{{depositUrl}}/deposit/v1/instances?customer=customer10 > > still returns an empty list. The same occurs when using fims-web-app to > > link customer with a product. Should I have any other micro services > > running besides the one named above? > > > > 4. One more question regarding last one - what is the point of > > beneficiaries section? Could anyone please explain? > > > > 5. I have no idea how connect a user with a specific customer (to > simulate > > customer logging in one one's own behalf). How should that work? > > > > I hope someone can answer at least some of the questions. > > > > Thanks! > > Juhan > > >