Error while Building Sync2 module

you mean it works when the white list is disabled ?

             "whitelist" : {

             "enabled" : false,

             "instanceIds" : [ "local2" ]

             }

then thats a bug , it should also be worked on in this sprint

cc @dkayiwa

For any one who still has a problem, just invite me on https://www.uberconference.com/openmrs

1 Like

let me first try what irene shared. in other words the key change am seeing , we have to put false in the white list parameter of the parent config.

After Compliling the latest Atom feed module and Sync , i can now succesfuly sync between my local instances.

i found out a few issues,

  • When i was doing a push , Sync failed to solve the issue of conflicting Patient identifiers

    org.openmrs.module.sync2.api.exceptions.SyncException: Object posting error. Code: 400. Details: 
      400 Bad Request : {"error":{"message":"Invalid Submission","code":"webservices.rest.error.invalid.submission","globalErrors":[{"code":"Identifier 1003C3 already in use by another patient","message":"Identifier 1003C3 already in use by another patient"}],"fieldErrors":{}}}
      	at org.openmrs.module.sync2.api.sync.SyncClient.pushData(SyncClient.java:105)
    
  • We need to have a functionality of clearing Audit log , without manualy deleting it from the database

cc @dkayiwa @ssmusoke

Oh may be to ask , How is Sync2 meant to handle syncyng a patient from parent with the same identifier as a patient in the child ??

1 Like

I don’t think I have got your question clearly @mozzy

Hello @mozzy i would like to talk to you here Dialpad Ai Meetings

@gcliff am there

@mozzy am there to ,

@mozzy i have been having a connection error but am there now

@mozzy I think this is one of the Sprint issues


I was testing out Syncying when the White list param is enabled and disabled, but the servers succesfully synced regardless of whether the value is false or true.

Could this be a bug we would need to work on also?? @dkayiwa @ssmusoke

@reagan i think your right, i actually hadnt yet gone thru those issues reported. most of what i was reporting about here are already tickets ready for work :smile:

Spring AOP :smile:

:grinning:modular architecture

1 Like

is any dev still having challenges Syncying locally ??, we would want to clear up all this tickets in the time period set

Oh yes , do we still have any one failing to sync? We need to get the issues on the board under way. We only have less time remaining for this sprint

@mozzy have you tried out some of tickets that were raised by @ssmusoke and see if there could be any progress

@sharif what exactly is the question , i havent got you :slightly_smiling_face: ??

@mozzy @odorajonathan am failing to sync data from parent to the child even though am getting successful sync message but with no data in the audit log . My parent configs and child configs, Am running the the two instances on different disks
 Need some help here