|
From: | Bahaa Alamood |
Subject: | Re: [Health] Thalamus |
Date: | Fri, 24 May 2019 23:10:25 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Dear Dr. Luis,
Thank you and I will update next week when the new release is out. I have since set up a second node so I can see how data is synced or propagated between the two nodes, but no syncing happened. Here is what I tried to do: 1. I setup the first node and I have added a medical professional then I sent it to Thalamus and from querying the database I can see it is stored there and things are good. 2. I created a second node and added an institution just like I did in the first node and I created a health professional there with the same name as the first one and I linked the 2 federation Ids together as it created a new one in the second node. 3. on the second node I created 2 new patients and I added a book of life page to one of them, and sent the changes to Thalamus and again it stored them in the DB. 4. I went back to the first node and tried to see if I can pull
the patients info I stored in the second node, but nothing
happened even though I gave the same federation ID. I looked in
the logs, but nothing was logged too.
My question is what is the correct workflow to make the data sync between the tow nodes when needed. I realize that the sync is asynchronous and it happens only when needed? another question how to change the role of the party from end_user to health_professional or root? can this be done from the Tryton client?
is there any way that the data (send from the federation queue)
be set in such a way that is sent automatically without having to
manually send them from the queue?
On 5/24/19 3:27 PM, Luis Falcon wrote:
Dear Bahaa Wonderful ! Thank you so much for testing it ! Next week we'll release a new Thalamus packages including this fix :) All the best Luis On Fri, 24 May 2019 13:15:18 -0400 Bahaa Alamood <address@hidden> wrote:Dear Dr. Luis, Yes, I have tested the patch and it works. Thanks On 5/24/19 9:40 AM, Luis Falcon wrote: Dear BahaaOn Wed, 22 May 2019 13:55:48 -0400 Bahaa Alamood <address@hidden> wrote: Dear Luis,Thanks for taken your time to explain the below to me. I am making some progress and here is what I have so far:Wonderful !I was able to load the database using the populate script and I have added a record with a root role, but now when I go to the federation queue and try to send the changes like creating new patient record or just a person I get this [2019-05-22 17:38:41 +0000] [30800] [DEBUG] GET /people/IRQVSQ827RFZ [2019-05-22 17:39:47 +0000] [30800] [DEBUG] POST /people/IRQYPS253LUG [2019-05-22 17:39:49 +0000] [30800] [ERROR] Exception on /people/IRQYPS253LUG [POST] Traceback (most recent call last): where id = %s limit(1)', (table, resid)) psycopg2.errors.SyntaxError: syntax error at or near "'people'" LINE 1: SELECT id from 'people' where id = 'IRQYPS253LUG' li...Thanks for the feedback ! Great ! In fact the problem comes from porting MongoDB to PostgreSQL. We need special syntax when passing the table name as an argument in psycopg2. I have fixed on the development branch of thalamus. You can see the patch here : http://hg.savannah.gnu.org/hgweb/health/rev/8e61ea5d325c I should release a new Thalamus version with this patch when coming back from openSUSE conference, where I am right now :) Please test the development version and let me know All the best Luis --Bahaaldin Al-amood Managing Director IQ Tel: +964 (0) 780 926 2103 US tel: 540 632 1388 email: address@hidden Skype ID: bahaa.alamood Arc Digital Solutions and Consultancy www.arcdsc.com This message contains information that may be confidential and privileged to Arc digital Solutions and Consultancy, its partners, or customers. Unauthorized use is strictly prohibited. Unless you are the addressee (or authorized to receive mail for the addressee), you should not use, copy or disclose to anyone this message or any information contained in this message. If you have received this message in error, please so advise the sender by reply e-mail and delete this message. Thank you for your cooperation. -- Bahaaldin Al-amood Managing Director IQ Tel: +964 (0) 780 926 2103 US tel: 540 632 1388 email: address@hidden Skype ID: bahaa.alamood Arc Digital Solutions and Consultancy www.arcdsc.com This message contains information that may be confidential and privileged to Arc digital Solutions and Consultancy, its partners, or customers. Unauthorized use is strictly prohibited. Unless you are the addressee (or authorized to receive mail for the addressee), you should not use, copy or disclose to anyone this message or any information contained in this message. If you have received this message in error, please so advise the sender by reply e-mail and delete this message. Thank you for your cooperation. |
[Prev in Thread] | Current Thread | [Next in Thread] |