IRC Chat : 2011-05-10 - OpenMRS

00:02:55 *** robbyoconnor has joined #openmrs
00:02:55 *** ChanServ sets mode: +v robbyoconnor
00:19:06 *** mandric has quit IRC
01:16:19 *** mandric has joined #openmrs
01:18:44 *** docn has quit IRC
01:20:53 *** robbyoconnor has quit IRC
01:21:29 *** robbyoconnor has joined #openmrs
01:21:29 *** ChanServ sets mode: +v robbyoconnor
01:58:51 *** mandric has quit IRC
02:23:55 *** goutham_ has joined #openmrs
02:44:43 *** goutham_ has left #openmrs
02:45:27 *** goutham_ has joined #openmrs
03:00:11 *** jriley has joined #openmrs
03:06:36 *** goutham_ has quit IRC
03:29:59 *** robbyoconnor has quit IRC
03:30:32 *** robbyoconnor has joined #openmrs
03:30:32 *** ChanServ sets mode: +v robbyoconnor
03:50:15 *** deadpool has quit IRC
04:08:13 *** lh has joined #openmrs
04:08:26 *** lh has quit IRC
04:32:38 *** surangak has joined #openmrs
05:11:03 *** free__ has joined #openmrs
05:11:38 *** surangak has quit IRC
05:27:16 *** Administrator__ has joined #openmrs
05:27:49 *** free__ has quit IRC
05:52:18 *** surangak has joined #openmrs
05:55:27 *** goutham has joined #openmrs
06:16:46 *** dmexs_ has joined #openmrs
06:17:22 *** dmexs has quit IRC
06:20:32 *** wyclif has quit IRC
06:21:00 *** wyclif has joined #openmrs
06:38:49 *** mathiaslin has joined #openmrs
07:01:29 *** wyclif has quit IRC
07:01:56 *** wyclif has joined #openmrs
07:02:23 *** pascal` has joined #openmrs
07:02:29 *** rafa has joined #openmrs
07:02:29 *** ChanServ sets mode: +v rafa
07:06:30 *** ChanServ sets mode: +v pascal`
07:20:59 *** rafa has quit IRC
07:24:48 *** dkayiwa has joined #openmrs
07:25:48 *** danielf` has joined #openmrs
07:25:48 *** ChanServ sets mode: +v danielf`
07:26:41 *** Administrator__ has quit IRC
07:26:42 *** rafa has joined #openmrs
07:26:42 *** ChanServ sets mode: +v rafa
07:27:01 *** goutham has quit IRC
07:28:46 *** surangak has quit IRC
07:30:02 *** Administrator__ has joined #openmrs
07:31:14 *** rafa_ has joined #openmrs
07:31:14 *** ChanServ sets mode: +v rafa_
07:34:24 *** rafa has quit IRC
07:44:55 *** goutham has joined #openmrs
07:54:52 *** surangak has joined #openmrs
08:10:46 *** Administrator__ has quit IRC
08:11:41 *** Administrator__ has joined #openmrs
08:28:54 *** Administrator__ has quit IRC
08:29:22 *** Administrator__ has joined #openmrs
08:45:35 *** djazayeri has quit IRC
08:46:01 *** djazayeri has joined #openmrs
08:46:01 *** ChanServ sets mode: +o djazayeri
08:56:45 <surangak> howdy
08:56:57 <surangak> anyone available for a quick question :)
08:57:46 <dkayiwa> i can try :)
08:58:21 <surangak> its like this :)
08:58:36 <surangak> ive been trying to create a complex obs with an image
08:58:51 <surangak> but every time i try i keep gettin a
08:59:22 <surangak> A javascript error has occurred: NETWORK_ERR: XMLHttpRequest Exception 101
08:59:46 <surangak> error.. i think its thrown by the js, there does not seem to be any other error log anywhere else
08:59:58 <dkayiwa> how big is your image?
09:00:03 <surangak> i tried this using firefox and chrome...
09:00:09 <surangak> its a jpg... let me check...
09:00:40 <surangak> ive been trying with <100 kb pics
09:00:48 <surangak> using tomcat and jetty...
09:01:12 <surangak> i think the image gets unset every time i try to save the observation...
09:02:00 <surangak> i ve put up a mail regading this yesterday.., listing out what i had tried... so far nothing seems to be workin ;(
09:02:19 <dkayiwa> what url are you making the request to?
09:02:45 <surangak> im actually trying to upload an image from the local file system
09:03:13 <dkayiwa> and that would involve a request to the server
09:03:21 <dkayiwa> on what url?
09:05:57 <surangak> http://localhost:8080/openmrs/admin/observations/obs.form
09:05:58 *** dkayiwa has quit IRC
09:06:57 *** dkayiwa has joined #openmrs
09:07:22 <surangak> howdy, its http://localhost:8080/openmrs/admin/observations/obs.form
09:07:55 <surangak> i re teted the data im using by creating similar stuff on the demo server, and it works..
09:08:09 <surangak> but unfortunately not on my local server...
09:08:58 <dkayiwa> can you put an alert for the url just before you make the request to confirm that the actual url is so?
09:09:30 <surangak> um u mean i should create a openmrs alert instance for the link i sent you
09:09:46 <surangak> and then try calling it to see how it goes ? :)
09:10:01 <dkayiwa> let me get some more info
09:10:21 <dkayiwa> how do you get the file from the local file system to server?
09:10:54 *** Administrator__ has quit IRC
09:10:58 <dkayiwa> are you making the ajax request yourself?
09:11:02 <surangak> im actually browsing for it in using the beowse button
09:11:22 <surangak> no, actually im trying out the existing code to see how it works..
09:11:30 <dkayiwa> and after that?
09:11:43 <dkayiwa> so its not code you wrote?
09:11:48 <surangak> as in, trying to create an obs using a complex handler that already exists...
09:11:53 <surangak> nopz...
09:12:11 <dkayiwa> so you have not even written any client side code?
09:12:15 <surangak> after i browse for the file, i click on the save observation button....
09:12:38 <surangak> nops... um... i dont need to for existing complex obs hander right ?
09:12:53 <dkayiwa> not sure
09:13:15 <dkayiwa> was just wondering if you wrote any code that could have had some issues
09:13:24 <surangak> oh no...
09:13:27 <surangak> none at all
09:13:41 *** goutham has quit IRC
09:13:45 <surangak> im thinking that ajax is having some problem uploading my image
09:14:06 <surangak> becoz it does not even attempt to upload... point blank it gives the ajax error...
09:14:18 <dkayiwa> was it working well before you touched it?
09:15:09 <surangak> actually i dont know...
09:15:16 <dkayiwa> :)
09:15:17 <surangak> i have taken brand new checkout
09:15:22 <surangak> with no changes..
09:15:35 <surangak> i can gurantee that what i have is the latest you have
09:15:44 <surangak> only it does not seem to work... :(
09:16:08 <dkayiwa> can u take me though the ui?
09:16:19 <dkayiwa> what should i do to reproduce it here?
09:16:19 <surangak> it works on demo server... i tried re creating using the same demo data..
09:16:22 <surangak> sure
09:16:49 <surangak> manage observations -> add obnservations
09:16:54 *** Administrator__ has joined #openmrs
09:16:54 <dkayiwa> ok
09:17:12 <surangak> now to create the obs, i enter a patiet name
09:17:17 <dkayiwa> ok
09:17:31 <dkayiwa> done
09:17:44 <surangak> i leave encounter and order blank
09:17:51 <dkayiwa> done
09:17:56 <surangak> now i add unknown loaction as location
09:18:01 <dkayiwa> done
09:18:05 <surangak> now i select a complex concept
09:18:16 <surangak> of type image handler that i had ccreated...
09:18:23 <surangak> have u got one handy :)
09:18:30 <dkayiwa> i need to first create one
09:19:02 <dkayiwa> what data type and class?
09:19:13 <surangak> add new concept -> name : complex datatype: complex
09:19:26 <surangak> class i leave default as test
09:19:27 <dkayiwa> class?
09:19:40 <dkayiwa> next?
09:19:50 <surangak> handler : image handler
09:19:55 <dkayiwa> done
09:19:56 <surangak> and save ...
09:20:06 <surangak> that should be it...
09:20:07 <dkayiwa> done
09:20:25 <surangak> when creating the obs using this, i select one of the default jpgs in windows...
09:20:36 <dkayiwa> ok
09:20:40 <surangak> from my pictures
09:20:54 <surangak> did it work for you .. :)
09:21:01 <dkayiwa> testing....
09:21:36 <surangak> please tell me its not workin :)
09:22:32 <dkayiwa> Please fix all errors and try again.
09:23:05 <surangak> and a blank red line underneath right ?
09:23:29 <surangak> if u save that web page in oyr system, and open that.. it gives the 101 error ....
09:23:50 <dkayiwa> let me try that
09:23:51 <surangak> A javascript error has occurred: NETWORK_ERR: XMLHttpRequest Exception 101 The full stacktrace for this error can usually be found in your server's error logs. Hide error
09:28:01 <surangak> umm any luck....
09:28:11 <dkayiwa> running it in debug mode
09:29:24 <surangak> aha.. i tried that, but kept getting permagen out of space problems.. i am still tryoing to get into it...
09:37:46 <dkayiwa> the obs.getValueComplex is null
09:38:49 <surangak> um to debug, where did u place the breakpoint
09:39:06 <dkayiwa> in the ObsValidator
09:39:48 <surangak> i think that the server is not even loading the complex image...
09:41:20 <dkayiwa> are you running the trunk?
09:41:29 <surangak> yep
09:41:51 <dkayiwa> go to the ObsValidator class
09:41:52 <surangak> latest version, checked out today just to check this problemo...
09:41:53 <dkayiwa> seen it?
09:42:10 <surangak> yep... first time ive been there actually...
09:42:25 <dkayiwa> comment out line 120
09:42:32 <dkayiwa> errors.reject("error.noValue");
09:43:05 <dkayiwa> after that you should be able to save your complex obs properly
09:43:18 <surangak> that easily ? :)
09:43:23 <dkayiwa> yes
09:43:32 <surangak> um.. what is the problem exactly ...
09:43:43 <surangak> im not sure i understood what was happning :(
09:43:50 <dkayiwa> the validation code need to be a bit smarter than it is now
09:44:06 <dkayiwa> by the time the validator runs, the complex obs value is not yet set
09:44:16 <dkayiwa> but it eventually gets set correctly
09:44:29 <dkayiwa> so the validator needs to consider that some how
09:44:48 <surangak> aha, gimmie a minue to run it :-)
09:44:54 <dkayiwa> ok
09:49:38 <surangak> it works !
09:49:45 <dkayiwa> good
09:49:52 <surangak> what a relief ..........
09:49:58 <dkayiwa> :)
09:50:15 <surangak> thats a lot daniel, you dont know how i have been worrying over this for the past three days
09:50:25 <dkayiwa> oh sorry
09:50:52 <dkayiwa> you can create a ticket for that bug
09:51:17 <surangak> i dont think i would have been able to fix this on my own since i had no idea what obsvalidator existe
09:51:36 <surangak> even though i was wondering where all the validation stuff went :)
09:51:45 <dkayiwa> yes i agree. but good enough you asked :)
09:52:24 <surangak> im supposed to be improving on the complex obs stuff over th next few months
09:52:33 <dkayiwa> ok
09:52:40 <surangak> so ill probably try to fix this in the upcomming days
09:52:45 <dkayiwa> sure
09:52:49 <dkayiwa> makes perfect sense
09:52:54 <surangak> but thats very much for the help, this is a great relief :)
09:53:10 <dkayiwa> you are welcome. thanks too for your perseverence :)
09:56:01 <jriley> Got a unit testing question... how can I tell my tests in a generic way where to find openmrs.properties?
09:56:09 <jriley> Right now it's hardcoded to my laptop's directory structure
09:56:23 <jriley> I create a properties file with the file path
09:57:07 <dkayiwa> where exactly is it hardcoded?
09:58:07 <jriley> in my BeforeClass method
09:58:15 <jriley> when I init the context
09:58:26 <dkayiwa> are you the one who has hardcoded it?
09:58:32 <jriley> yep, it's my unit test
09:58:37 <jriley> can't commit it like that, though
09:58:42 <jriley> the other kids will beat me up at recess :)
09:58:49 <jriley> How is that normally handled?
09:58:53 <dkayiwa> :)
09:58:59 <dkayiwa> what data do you have in there?
09:59:52 <jriley> I know the app checks some places by default, like ~/.OpenMRS/openmrs.properties . Is that something I can take advantage of?
10:00:05 <dkayiwa> oh yes
10:00:27 <jriley> I don't see any methods in Context that I could call, though. I just see Context.startup() wants its url, etc.
10:00:56 <dkayiwa> what data do you store there?
10:01:07 <jriley> I don't have much data in there yet. I'm updating the CsvConceptImporter
10:01:15 <jriley> I do save a ConceptSource for the mapping test
10:01:35 <jriley> I'll test whether the imported concept gets saved, too
10:01:47 <jriley> Haven't written a test for the big end-to-end method yet
10:02:09 <dkayiwa> Context.getRuntimeProperties().getProperty(key)
10:02:33 <dkayiwa> But if all you need is data for testing, then it does not belong into the runtime properties file
10:02:37 <jriley> Ah! That's not the properties I initted with startup(), then
10:03:14 <jriley> I need a database whenever I call Context.saveXYZ(), yes?
10:03:25 <jriley> and a Context.getXYZByName()?
10:03:58 <dkayiwa> do you need startup database data?
10:04:12 <jriley> Hmm
10:04:24 <jriley> I'll need concepts for the Retire and Modify methods too
10:04:27 <jriley> but I don't care whose data it is
10:04:49 <dkayiwa> have you looked at: standardTestDataset.xml
10:04:51 <dkayiwa> ?
10:04:52 <jriley> it can be a canned set of test data, as long as I know what it is
10:05:09 <jriley> No, let me check that out
10:05:17 <dkayiwa> one option is that you can use the data there or add yours
10:05:42 <dkayiwa> but even better would be create your xml data file and load it on the test startup
10:06:12 <dkayiwa> An example of that is the EncounterServiceTest-initialData.xml
10:06:24 <dkayiwa> which has data for testing the EncounterService
10:06:52 <dkayiwa> that way you avoid making other tests fail which had made some assumptions in the standardTestDataset.xml
10:07:01 <jriley> I like the sound of that
10:07:50 <dkayiwa> so in the @Before method of your test, you load the xml data file
10:08:09 <dkayiwa> for an example, you can look at EncounterServiceTest
10:12:01 *** jriley has quit IRC
10:13:39 *** Administrator__ has quit IRC
10:13:47 *** jriley has joined #openmrs
10:14:12 *** Administrator__ has joined #openmrs
10:14:56 <jriley> My connection dropped. DOH.
10:15:25 <jriley> Thanks, dkayiwa. That will save me a lot of work.
10:15:39 <dkayiwa> yo welcome
10:15:47 <jriley> I wasn't looking forward to testing all the cases I wasn't using. Much easier if I don't have to do so much setup
10:16:00 <dkayiwa> ok
10:23:46 *** jriley has quit IRC
10:36:38 *** Administrator__ has quit IRC
10:37:07 *** Administrator__ has joined #openmrs
10:42:24 *** Administrator__ has quit IRC
10:58:09 *** surangak has quit IRC
11:00:38 *** toni_ has joined #openmrs
11:06:34 *** dkayiwa has left #openmrs
11:10:16 *** dkayiwa has joined #openmrs
11:23:35 *** Administrator__ has joined #openmrs
11:47:15 *** Administrator__ has quit IRC
11:47:47 *** toni_ has quit IRC
12:05:10 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: Register 1.0.3 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=register&version=&1.0.3>
12:33:55 *** Administrator__ has joined #openmrs
12:45:58 *** sgrannis has joined #openmrs
12:45:58 *** ChanServ sets mode: +v sgrannis
12:56:38 *** gauthami has joined #openmrs
12:56:48 <gauthami> hi james_regen
12:56:56 <gauthami> hi shaun
12:57:03 <gauthami> sgrannis:
12:57:12 <james_regen> hi gauthami. shaun and i are in #openmrs_link
12:57:15 <sgrannis> Hi gauthami
12:59:41 *** danielf` has quit IRC
13:06:20 *** dkayiwa_ has joined #openmrs
13:06:20 *** dkayiwa has quit IRC
13:06:23 *** dkayiwa_ is now known as dkayiwa
13:09:16 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: Address Hierarchy Rwanda 1.2.4 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=addresshierarchyrwanda&version=&1.2.4>
13:15:14 *** suho has joined #openmrs
13:15:14 *** ChanServ sets mode: +v suho
13:27:02 *** gauthami has quit IRC
13:32:45 *** downeym has joined #openmrs
13:32:45 *** OpenMRSBot sets mode: +o downeym
13:32:45 *** ChanServ sets mode: +o downeym
13:33:03 *** downeym has quit IRC
13:33:06 *** downeym_ has joined #openmrs
13:33:06 *** ChanServ sets mode: +o downeym_
13:33:14 *** downeym has joined #openmrs
13:33:14 *** ChanServ sets mode: +o downeym
13:33:14 *** OpenMRSBot sets mode: +o downeym
13:37:08 *** downeym_ has quit IRC
14:00:03 *** sgrannis has quit IRC
14:36:10 <suho> hi dkayiwa
14:36:57 <dkayiwa> hi suho
14:37:22 <dkayiwa> can i get back to you later?
14:37:59 <suho> ok np
14:38:04 <suho> ttyl
14:38:04 <dkayiwa> thanks
14:38:10 *** dkayiwa has left #openmrs
15:05:53 *** pascal` has quit IRC
15:44:12 *** pascal` has joined #openmrs
15:47:21 *** pascal` has quit IRC
16:01:06 *** cta has joined #openmrs
16:02:59 *** pascal` has joined #openmrs
16:08:00 *** rafa_ has quit IRC
16:36:17 *** lh has joined #openmrs
16:41:21 *** pascal` has quit IRC
17:10:53 *** suho has quit IRC
17:21:06 *** bryq has joined #openmrs
17:21:06 *** ChanServ sets mode: +v bryq
17:27:32 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (concept_mappings): concept_mappings: Filtering out duplicate concept map types in the custom changeset when the name already exists <http://feedproxy.google.com/~r/OMRStrunk/~3/cnnTuryIgK0/OpenMRS>
17:37:06 *** rafa has joined #openmrs
17:37:06 *** ChanServ sets mode: +v rafa
18:08:16 *** rafa_ has joined #openmrs
18:08:16 *** ChanServ sets mode: +v rafa_
18:10:11 *** rafa has quit IRC
18:32:14 *** pascal` has joined #openmrs
18:36:10 *** bwolfe has joined #openmrs
18:36:10 *** ChanServ sets mode: +o bwolfe
19:05:21 *** surangak has joined #openmrs
19:44:22 <downeym> Hi folks, I think our friends at OSL are going to turn on our OpenMRS ID link to Subversion today. They're always busy so I hesitate to wait much longer for testing. Sooo ... be ready. :) I will send out a mail later with details if and when we are ready to go.
19:51:22 *** mandric has joined #openmrs
19:59:36 *** james_regen has quit IRC
20:07:40 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (concept_mappings): Merging trunk to concept_mappings rev:19794 - rev:19873 <http://feedproxy.google.com/~r/OMRStrunk/~3/dyM_Xopgv5g/OpenMRS>
20:37:45 *** bryq has quit IRC
20:37:55 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (trunk): fix for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshipDivision fields... <http://feedproxy.google.com/~r/OMRStrunk/~3/C4iD4kRBlVA/OpenMRS> || New Changeset: OpenMRS (1.8.x): fix for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshipDivision fields... <http://feedproxy.google.com/~r/OMRStrunk/~3/ln-_06NxCd0/OpenMRS> || New Changeset: OpenMRS (1.7.x): fix for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshipDivision fields... <http://feedproxy.google.com/~r/OMRStrunk/~3/C1gO9g9w1es/OpenMRS> || New Changeset: OpenMRS (1.6.x): fix for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshipDivision fields... <http://feedproxy.google.com/~r/OMRStrunk/~3/PMWcMWtiMQs/OpenMRS>
20:46:10 <downeym> *testing svn*
20:55:42 <downeym> looks like we got it. :)
21:00:50 *** dkayiwa has joined #openmrs
21:06:41 *** dkayiwa has quit IRC
21:06:57 *** dkayiwa has joined #openmrs
21:16:22 *** surangak has quit IRC
21:32:30 *** bwolfe has quit IRC
21:38:57 *** rafa_ has quit IRC
21:43:56 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (1.8.x): Testing OpenMRS ID Commit <http://feedproxy.google.com/~r/OMRStrunk/~3/T1GxdEIzNf0/OpenMRS>
21:45:36 *** lh has quit IRC
21:47:38 *** downeym has quit IRC
21:59:48 *** dkayiwa has left #openmrs
22:02:48 *** cta has quit IRC
22:07:29 *** Hazamonzo_ has joined #openmrs
22:08:10 *** Hazamonzo has quit IRC
22:50:00 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (trunk): another small tweak for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshi... <http://feedproxy.google.com/~r/OMRStrunk/~3/8XjU4Nko_Lc/OpenMRS> || New Changeset: OpenMRS (1.8.x): another small tweak for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshi... <http://feedproxy.google.com/~r/OMRStrunk/~3/B5uHUNmrqOg/OpenMRS> || New Changeset: OpenMRS (1.7.x): another small tweak for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshi... <http://feedproxy.google.com/~r/OMRStrunk/~3/mP8kZvorwP0/OpenMRS> || New Changeset: OpenMRS (1.6.x): another small tweak for: TRUNK-2307: Edit this Patient (Long Form) does not properly store region, subregion, or townshi... <http://feedproxy.google.com/~r/OMRStrunk/~3/bBXH9nprKVw/OpenMRS>
23:09:05 *** gbastien has joined #openmrs
23:21:41 *** mandric has quit IRC
23:32:48 *** r0bby has joined #openmrs
23:32:48 *** ChanServ sets mode: +v r0bby
23:33:07 *** robbyoconnor has quit IRC