IRC Chat : 2011-07-14 - OpenMRS

00:01:27 *** lh has quit IRC
00:02:25 <djazayeri> asgoyal: you checked out with scm?
00:02:38 <djazayeri> so now you have ~5 different projects?
00:18:36 <wyclif> djazayeri, can you review this asap https://source.openmrs.org/cru/CR-TRUNK-413
00:18:44 <wyclif> am waiting on it to release
00:18:49 <djazayeri> sure
00:18:59 <wyclif> thanks
00:19:12 <wyclif> djazayeri, am heading home, i will look at the comments when i get home
00:19:20 <wyclif> am release from home
00:20:12 <djazayeri> ok
00:25:42 *** wyclif has quit IRC
00:29:41 *** gbastien has quit IRC
00:36:24 <asgoyal> djazayeri: no i still have one project
00:37:01 <asgoyal> djazayeri: i followed the link that you gave me
00:37:24 <djazayeri> is that because you have an older version of m2e which has the advanced options for "group projects" or "single project" or something?
00:38:55 <djazayeri> asgoyal: i.e. did you do this? "Click Advanced, and uncheck "separate projects for modules""
00:39:08 <asgoyal> oh no
00:39:24 <asgoyal> i mean i do that?
00:40:16 <djazayeri> If you actually checked out the code using m2e and SCM, and you didn't consciously change that, you should have ~5 projects now
00:40:28 <asgoyal> there is no such option there
00:40:34 <asgoyal> like in advance
00:40:43 <djazayeri> right, I don't have that option either because they got rid of it (sadly)
00:40:44 <asgoyal> there is resolve workspace projects
00:40:48 <asgoyal> oh
00:41:04 <asgoyal> what should i do then?
00:41:28 <djazayeri> You're saying that you don't see projects: openmrs, openmrs-api, openmrs-test, ...?
00:41:36 <asgoyal> nope
00:41:39 <asgoyal> just one folder
00:41:49 <asgoyal> and that contains all those folders
00:42:13 <djazayeri> can you get on connect.openmrs.org and share your screen with me so I can see what's going on?
00:42:53 <asgoyal> sure
00:43:37 <asgoyal> i need to register or enter as guest?
00:43:44 <djazayeri> guest is fine
00:43:56 <djazayeri> are you using windows or mac? Or linux?
00:44:22 <asgoyal> ubuntu
00:44:49 <djazayeri> oh, never mind, you can't share your screen. get on skype and contact me there, we can do a skype call with screen sharing
00:45:01 <asgoyal> djazayeri: do you want to come on skype that will be easy
00:45:04 <asgoyal> oh nice ok
00:45:43 <asgoyal> djazayeri: your offline?
00:57:02 *** wanswins has quit IRC
00:58:10 *** jwishnie has quit IRC
01:00:21 *** wanswins has joined #openmrs
01:08:32 *** wyclif has joined #openmrs
01:12:32 <wyclif> djazayeri, are you done?
01:12:36 <djazayeri> yes
01:12:41 <wyclif> ok, thanks
01:13:29 <wyclif> am bundling html form entry 1.7.3
01:14:20 <djazayeri> that's right
01:34:10 <wyclif> there is a new version html widgets, i wonder it is worth upgrading
01:34:25 <wyclif> i think i will stick with those that are tested against 1.8.0
01:34:51 <wyclif> will make the switch in 1.8.2
01:34:58 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (1.8.x): back porting, Follow up to Person attribute fields are not displayed when entering a new patient - TRUNK-2443 <http://feedproxy.google.com/~r/OMRStrunk/~3/0e4ca5jSPfs/OpenMRS> || New Changeset: OpenMRS (trunk): Follow up to Person attribute fields are not displayed when entering a new patient - TRUNK-2443 <http://feedproxy.google.com/~r/OMRStrunk/~3/XM02xsU8YuY/OpenMRS>
02:08:18 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (1.8.x): back porting, Removing a stray comment - TRUNK-2443 <http://feedproxy.google.com/~r/OMRStrunk/~3/-576NOBrsBE/OpenMRS> || New Changeset: OpenMRS (trunk): Removing a stray comment - TRUNK-2443 <http://feedproxy.google.com/~r/OMRStrunk/~3/81-ctGO_I8Y/OpenMRS>
02:17:47 *** asgoyal has quit IRC
03:46:43 *** mandric has joined #openmrs
04:03:11 *** wyclif has quit IRC
04:08:44 *** wyclif has joined #openmrs
04:09:14 *** wyclif has joined #openmrs
04:19:32 *** Suranga has joined #openmrs
04:20:23 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (1.8.x): [maven-release-plugin] prepare for next development iteration <http://feedproxy.google.com/~r/OMRStrunk/~3/ikFWw0nNj-s/OpenMRS> || New Changeset: OpenMRS (root:): [maven-release-plugin] copy for tag 1.8.1 <http://feedproxy.google.com/~r/OMRStrunk/~3/KC6T4G2Gr3c/OpenMRS> || New Changeset: OpenMRS (1.8.x): [maven-release-plugin] prepare release 1.8.1 <http://feedproxy.google.com/~r/OMRStrunk/~3/VMLlZbuv6bo/OpenMRS>
04:23:42 <wyclif> djazayeri, hi
04:30:40 *** wansantos has joined #openmrs
04:30:40 *** wanswins has quit IRC
04:35:08 *** wansantos has quit IRC
04:45:15 *** Suranga has quit IRC
05:20:39 *** Echidna has quit IRC
06:02:57 *** pascal` has quit IRC
06:07:53 <wyclif> djazayeri, hi
06:08:00 <djazayeri> hi
06:08:22 <djazayeri> wyclif: what's up?
06:08:42 <wyclif> have you received the announcement?
06:08:50 <wyclif> for the 1.8.1 release?
06:09:15 <wyclif> can i send it to you so that you forward it?
06:09:21 <djazayeri> not yet no
06:09:36 <wyclif> i sent u a copy first
06:09:41 <wyclif> for proof reading
06:09:45 <wyclif> but it is too late
06:10:12 <wyclif> it is okay if i send it to implementors and devs
06:10:21 <wyclif> because i can post to those i think
06:10:42 <wyclif> djazayeri, i cant send to announce
06:10:54 <djazayeri> have you sent to dev and impl yet?
06:11:30 <djazayeri> I have a couple comments, if you haven't.
06:11:58 <djazayeri> There's no specific need to send out the email tonight, right? Why not just queue it up to send to announce tomorrow morning when downey can approve it?
06:13:40 <wyclif> i haven't yet sent it to dev and impl
06:13:49 <djazayeri> I just emailed you comments.
06:14:03 <djazayeri> I recommend you just go to sleep now and send it tomorrow morning when it can be approved.
06:14:07 <wyclif> but i have already sent the log post
06:14:13 <wyclif> sorry blog post
06:14:20 <wyclif> ok
06:14:35 <djazayeri> That's fine, if the email doesn't happen until 12 hours after the blog post people will survive.
06:14:36 <djazayeri> :-)
06:14:42 <djazayeri> gotta run now myself.
06:14:45 <djazayeri> tty tomorrow
06:20:08 <wyclif> ok, goodnight
06:50:01 *** muthah has joined #openmrs
06:58:40 *** pascal` has joined #openmrs
07:00:50 *** kiran has joined #openmrs
07:01:01 *** dkayiwa has joined #openmrs
07:12:09 *** magoo has joined #openmrs
07:19:22 *** robbyoconnor has quit IRC
07:23:35 <magoo> i have started the application today morning and i'm getting errors which i will paste on pastebin
07:24:44 *** mandric has quit IRC
07:26:00 <dkayiwa> ok
07:27:48 <magoo> the url is http://pastebin.com/SV0354S0
07:32:44 *** goutham has joined #openmrs
07:34:32 <magoo> dkayiwa have u seen the errors
07:34:38 <dkayiwa> ok
07:37:24 *** yanokwa has joined #openmrs
07:37:24 *** ChanServ sets mode: +v yanokwa
07:46:36 <dkayiwa> magoo: can you try to dirrectly connect to your mysql now?
07:47:15 <magoo> okay
07:48:49 <magoo> mysql is running
07:53:19 <dkayiwa> yes but can your dirrectly connect to it with a particular user name and password? magoo
07:54:05 <magoo> using command line
07:54:38 <dkayiwa> can you check the openmrs runtime properties file and confirm it has the same user name and password magoo?
07:56:21 <magoo> am getting the following error phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. it must the user name and password
07:56:50 <dkayiwa> yes thats why openmrs cannot also connect to it
07:57:21 <magoo> let me try to rectify the problem
07:57:27 <dkayiwa> ok
07:58:23 <magoo> but let me ask is it possible to have to application running on a single mysql server
07:59:11 <dkayiwa> meaning?
08:00:44 <magoo> is it possible to have two application running on a single mysql server i have another application am using and it also uses mysql server others some kind off port compition the application am running is called joomla for web designing
08:00:58 <dkayiwa> yes
08:01:10 <magoo> its possible
08:01:16 <dkayiwa> yes
08:01:57 <magoo> but how come that joomla is running and openmrs is refusing to run
08:03:20 <magoo> MySQL said: Documentation #1045 - Access denied for user 'root'@'localhost' (using password: NO)
08:06:09 <dkayiwa> because you gave openmrs the wrong user name and password combination
08:06:14 <dkayiwa> joomla has the correct ones
08:06:34 <dkayiwa> you need to know the exact username and password for your database server
08:06:46 <dkayiwa> because you will need to give them to openmrs
08:08:16 <magoo> is there away of giving username and password before a run openmrs application
08:12:19 <magoo> if i use mysqladmin command line utility is it possible
08:12:38 <dkayiwa> yes
08:12:51 <dkayiwa> openmrs the run time properties file for openmrs
08:13:45 <magoo> these files are found in openmrs folder right
08:13:52 <dkayiwa> https://wiki.openmrs.org/display/docs/Overriding+OpenMRS+Default+Runtime+Properties
08:13:53 <OpenMRSBot> <http://ln-s.net/8c91> (at wiki.openmrs.org)
08:16:09 <magoo> you mean these files are editable
08:16:30 <dkayiwa> which files?
08:18:17 <magoo> openmrs runtime files
08:19:50 <dkayiwa> yes
08:21:39 <magoo> this is what am seeing on the wikilink i have opened i have pasted everything on pastebin the url is http://pastebin.com/HAx5SAVa
08:22:34 <dkayiwa> is connection.username and connection.password pointing to the correct user name and password for your database?
08:24:35 <magoo> these file are in what folder?
08:24:52 <dkayiwa> the file which has the contents you sent me
08:25:56 *** rafa has joined #openmrs
08:25:56 *** ChanServ sets mode: +v rafa
08:26:19 <magoo> ive just copied and pasted from the link not the folder https://wiki.openmrs.org/display/docs/Overriding+OpenMRS+Default+Runtime+Properties
08:26:20 <OpenMRSBot> <http://ln-s.net/8c91> (at wiki.openmrs.org)
08:28:05 <dkayiwa> read that page careful
08:28:19 <dkayiwa> it will tell you how to find your runtime proeperties file
08:28:59 <magoo> am seeing the openmrs-standalone-runtime is this the file am supposed to edit
08:29:19 <dkayiwa> where do u see it?
08:29:36 *** Echidna has joined #openmrs
08:29:42 *** ChanServ sets mode: +v Echidna
08:33:41 <magoo> this is what am seeing in the file i have just opened url http://pastebin.com/2XjYfCwk is the right file
08:35:18 <dkayiwa> make sure that the connection.username and connection.password have the correct values
08:36:11 <magoo> okay
08:49:57 *** bryq has joined #openmrs
08:49:57 *** ChanServ sets mode: +v bryq
08:53:18 *** kiran has quit IRC
08:53:42 *** danielf` has joined #openmrs
08:53:42 *** ChanServ sets mode: +v danielf`
08:55:22 <magoo> ERROR 1044 (42000): Access denied for user ''@'localhost' to database am getting this error
08:56:14 <dkayiwa> let me see the contents of your runtime proprties file
09:09:57 *** ChanServ sets mode: +v pascal`
09:38:31 *** goutham has quit IRC
09:38:57 <magoo> i have failed to find the file it seems i was editing the wrong file
09:39:22 <dkayiwa> have u followed the instruction on the wiki link i sent u?
09:39:29 <dkayiwa> at the bottom
09:39:39 <dkayiwa> how to find your run time properties file
09:59:09 <magoo> yes i have followed the instructions
09:59:48 <dkayiwa> where do the logs point as the location of your runtime properties file?
10:03:23 *** sunbiz has joined #openmrs
10:03:24 *** bwolfe has joined #openmrs
10:03:24 *** ChanServ sets mode: +o bwolfe
10:03:42 *** magoo has quit IRC
10:03:54 *** ChanServ sets mode: +v sunbiz
10:05:40 <bwolfe> dkayiwa, rafa, hey
10:05:50 <rafa> bwolfe: hey!
10:06:02 <rafa> bwolfe: do you have a ticket for me :)
10:06:20 <bwolfe> was just loading that up. sorry I forgot last night :-/
10:06:40 <rafa> rafa: No problem. I'm working on the meta meanwhile.
10:08:04 <bwolfe> if you're ever bored or stuck, you can always look at this report "tickets with attachments" and apply review/apply to trunk and open post-commit reviews: https://tickets.openmrs.org/secure/IssueNavigator.jspa?mode=hide&requestId=10072
10:08:10 <OpenMRSBot> <http://ln-s.net/8zah> (at tickets.openmrs.org)
10:08:59 *** dkayiwa has quit IRC
10:16:16 *** dkayiwa has joined #openmrs
10:17:02 <bwolfe> rafa, the next best place to looks is the next release and tickets assigned there: https://tickets.openmrs.org/secure/Dashboard.jspa?selectPageId=10055
10:17:07 <OpenMRSBot> <http://ln-s.net/8zal> (at tickets.openmrs.org)
10:17:26 <bwolfe> rafa, take that blocker ticket. https://tickets.openmrs.org/browse/TRUNK-2433
10:18:18 <bwolfe> rafa, or https://tickets.openmrs.org/browse/TRUNK-2381 (in the dataentrystatistics module)
10:18:21 <rafa> bwolfe: thanks, I know where to look for tickets :)
10:19:01 <rafa> bwolfe: I'll take trunk.
10:19:03 *** magoo has joined #openmrs
10:22:59 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: openmrs_tag documentation? <http://forum.openmrs.org/viewtopic.php?f=11&t=797#p3012>
10:24:48 <magoo> i have managed to rectify the problem its now running
10:26:22 <bwolfe> magoo, what was the final solution?
10:27:57 <magoo> its finaly working i had to supply the right username and password
10:29:12 <magoo> dkayiwa i located the file and edited its now working
10:31:46 <dkayiwa> oh good magoo
10:32:33 <magoo> man i was so confused let me even have lunch
10:35:55 <dkayiwa> oh i see
10:45:59 *** goutham has joined #openmrs
10:47:27 <dkayiwa> bwolfe: what do you think i should work on now?
10:48:04 <magoo> so i can customize openmrs according to the hospital needs and ways of operation
10:48:11 <bwolfe> dkayiwa, you still have an open ticket :-p
10:48:23 <dkayiwa> magoo: yes
10:48:33 <dkayiwa> bwolfe: which one? :)
10:48:41 <bwolfe> and did you see sunbiz's comment? how hard would it be to change to a standard output format (or even just html?)
10:49:13 <bwolfe> dkayiwa, and the first revision is incorrect on https://tickets.openmrs.org/browse/RESTWS-166?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs
10:49:25 <OpenMRSBot> <http://ln-s.net/8zat> (at tickets.openmrs.org)
10:49:26 <dkayiwa> bwolfe: will need to first read about docbook
10:49:27 <bwolfe> you only put the ticket id into one commit (as seen from source tab)
10:52:47 <dkayiwa> bwolfe: i think i used a wrong commit number :)
10:54:25 *** goutham has quit IRC
10:58:00 <dkayiwa> bwolfe: edited it to have only the correct revision number
11:02:55 <bwolfe> thanks
11:04:50 <dkayiwa> bwolfe: should i go ahead and read about docbook?
11:06:14 <bwolfe> dkayiwa, I'd actually suggest html first. seems just as portable...or at least as portable we'd need
11:06:24 <dkayiwa> ok
11:07:03 <sunbiz> dkayiwa: http://www.dpawson.co.uk/docbook/tools.html
11:07:11 <sunbiz> http://www.michael-a-fuchs.de/
11:07:19 <dkayiwa> thanks sunbiz
11:07:24 <sunbiz> ... and big book : http://www.docbook.org/tdg5/en/html/ch01.html
11:07:31 <dkayiwa> 8)
11:07:48 <sunbiz> dkayiwa: if u want to do something... I can take a stab at it as well
11:08:11 <dkayiwa> sunbiz: that would be great :D
11:08:58 <dkayiwa> so sunbiz, should i wait for you to take a stab?
11:09:01 <sunbiz> should that be another ticket??
11:09:18 <dkayiwa> maybe
11:09:35 <sunbiz> called convert ResourceDocCreator to docbook??
11:09:46 <dkayiwa> yes
11:10:19 <sunbiz> dkayiwa: if u are finished with the confluence output... then I can try it now...
11:10:44 <dkayiwa> sunbiz yes am done with it
11:10:53 <sunbiz> bwolfe: what do u suggest??
11:11:06 <dkayiwa> :)
11:11:51 <bwolfe> sunbiz, I don't see the output going into anything but the wiki page or the help.jsp page. so working to put it into docbook and then getting a confluence plugin for docbook installed seems like a lot of work
11:11:56 <sunbiz> dkayiwa: is there a reason why we aren't using javadoc more?
11:12:07 <bwolfe> however, I would like to see it not be in confluence wiki format. thats why I suggested just using html
11:13:20 <dkayiwa> sunbiz: meaning?
11:13:28 <sunbiz> bwolfe: yes, docbook is more like HTML
11:13:33 <sunbiz> just more flexible
11:13:38 <sunbiz> and u can create fragments
11:13:42 <sunbiz> and assemble them
11:13:50 <sunbiz> which offcourse is also doable in HTML
11:14:04 <bwolfe> dkayiwa, questions on https://source.openmrs.org/cru/CR-MOD-227 for you
11:14:15 <dkayiwa> yes just seen it
11:14:29 <bwolfe> sunbiz, can you import or paste docbook into confluence as it is now?
11:15:45 *** james_regen has joined #openmrs
11:15:45 *** ChanServ sets mode: +v james_regen
11:17:03 <sunbiz> bwolfe: https://plugins.atlassian.com/plugin/details/43179
11:17:09 <sunbiz> http://blogs.atlassian.com/confluence/2011/05/5-wiki-extensions-for-technical-writers-to-enhance-documentation.html
11:17:12 <OpenMRSBot> <http://ln-s.net/8zb1> (at plugins.atlassian.com)
11:17:14 <OpenMRSBot> <http://ln-s.net/8zb2> (at blogs.atlassian.com)
11:18:50 <bwolfe> sunbiz, so thats a "no" for our instance?
11:18:53 <sunbiz> dkayiwa: I meant something like the display in representation... has javadoc comments
11:20:10 <sunbiz> that can be used to say what will be displayed... for user say: "username + fullname (for concise display purposes)"
11:20:10 <dkayiwa> sunbiz: not sure am getting you well
11:20:27 <dkayiwa> can u give an example?
11:20:56 <sunbiz> from the UserResource... in the getDisplay() javadoc comment... we have this return description: username + fullname (for concise display purposes)
11:21:49 <sunbiz> so... in the REST doc... the documentation for representation part under display can take that comment and add what is display for UserResource
11:22:12 <sunbiz> bwolfe: yes... "no" without the plugin
11:22:22 *** dkayiwa has quit IRC
11:22:29 <sunbiz> I only see a Word doc import in our confluence at the moment
11:22:48 <sunbiz> and its not very good :P
11:23:00 <bwolfe> sunbiz, and what benefit does docbook have over just doing a quick conversion from conf markup to html?
11:25:53 <bwolfe> sunbiz, argh! should have done an svn update before doing my edits
11:26:06 <sunbiz> bwolfe: it is very close to HTML...
11:26:16 <sunbiz> yes yes... always should do that :P
11:26:58 <sunbiz> bwolfe: https://help.ubuntu.com/community/DocBook#What%20are%20the%20Advantages%20of%20DocBook?
11:27:05 <OpenMRSBot> <http://ln-s.net/8zb7> (at help.ubuntu.com)
11:37:33 *** dkayiwa has joined #openmrs
11:46:59 <magoo> if i have local domain setup and its networked and i have window server as the domain controller and the machine and user a registered onto my domain if someone just enter the url http://localhost:8080/openmrs-standalone will he be able to access the application or there permission i have to first steup
11:47:48 <dkayiwa> magoo: could you try it out?
11:47:49 <bwolfe> magoo, you'd have to replace "localhost" with the machine's ip address
11:48:33 <dkayiwa> bwolfe: should all resources subclass BaseDelegatingResource?
11:49:21 <bwolfe> dkayiwa, they don't have to
11:49:29 <dkayiwa> ohhhhhhhhhhhhh
11:49:32 <bwolfe> but it does make things easier if your resource is based on an object
11:49:58 <dkayiwa> my code makes that assumption :(
11:50:16 <magoo> if use the domain name for example http://mydomain.org/openmrs-standalone
11:50:42 <bwolfe> dkayiwa, I thought you used the Resource interface? that one /is/ required
11:52:04 <dkayiwa> bwolfe: how should i get the available representations for a resource?
11:52:30 <dkayiwa> say if a resource implements only the Resource interface? bwolfe
11:55:11 <bwolfe> the same way the framework gets it...
11:55:19 <bwolfe> it looks for annotations and/or specific methods
11:55:20 <dkayiwa> oh let me check
12:01:24 *** magoo has quit IRC
12:04:13 <bwolfe> dkayiwa, your help.form doesn't show the "links" property
12:04:29 <dkayiwa> let me check
12:08:41 <dkayiwa> bwolfe: missing /ws/ ?
12:09:49 <bwolfe> dkayiwa, that is missing too, but I'm not as concerned about that...people can figure that out pretty easily :-p
12:10:01 <bwolfe> whats missing is "links" next to ref and default
12:10:09 <bwolfe> it is a property on every refresentation
12:10:14 <bwolfe> *representation
12:15:24 <dkayiwa> ok
12:16:43 *** bwolfe has quit IRC
12:21:36 *** bwolfe has joined #openmrs
12:21:36 *** ChanServ sets mode: +o bwolfe
12:27:23 <bwolfe> sunbiz, all of my requests are going to the BaseRestController.unknownResource method now...
12:28:45 <sunbiz> hmmm... :(
12:29:46 <sunbiz> @RequestMapping(value = "/rest/1.0/**") ... should be this I guess
12:32:50 *** exisls has joined #openmrs
12:34:50 <sunbiz> bwolfe: is that correct??
12:36:09 <bwolfe> sunbiz, didn't fix it for me
12:43:23 <bwolfe> sunbiz, works if I take 1.0 out of the personcontroller mapping
12:43:32 <bwolfe> does spring not like those versions in there?
12:43:37 <sunbiz> yes
12:43:49 <sunbiz> should have edited the moduleApplicationContext
12:43:56 <sunbiz> forgot to make that change
12:44:18 <sunbiz> webModuleApplicationContext.xml ??
12:44:57 <bwolfe> sunbiz, but its still finding my personcontroller
12:45:06 <bwolfe> and it works without the 1.0 in the url
12:45:32 <sunbiz> bwolfe: does it?? it doesnt find for me
12:45:41 <sunbiz> did u change the url in that controller??
12:46:14 <bwolfe> sunbiz, if I change "1.0" to "10" it works
12:46:15 <bwolfe> so spring might not like the dot in the url mapping :-/
12:47:38 <sunbiz> https://jira.springsource.org/browse/SPR-5778
12:47:47 <sunbiz> yes... I remember seeing this... earlier :P
12:48:07 <sunbiz> The resolution is to use useDefaultSuffixPattern = false on DefaultAnnotationHandlerMapping.
12:52:03 *** bwolfe has quit IRC
12:52:44 *** exisls has quit IRC
12:58:34 *** bryq2 has joined #openmrs
12:59:29 *** bwolfe has joined #openmrs
12:59:42 *** ChanServ sets mode: +o bwolfe
13:01:43 <bwolfe> sunbiz, sorry, lost internet connect after you linked to spring ticket
13:02:05 <bwolfe> that only is for trailing periods, isn't it?
13:02:51 <sunbiz> bwolfe: yes
13:02:54 <sunbiz> seems like
13:02:59 <sunbiz> because its not helping
13:03:13 * bwolfe tries the resolution int he ticket anyway
13:03:13 <bwolfe> sunbiz, you've tried it?
13:03:35 <sunbiz> yes... I tried the setting that property
13:03:48 *** downeym has joined #openmrs
13:03:48 *** ChanServ sets mode: +o downeym
13:03:48 *** OpenMRSBot sets mode: +o downeym
13:03:49 <sunbiz> but I was thinking Im not able to set the property by overriding the bean
13:06:02 <sunbiz> <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
13:06:03 <sunbiz> <property name="useDefaultSuffixPattern" value="false" />
13:06:03 <sunbiz> </bean>
13:07:46 <sunbiz> bwolfe: this should work... right??
13:09:09 *** bwolfe has quit IRC
13:12:04 <sunbiz> bwolfe: https://jira.springsource.org/browse/SPR-6164
13:12:09 <sunbiz> bw??
13:12:17 <sunbiz> :P
13:13:21 *** wanswins has joined #openmrs
13:13:24 *** wyclif has quit IRC
13:13:37 <wanswins> hi all!
13:14:10 <wanswins> houston, i have a problem at installation: "A core module failed to start. Make sure that all core modules (with the required minimum versions) are installed and starting properly."
13:14:27 <wanswins> anyone can help me?
13:14:28 <wanswins> org.openmrs.module.OpenmrsCoreModuleException: The following modules are marked as 'core' by OpenMRS but were unable to start: logic v0.5,
13:14:29 <wanswins> at org.openmrs.module.ModuleUtil.checkOpenmrsCoreModulesStarted(ModuleUtil.java:866)
13:15:04 <sunbiz> wanswins: what other modules do u have installed??
13:15:11 <wanswins> is at instalation
13:15:23 <wanswins> i choose to not install modules on wizard
13:15:26 <wanswins> is this?
13:15:28 *** bwolfe has joined #openmrs
13:15:28 *** ChanServ sets mode: +o bwolfe
13:15:34 <sunbiz> did the installation complete?
13:15:45 <sunbiz> bwolfe: https://jira.springsource.org/browse/SPR-6164
13:15:54 <wanswins> you said go to login? no
13:16:14 <wanswins> at initialsetup it go back with a message "The following modules are marked as 'core' by OpenMRS but were unable to start: logic v0.5,"
13:16:22 <wanswins> it's permission or what?
13:17:04 <wanswins> please help me
13:17:11 <sunbiz> from what u describe... the logic module could not start
13:17:20 <sunbiz> and there could be a few reasons for it
13:17:39 <sunbiz> looking at the logs might tell you the full picture...
13:17:52 <sunbiz> can you pastebin the log somewhere??
13:17:58 <wanswins> i've tried to install in two different remote machine
13:18:02 <dkayiwa> wanswins: try doing this: delete the ../tomcat/webapps/openmrs folder and then restart tomcat
13:18:04 <wanswins> in my machine, it's ok!
13:18:34 <wanswins> paste log here?
13:18:55 <bwolfe> sunbiz, argh! we have to wait for spring 3.1 ??
13:19:05 <bwolfe> wanswins, use pastebin.com, then give us the url
13:19:07 <wanswins> INFO - ModuleActivator.startup(32) |2011-07-14 13:11:16,935| Starting the Reporting Module ...
13:19:08 <wanswins> WARN - InitializationFilter$InitializationCompletion$1.run(980) |2011-07-14 13:11:16,936| A core module failed to start. Make sure that all core modules (with the required minimum versions) are installed and starting properly.
13:19:08 <wanswins> org.openmrs.module.OpenmrsCoreModuleException: The following modules are marked as 'core' by OpenMRS but were unable to start: logic v0.5,
13:19:08 <wanswins> at org.openmrs.module.ModuleUtil.checkOpenmrsCoreModulesStarted(ModuleUtil.java:866)
13:19:08 <wanswins> at org.openmrs.module.ModuleUtil.startup(ModuleUtil.java:136)
13:19:08 <wanswins> at org.openmrs.api.context.Context.startup(Context.java:816)
13:19:09 <wanswins> at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:952)
13:19:09 <wanswins> at java.lang.Thread.run(Thread.java:636)
13:19:44 <wanswins> dkayiwa, ok, i will try
13:19:50 <sunbiz> bwolfe: I like /rest/v1/patient
13:19:57 <sunbiz> till the time Spring releases 3.1
13:20:11 <bwolfe> hmm, maybe
13:20:26 <bwolfe> or we just use 1. and hope htat by the time we need 1.1 spring has released 3.1 :-)
13:22:10 *** gbastien has joined #openmrs
13:26:16 <sunbiz> bwolfe: did u comment on the ticket??
13:26:41 *** gbastien has quit IRC
13:28:08 *** bwolfe has quit IRC
13:30:51 *** bwolfe has joined #openmrs
13:30:51 *** ChanServ sets mode: +o bwolfe
13:38:11 *** magoo_ has joined #openmrs
13:39:17 *** gbastien has joined #openmrs
13:40:22 *** jriley has joined #openmrs
13:40:57 <bwolfe> sunbiz, what ticket was I supposed to comment on? the version url one you did and rafal is pushing on? :-)
13:42:35 <sunbiz> RESTWS-167
13:42:42 <sunbiz> I agree with rafal actually...
13:42:49 <sunbiz> on the media type
13:43:49 *** mblanchettte has joined #openmrs
13:43:56 <downeym> Hi mblanchettte and welcome to the #openmrs IRC channel.
13:43:59 <rafa> sunbiz: I hope it wasn't much work for you... if we eventually change the approach.
13:44:25 <sunbiz> nope... :)
13:44:31 <sunbiz> IDE did all the work
13:44:42 <rafa> sunbiz: I thought so :)
13:44:45 <sunbiz> and it didn't work due to Spring :)
13:45:35 <rafa> sunbiz: What kind if problem did you have with Spring?
13:46:08 <sunbiz> https://jira.springsource.org/browse/SPR-6164
13:46:34 *** r3friedman has joined #openmrs
13:46:40 *** r3friedman is now known as r-friedman
13:47:18 <rafa> oh right
13:47:27 <wanswins> my problem go away when I set "yes and no" on step about modules
13:47:30 <rafa> we could live without a dot
13:47:32 <wanswins> it's a bug?
13:47:36 <sunbiz> yes
13:47:41 *** bwolfe has quit IRC
13:47:49 <rafa> anyway it's another reason to consider media types
13:48:02 <sunbiz> but we should live without the version in the URL
13:48:11 <sunbiz> yes... I like media type versioning
13:48:28 *** gauravpaliwal has joined #openmrs
13:48:28 *** ChanServ sets mode: +v gauravpaliwal
13:56:18 *** magoo__ has joined #openmrs
13:56:33 <downeym> Hi magoo__ and welcome to the #openmrs IRC channel.
13:57:10 *** bwolfe has joined #openmrs
13:57:10 *** ChanServ sets mode: +o bwolfe
13:58:35 <r-friedman> +1 for no versioning in the url
13:58:58 *** wyclif has joined #openmrs
14:00:39 <sunbiz> r-friedman++
14:01:13 <r-friedman> bwolfe: in rest/resource/uuid/subresource is the scope of subresource the full content of the subresource table or just those that are linked to resource/uuid?
14:02:22 *** magoo_ has quit IRC
14:02:42 <djazayeri> r-friedman: just the ones that are children of resource/uuid
14:02:56 <r-friedman> sunbiz: tks
14:06:30 <r-friedman> djazayeri: so if you want to find a patient that has id 123456 you have to have an id search available on patient?
14:06:40 <djazayeri> yes
14:09:12 *** bwolfe has quit IRC
14:19:14 *** jwishnie has joined #openmrs
14:22:35 *** bwolfe has joined #openmrs
14:22:35 *** ChanServ sets mode: +o bwolfe
14:23:33 <rafa> bryq: great presentation Piotr!
14:23:50 *** mandric has joined #openmrs
14:27:23 *** bwolfe has quit IRC
14:32:10 <wanswins> thank you all! OpenMRS online at Amazon EC2!
14:32:15 <wanswins> thanks thanks thanks!
14:32:18 <wanswins> see ya
14:32:59 <wanswins> tip: don't select "no" in first question of step 4 (those of modules)
14:33:14 <rafa> wanswins: Awesome! Is there a chance that you document your steps to achieve that?
14:33:30 *** wyclif has joined #openmrs
14:33:31 <wanswins> there is for sure
14:33:38 <wanswins> not now, because i'm very busy
14:33:40 <dkayiwa> or maybe a tips page
14:33:52 <wanswins> but I will add this in my personal kanban
14:33:59 <wanswins> where can I put this?
14:34:09 <wanswins> there's a wiki?
14:34:12 <wanswins> public?
14:34:26 <rafa> wanswins: https://wiki.openmrs.org/
14:34:30 <wanswins> wow
14:34:44 <wanswins> this community is one of the very organized I've seen
14:34:52 <wanswins> very close to Groovy and Grails community
14:34:53 <dkayiwa> :D
14:34:57 <rafa> wanswins: You could put it anywhere under User Guide -> Installing OpenMRS
14:35:20 *** mandric has quit IRC
14:35:21 <rafa> wanswins: Thanks a lot for joining us! :)
14:35:30 *** muthah has quit IRC
14:35:36 <wanswins> I will do this for sure, but I can't tell ya when...
14:35:40 <wanswins> thank you all
14:35:43 <wanswins> gbye!
14:35:54 <rafa> wanswins: Great, thanks! Bye!
14:36:08 <wanswins> I will enter here to help other with too, when I work with OpenMRS again
14:36:10 <wanswins> soon..
14:36:15 *** bryq2 has quit IRC
14:36:18 *** wanswins has quit IRC
14:40:33 *** bwolfe has joined #openmrs
14:40:33 *** ChanServ sets mode: +o bwolfe
14:44:34 <rafa> bwolfe: BaseContextSensitiveTest; nested exception is java.lang.NoClassDefFoundError, any idea? Seems like a problem with some maven dependency?
14:45:03 <rafa> I've got this trying to compile trunk
14:45:21 *** bwolfe has quit IRC
14:52:59 *** gauravpaliwal has quit IRC
14:54:39 *** pascal` has quit IRC
14:54:54 *** wyclif has quit IRC
14:56:59 *** bwolfe has joined #openmrs
14:56:59 *** ChanServ sets mode: +o bwolfe
15:06:02 *** mblanchettte has quit IRC
15:09:42 *** wyclif has joined #openmrs
15:10:59 *** cta has joined #openmrs
15:11:11 <r-friedman> downeym: +1 for labs
15:12:18 <downeym> s/labs/dev test/
15:12:19 <downeym> :)
15:19:05 *** magoo__ has quit IRC
15:19:16 *** gbastien has quit IRC
15:30:56 <djazayeri> bryq: a suggestion for doing demos...
15:31:35 <djazayeri> You made the most common mistake that programmers make while doing a demo…you have examples like "Test 1", "Test 2", "Test 3"
15:32:05 <djazayeri> You should go through and give realistic names to things, even if they don't have real-world content.
15:32:33 *** jriley has left #openmrs
15:33:00 <djazayeri> bryq: For example call your packages "District Hospitals in Rwanda", "HAS Lab Results Form", etc.
15:33:25 <djazayeri> Others should note the advice too. :-)
15:34:02 <bryq> djazayeri: I wasn't thinking about the demo data in this way, thanks for the comment :)
15:34:16 <bryq> djazayeri: It will not happen anymore in the future :)
15:34:17 <djazayeri> The goal is not just to show specific functionality but to "paint a mental picture" and get people thinking about future possibilities, not just current progress.
15:34:33 <dkayiwa> i have taken the advice myself for any time i will ever do a demo ::)
15:34:52 <rafa> me too :)
15:34:55 *** sunbiz has quit IRC
15:34:58 <dkayiwa> :D
15:36:07 <djazayeri> bryq: But I liked the demo anyway. I'm really excited to see the next one, where you create a new package version.
15:36:37 <djazayeri> One thing we forgot to mention: you could also put a package on a static web server
15:37:10 <dkayiwa> me too. it made me understand more about the metadatasharing module. i used to know very little about it :)
15:37:11 <bryq> djazayeri: Yes, we forgot abut this
15:37:24 *** bwolfe has quit IRC
15:37:44 <djazayeri> In retrospect it would have been a good idea to have a small package on a static server somewhere, and actually download it, install it, and show that the content is there
15:37:46 <bryq> djazayeri: During the next presentation I'll mention about this feature
15:37:58 *** downeym has quit IRC
15:43:32 <rafa> djazayeri: I did META-55 today and want to release 0.9.0.1. Do you want me to include any outstanding fixes?
15:44:24 <rafa> djazayeri: Or shall we wait for htmlformentry?
15:44:29 <djazayeri> I haven't ever successfully imported a form with the new version
15:44:34 <djazayeri> That's because of the formentry bug, right?
15:44:51 *** mandric has joined #openmrs
15:44:58 <rafa> djazayeri: You can go ahead and correct the uuid to be 36 characters.
15:45:09 <rafa> djazayeri: It must succeed then
15:45:37 <djazayeri> I'd say: release 0.9.0.1 now, but don't announce it until Mark has released the next version of HFE, so that we can give people useful advice about how to upgrade and proceed.
15:45:38 <rafa> djazayeri: There's the same problem in the has lab form I sent you.
15:46:27 <rafa> djazayeri: ok
15:46:44 <rafa> I can send you corrected packages.
15:46:59 <djazayeri> sure, could you?
15:47:10 <djazayeri> (I assume it's just open the zip, search-replace that uuid, and re-zip?)
15:47:42 <rafa> well, I'll download them once again from the form bank and apply all needed changes.
15:48:13 <rafa> so that they'll have no extra changes than needed
15:48:24 <djazayeri> okay, that's better
15:49:03 *** bryq1 has joined #openmrs
15:50:06 <djazayeri> back in a bit
15:50:23 *** bryq has quit IRC
15:54:28 *** bwolfe has joined #openmrs
15:54:28 *** ChanServ sets mode: +o bwolfe
15:55:01 *** cta has quit IRC
16:22:59 *** goutham has joined #openmrs
16:24:08 <rafa> djazayeri: I've attached the forms to !ticket HTML-184
16:24:15 <rafa> !ticket HTML-184
16:24:15 <OpenMRSBot> rafa: Allow me to help you with that. More details on ticket HTML-184 can be found at http://tickets.openmrs.org/browse/HTML-184
16:25:28 <rafa> djazayeri: let me know if you experience any problems
16:25:33 <djazayeri> okay, i'll try that out.
16:25:43 <rafa> Otherwise, I'll release 0.9.0.1 tomorrow morning.
16:26:18 <rafa> djazayeri: Great, thanks!
16:26:25 <rafa> djazayeri: Have a nice day!
16:26:46 <rafa> Bye guys!
16:29:13 *** gauravpaliwal has joined #openmrs
16:29:13 *** ChanServ sets mode: +v gauravpaliwal
16:29:57 <gauravpaliwal> Hi, which existing module is best to study to learn unit testing in OpenMRS ?
16:33:44 <dkayiwa> if a module has a wrongly configured spring bean, does any one know how to prevent the problem of the entire openmrs not loading? bwolfe:djazayeri:rafa:wyclif:etc
16:34:00 <djazayeri> dkayiwa: I don't know that it's possible
16:34:23 <djazayeri> Maybe there's a way for the module framework to realize that happened, and stop that particular module, and restart spring, but it may be too late by that point.
16:34:34 <djazayeri> gauravpaliwal: Well, the metadata sharing module has a lot of unit tests.
16:34:42 <dkayiwa> ok
16:34:55 <djazayeri> The actual logic they're testing is quite complex.
16:35:01 <djazayeri> It depends what you want to see an example of.
16:35:43 <gauravpaliwal> djazayeri: basically convention followed by openmrs
16:35:49 <gauravpaliwal> for testing
16:36:12 <djazayeri> Metadata Sharing is a good example of how to do unit tests for a complex module. It has both unit tests of specific functions and api methods, and also some higher-level integration tests
16:36:48 <djazayeri> If you're looking to just get started with unit tests…maybe the basic module has an example?
16:37:44 <gauravpaliwal> djazayeri: http://svn.openmrs.org/openmrs-modules/basicmodule/trunk/omod/src/test/java/org/openmrs/module/basicmodule/ ?
16:37:50 <OpenMRSBot> <http://ln-s.net/8zda> (at svn.openmrs.org)
16:38:09 <djazayeri> yes. that's pretty minimal...
16:39:01 <rafa> gauravpaliwal: Actually, I would suggest you to have a look at the webservices rest module
16:39:21 <djazayeri> If you want to see examples of modules that test against an in-memory database, look at any of: metadata sharing, reporting, html form entry
16:39:33 <djazayeri> oh, webservices.rest is probably a good example too.
16:39:50 *** dkayiwa has quit IRC
16:40:22 <gauravpaliwal> djazayeri: thanks :) looks like metadata is good candidate :)
16:40:57 <djazayeri> webservices.rest may be better because the module is mavenized
16:41:06 <djazayeri> whereas the others I mentioned are still layed out in the old style
16:41:20 <rafa> gauravpaliwal: Definitely go for webservices.rest.
16:41:55 <gauravpaliwal> djazayeri: rafa: thats interesting fact.
16:42:04 <rafa> gauravpaliwal: I wrote the other one and I'm not that proud of it ;)
16:42:19 <rafa> I mean tests :P
16:42:24 <rafa> The module is awesome :D
16:42:51 <gauravpaliwal> rafa: I passed on boundary in Software testing course of mine university :(
16:43:08 <gauravpaliwal> rafa: my test cases will be even worse :(
16:44:19 <rafa> gauravpaliwal: No worries, you'll be the master of tests soon :D
16:46:30 <djazayeri> gauravpaliwal: are you trying to decide _what_ sort of things to test?
16:46:39 <djazayeri> or just how to organize them?
16:47:34 <gauravpaliwal> djazayeri: wiki page tells about the first , I am trying to explore second one , how to oragnize and in memory testing stuff.
16:47:49 <djazayeri> okay, yes, look at webservices.rest then
16:49:14 *** gauravpaliwal has quit IRC
16:53:14 *** dkayiwa has joined #openmrs
16:54:31 *** rafa has quit IRC
16:55:33 *** pascal` has joined #openmrs
17:03:45 *** dkayiwa has quit IRC
17:05:49 *** bwolfe has quit IRC
17:06:33 *** muthah has joined #openmrs
17:15:41 *** dkayiwa has joined #openmrs
17:19:24 *** suho has joined #openmrs
17:19:24 *** ChanServ sets mode: +v suho
17:20:27 *** dkayiwa has quit IRC
17:22:14 *** goutham has quit IRC
17:23:34 *** dkayiwa has joined #openmrs
17:29:22 <suho> hi
17:29:27 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: openmrs_tag documentation? <http://forum.openmrs.org/viewtopic.php?f=11&t=797#p3016> || OpenMRS Forum: Re: openmrs_tag documentation? <http://forum.openmrs.org/viewtopic.php?f=11&t=797#p3015> || OpenMRS Forum: Re: openmrs_tag documentation? <http://forum.openmrs.org/viewtopic.php?f=11&t=797#p3014> || OpenMRS Forum: Re: openmrs_tag documentation? <http://forum.openmrs.org/viewtopic.php?f=11&t=797#p3013>
17:29:33 <suho> when i click on Manage Forms>Add Forms
17:29:41 <suho> I'm getting an error
17:30:13 <suho> called
17:30:14 <suho> org.springframework.beans.InvalidPropertyException: Invalid property 'xslt' of bean class [org.openmrs.Form]: Getter for property 'xslt' threw exception; nested exception is java.lang.reflect.InvocationTargetException
17:30:33 <djazayeri> suho: this may be a known issue in trunk
17:30:39 <suho> yes
17:30:43 <djazayeri> I believe if you search for that stack trace in jira you'll find int
17:30:46 <djazayeri> find it
17:30:50 <djazayeri> is the ticket still open?
17:30:55 <djazayeri> possibly you just need to svn update trunk?
17:30:57 <suho> yes i know
17:31:08 <suho> ha ok thanks
17:33:00 *** downeym has joined #openmrs
17:33:00 *** ChanServ sets mode: +o downeym
17:33:00 *** OpenMRSBot sets mode: +o downeym
17:33:26 *** robbyoconnor has joined #openmrs
17:33:26 *** ChanServ sets mode: +v robbyoconnor
17:33:44 *** asgoyal has joined #openmrs
17:35:40 <suho> djazayeri, I took an up but seems its done not do any good :(
17:36:09 <djazayeri> suho: do you need to be running trunk?
17:36:11 <suho> is there any alternative methods to do this ?
17:36:19 <djazayeri> can you use 1.8.x?
17:36:20 <suho> yes
17:36:25 <suho> ok
17:36:37 <suho> great
17:37:06 <suho> djazayeri, thanks :)
17:37:41 *** wluyima has joined #openmrs
17:37:47 *** wyclif has quit IRC
17:39:14 *** wluyima has quit IRC
17:39:23 *** wyclif has joined #openmrs
17:43:29 *** elliott_w has joined #openmrs
17:43:42 *** ChanServ sets mode: +o elliott_w
17:49:01 *** danielf` has quit IRC
17:50:26 *** muthah has quit IRC
17:53:09 *** jriley has joined #openmrs
17:54:39 *** bwolfe has joined #openmrs
17:54:39 *** ChanServ sets mode: +o bwolfe
18:04:45 *** goutham has joined #openmrs
18:08:47 *** rafa has joined #openmrs
18:08:47 *** ChanServ sets mode: +v rafa
18:23:52 *** sunbiz has joined #openmrs
18:23:52 *** sunbiz has left #openmrs
18:35:09 *** mandric has quit IRC
18:38:14 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: OpenMRS.org is temporarily offline while we correct a few database problems. Our wiki remains available: http://wiki.openmrs.org/ <http://twitter.com/OpenMRS/statuses/91561945865535488>
18:48:51 *** gbastien has joined #openmrs
18:59:59 *** yanokwa has quit IRC
19:07:01 *** jriley has quit IRC
19:12:16 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: OpenMRS.org is again available. Sorry for the inconvenience! <http://twitter.com/OpenMRS/statuses/91577404191027201>
19:20:26 *** lh has joined #openmrs
19:34:48 *** mandric has joined #openmrs
19:35:33 *** pascal` has quit IRC
19:48:01 *** dkayiwa has quit IRC
19:48:04 *** mandric has quit IRC
19:52:10 *** james_regen has quit IRC
19:53:04 *** muthah has joined #openmrs
19:56:37 <djazayeri> rafa: I finally got around to importing the package. It worked. Woohoo!
19:57:00 <djazayeri> I still recommend releasing MDS to the module repo, but not publicizing it yet until we've got a compatible HFE.
19:57:06 <wyclif> bwolfe, did you get the release email?
19:57:24 <bwolfe> not as of 15 seconds ago
19:57:28 <wyclif> sorry! did you get the release email for 1.8.1?
19:57:41 <bwolfe> not as of 18 seconds ago
19:57:44 <rafa> djazayeri: I'm happy to hear that :)
19:58:02 <rafa> djazayeri: I'll release it tomorrow.
19:58:06 <djazayeri> ok
20:03:07 <wyclif> djazayeri, bwolfe, how can i help with webservices?
20:03:33 <wyclif> i was wanted to work on customizing the xml for now
20:04:12 <wyclif> did we fix the fetching of module resources by ResourceDocCreator
20:04:27 <wyclif> sorry about my english
20:04:57 <bwolfe> wyclif, yes, that was a separate ticket. (you should have gotten an email/comment about that other ticket work by daniel)
20:07:09 <bwolfe> the most pressing thing is figuring out what we'll do about versioning. RESTWS-167 and RESTWS-168
20:07:20 <bwolfe> saptarshi committed the first option.
20:07:42 <bwolfe> wyclif, can you look up amazon's api and see how they do versioning? do they use the header or a url piece?
20:07:49 <bwolfe> (and comment on that ticket)
20:12:20 *** r-friedman has quit IRC
20:12:41 <wyclif> qok
20:13:06 *** suho has quit IRC
20:20:22 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: #OpenMRS 1.8.1 is now available - learn more and upgrade: http://bit.ly/pUVriY #eHealth #ICT4D <http://twitter.com/OpenMRS/statuses/91597638469820416>
20:23:19 *** bwolfe has quit IRC
20:23:51 <wyclif> they use request parameters, so i say url see http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?CHAP_OperationListAlphabetical.html
20:23:55 <OpenMRSBot> <http://ln-s.net/8zfi> (at docs.amazonwebservices.com)
20:24:12 <wyclif> version is in the list of parameters
20:24:40 <djazayeri> wyclif, that url isn't specific enough
20:24:53 <djazayeri> what method has version in its list of parameters?
20:26:07 <wyclif> there is a table of parameters on that link
20:26:35 <wyclif> djazayeri, sorry!
20:26:46 <djazayeri> I see on the Common Request Parameters link
20:27:07 <wyclif> yes
20:27:15 <wyclif> that is it, is a javascript toggle
20:27:17 <djazayeri> I don't think this is a good example to look at
20:27:37 <djazayeri> back in 2005 people hadn't figured out the best practices yet
20:28:05 <wyclif> but it shows they do their versioning via a request parameter and not header
20:28:36 <djazayeri> Yes, but this defaults to the 2005-10-05 version of their API.
20:28:53 <djazayeri> which to me is a sign that we shouldn't look to this API as a best-practice example
20:30:16 <rafa> djazayeri: Alternately, specify a software version, such as 2010-11-01. For a list of valid version numbers, refer to the Product Advertising API Release Notes. Note that the latest version of Product Advertising API is not used by default.
20:31:27 <djazayeri> I know that this isn't the 2005 version we're looking at. But they're taking pains to be backwards-compatible to 2005, which is before people understood REST properly.
20:32:03 <rafa> Google seems to be after the URI pattern
20:32:06 <rafa> http://code.google.com/apis/customsearch/v1/overview.html
20:32:09 <OpenMRSBot> <http://ln-s.net/8zfq> (at code.google.com)
20:33:28 <djazayeri> interesting
20:33:54 <rafa> http://code.google.com/apis/buzz/v1/using_rest.html
20:33:55 <OpenMRSBot> <http://ln-s.net/8zfs> (at code.google.com)
20:38:10 *** bryq1 has quit IRC
20:38:26 *** bwolfe has joined #openmrs
20:38:26 *** ChanServ sets mode: +o bwolfe
20:38:30 *** bryq has joined #openmrs
20:38:30 *** ChanServ sets mode: +v bryq
20:39:51 *** dkayiwa has joined #openmrs
20:40:06 *** goutham has quit IRC
20:46:12 *** asgoyal has quit IRC
20:52:25 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: RT @gauravpaliwal: someone on IRC just said that #OpenMRS "community is one of the very organized I've seen" #awesome #fb <http://twitter.com/OpenMRS/statuses/91602715217625088>
21:00:03 *** deadpool has joined #openmrs
21:14:24 <wyclif> bwolfe, did you mean i add the link to the ticket or that we should use a parameter and which ticket is that?
21:14:34 <wyclif> i have been out of touch with WS
21:15:09 <dkayiwa> :)
21:15:31 <dkayiwa> but in touch with 1.8.1 :D
21:15:39 *** elliott_w has quit IRC
21:15:43 <wyclif> dkayiwa, oh yeah
21:15:51 <dkayiwa> :)
21:16:17 <wyclif> djazayeri, am out of WS tickets that are urgent, should i work on other things
21:19:57 *** elliott_w has joined #openmrs
21:19:57 *** ChanServ sets mode: +o elliott_w
21:20:05 *** elliott_w has quit IRC
21:24:17 *** bryq has quit IRC
21:25:20 <deadpool> djazayeri: is there a module that can modify registration of patients?
21:26:43 <deadpool> like i wanna add occupation and monthly salary to the registration page along with say the address and all that
21:26:58 *** jwishnie has quit IRC
21:32:31 *** rafa has quit IRC
21:34:21 *** gbastien has quit IRC
21:35:46 *** jwishnie has joined #openmrs
21:36:27 <djazayeri> wyclif: are there still WS tickets in the sprint?
21:36:37 *** downeym is now known as k4mjd
21:37:17 <wyclif> i could work on this https://tickets.openmrs.org/browse/RESTWS-143
21:37:27 <wyclif> but it is unders should
21:37:35 <wyclif> but it is under should
21:37:44 <djazayeri> it's under 1.0 also, not 0.8. :-)
21:37:59 <djazayeri> sprint 2 I mean
21:38:22 <djazayeri> So, I see that there are no available tickets for the sprint, which presumably means you can work on something else
21:38:41 <djazayeri> for example you could do the code review of one of my order entry tickets that's the last one remaining on that dashboard. :-)
21:38:57 <djazayeri> There's also RESTWS-158
21:39:05 <djazayeri> but that's probably not ready-to-work yet
21:40:26 <djazayeri> deadpool: can you use person attributes for that?
21:40:52 <djazayeri> (when you say the registration page, do you mean a page in the registration module? or the create patient page?)
21:42:43 *** dkayiwa has quit IRC
21:44:28 <deadpool> djazayeri: i dunno how to use person attributes
21:45:11 <deadpool> and it would be nice to put that information on the registration page of patients
21:45:20 <djazayeri> what registration page?
21:45:53 <djazayeri> some info is here: https://wiki.openmrs.org/x/fQ0z
21:46:39 <djazayeri> create a Person Attribute Type, and to add it to the create patient page you need to add it to the "Viewing" ones.
21:46:40 <deadpool> so when i create a patient i have to put in info right
21:47:47 <deadpool> ah wait i just found that page lemme play around a bit and see if i can figure it out myself thanks
21:50:41 <deadpool> djazayeri: ok so i added it to attributes and see where i can put it in but is there a way let people enter in the information at registration time instead of going into manage patients and then entering in the information?
21:51:03 <djazayeri> I think if you add it to Viewing attributes, it shows up on creation.
21:51:18 <djazayeri> What version of OpenMRS are you on actually?
21:51:23 <deadpool> 1.9
21:51:31 <djazayeri> trunk? okay, that should work then
21:51:36 <deadpool> yeah
21:52:15 <deadpool> uhh where is viewing attributes?
21:52:23 <djazayeri> manage person attribute types
21:52:35 <deadpool> yeah that is where i created it
21:52:39 <deadpool> i don't see it there
21:53:22 <deadpool> oh wait listing and viewing of person attribute types
21:54:44 <deadpool> but don't see creation of it
21:54:53 <deadpool> just to see it in list or on the header
21:55:02 <djazayeri> add it to Viewing
21:55:08 <djazayeri> (did you try that?)
21:55:14 <deadpool> there are couple of viewing
21:55:15 <deadpool> s
21:55:56 <djazayeri> if you want it to happen on the create patient screen, I think adding it to the Patient Viewing Attributes list will do that.
21:55:59 *** k4mjd is now known as downeym
21:58:40 *** wyclif has quit IRC
21:59:14 <deadpool> djazayeri: uhh none of them do that i put occupation in all of the fields nothing is showing in the Create a new patient page
22:00:37 <djazayeri> hold on let me check
22:00:41 *** lh has quit IRC
22:03:56 <djazayeri> btw, deadpool have you done an svn update on trunk recently?
22:04:48 <deadpool> not in the last month
22:04:55 <deadpool> i can do that
22:04:58 <djazayeri> yes, do that.
22:04:59 <djazayeri> see https://tickets.openmrs.org/browse/TRUNK-2443
22:05:19 <djazayeri> let me know if it continues to not work after you svn update
22:05:26 <deadpool> ok will do
22:13:28 <deadpool> djazayeri: for compiling on the command line i go into trunk and then do a sud mvn jetty:build right?
22:14:00 <djazayeri> I usually say mvn package
22:14:15 <djazayeri> or, to be truly safe, mvn clean install
22:14:25 <djazayeri> jetty is only for running
22:14:40 <deadpool> ah yes ok
22:17:26 <deadpool> how often would you say i should update the trunk?
22:17:37 <djazayeri> depends what you're doing
22:17:42 <djazayeri> why are you running off trunk anyway? :-)
22:18:02 <djazayeri> Unless you're doing trunk development, you should really be running off 1.8.x, or some other release branch.
22:18:10 <deadpool> when i first started out the guide said online to check it out and that is what i have done
22:18:18 <djazayeri> good point.
22:18:46 <deadpool> well i have done some trunk development but that was in november of last year and then i started doing module development
22:19:04 <deadpool> and just followed procedure
22:19:09 <djazayeri> Really what's better to do is to run off of the release branch that you're targeting your modules to.
22:19:20 <deadpool> that is probably very true
22:19:23 <djazayeri> I.e. if you're writing modules that you want to be compatible back to 1.6, you should run off of 1.6.x
22:19:31 <djazayeri> If you want the latest stable release, do 1.8.x
22:19:34 <djazayeri> etc
22:20:45 <deadpool> i was interested in both doing core development to help you guys out and then also doing module development to help a hospital out and just got side tracked and tried setting up two different environments and it didn't really work out so i gave up but i should look into doing the second deployment
22:24:33 <deadpool> djazayeri: thanks updated and it is showing
22:24:38 <djazayeri> np
22:26:54 <deadpool> djazayeri: i am getting this error when i load create a patient http://pastebin.com/pmznmxV4
22:27:33 <djazayeri> what locale do you work in?
22:27:55 <djazayeri> actually, never mind that.
22:28:06 <deadpool> ok
22:28:15 <djazayeri> deadpool: I assume you left the Monthly Income field blank when creating the patient?
22:28:27 <djazayeri> and that you made that Person Attribute Type's format be java.lang.Double?
22:30:21 <deadpool> djazayeri: i didn't leave it blank i just loaded the page and i get that error
22:30:30 <djazayeri> when trying to create the patient?
22:30:47 <deadpool> like i put in the name and the birthdate and whether male or female and then that error shows up
22:31:18 <deadpool> and the format is java.lang.Float
22:31:18 <djazayeri> Okay, I think you just found a bug in the code we just released today as 1.8.1.
22:31:43 <deadpool> ok
22:31:56 <djazayeri> Good that you found it, bad that it's there.
22:32:36 <djazayeri> Can you use the Error Reporting mechanism to report that error's stack trace?
22:32:52 <deadpool> yeah i can do that
22:33:06 <deadpool> but just wanted to let you know i am still able to get to the page
22:34:01 <djazayeri> But is the page broken?
22:34:06 <deadpool> nope
22:34:17 <djazayeri> then where's that stack trace from?
22:34:33 <deadpool> that is from the command line
22:34:53 <djazayeri> so, you see that stack trace, but the app behaves correctly?
22:34:57 <deadpool> and i just tested it with other types of data and so far only does it for Float values
22:35:00 <deadpool> yes
22:35:07 <djazayeri> even with Float?
22:35:25 <deadpool> yes even with Float values
22:35:30 <djazayeri> hmm, okay.
22:35:37 <djazayeri> I bet that Double also breaks in the same way.
22:36:31 <deadpool> do you want me to test other values and see if anything else shows up?
22:36:45 <djazayeri> sure, that'd be good.
22:36:57 <djazayeri> and create a ticket summarizing what works and what doesn't.
22:37:04 <djazayeri> or rather what gives errors and what doesn't.
22:37:56 <deadpool> ok will do
22:42:45 <deadpool> so far Char, Integer, Float
22:43:31 <djazayeri> but things like org.openmrs.Concept work fine?
22:43:41 <deadpool> yes
22:44:39 <deadpool> well except for org.openmrs.Drug.discountinuedReason
22:44:56 <deadpool> and org.openmrs.Patient.exitedReason
22:45:29 *** lh has joined #openmrs
22:47:03 <djazayeri> The actual fix for this should be simple.
22:47:35 <djazayeri> in PersonAttribute.getHydratedObject(), do a quick check like if (getValue() == null) return null;
22:47:37 <djazayeri> at the top
22:47:51 <djazayeri> can you test that out and see if it solves the problem?
22:48:07 <deadpool> djazayeri: also i am getting for org.openmrs.Patient.exitreason there is no class found
22:48:20 <deadpool> same for the discontinued reason
22:48:24 <deadpool> yeah i can do the test
22:49:36 <djazayeri> I don't know what org.openmrs.Patient.existreason is even there for...
22:51:07 <djazayeri> hmm, okay, that's a second bug.
22:51:52 <deadpool> yeah so for org.openmrs.Patient.exitReason and org.openmrs.DrugOrger.discontinuedReason it says class not found
22:52:02 <djazayeri> i.e. we get the list of possible attribute type formats from FieldGenHandlerFactory.getHandlers()
22:52:21 <djazayeri> but that includes some things that aren't legal types
22:52:27 <djazayeri> so, please create two tickets
22:52:32 <djazayeri> one is about Integer, Float, Char
22:52:53 <djazayeri> the other is about the two xyzReason fields
22:54:24 <deadpool> yeah can do what does gethydratedObject do
22:54:51 <djazayeri> All person attributes are stored in the DB as a string
22:55:04 <djazayeri> getHydratedObject converts from that string to the actual intended object type.
22:55:10 <deadpool> ah
22:55:27 <djazayeri> (It's rather hacky. We hope to replace this with a less hacky mechanism in 1.9.)
22:55:36 <deadpool> haha ok
22:57:33 <deadpool> uh quick question that function you gave me. I am looking at the function and if getValue is null won't it already return null
22:58:19 <deadpool> sorry am looking at getHydratedObject and it return getValue so my argument here is aren't we doing the same thing?
22:58:51 <djazayeri> yes, exactly but if getValue() is null it first tries to do some other stuff and prints that ugly error message
22:59:16 <deadpool> ah ok you want me to put it up top then
22:59:16 <djazayeri> But if the value is null, the hydrated value should also be null.
22:59:27 <djazayeri> yes, exactly, to avoid the error message.
23:03:30 <deadpool> djazayeri: thanks for you time and patience
23:06:01 <djazayeri> np, thanks for finding bugs.
23:07:53 <deadpool> djazayeri: your fix works
23:08:14 <deadpool> i just recompiled and don't get any errors for the char, int and float value
23:10:10 <deadpool> well it works and get rid of the exitedReason bug and the discontinuedReason bug too
23:10:36 <deadpool> cause we are returning the value of null before it can check if the object class exists
23:11:44 <djazayeri> yeah, but that's not really "getting rid of the discontinuedReason" bug. :-)
23:11:50 <deadpool> nope
23:12:00 <djazayeri> What happens if you have an attribute type whose format is discontinuedReason
23:12:02 <deadpool> so i will put in two issues then?
23:12:05 <djazayeri> can you set a value for it?
23:12:15 <djazayeri> or do you get an error when you try to save it?
23:12:20 <deadpool> nope it just shows and pulldown box with nothing
23:12:24 <deadpool> didn't try saving
23:13:14 <deadpool> you want me to see what happens?
23:13:18 <djazayeri> do you have a moment to try that out?
23:13:25 <djazayeri> actually, you need to do the following...
23:13:31 <deadpool> yeah i will just recompile it shouldn't take too long
23:13:41 <djazayeri> actually one other thing...
23:14:11 <djazayeri> find or create a coded concept in your dictionary that can serve as "reason order stopped"
23:14:26 <djazayeri> e.g. answers should be something like PATIENT DIED, PATIENT TRANSFERRED OUT, ...
23:14:35 <djazayeri> you may already have one in your dictionary
23:14:57 <djazayeri> then go to manage global properties, and set the property "concept.reasonOrderStopped" to be the id of that concept
23:15:07 <djazayeri> (actually for test purposes any coded concept with answers will work)
23:15:17 <djazayeri> that should cause the dropdown to actually have options.
23:16:39 <deadpool> well the thing is i don't have any concepts for drugs and it gives me a pull down menu with nothing with no error
23:18:26 <djazayeri> right, you need to point that global property at any coded concept to get options there
23:20:38 <deadpool> ah ok
23:23:29 <deadpool> ok so i did that and i get the same thing here
23:23:43 <djazayeri> no options?
23:23:46 <deadpool> class not found exception
23:23:49 <deadpool> and no option
23:23:49 <deadpool> s
23:24:18 <djazayeri> okay, so yes, report that in the ticket
23:24:21 <djazayeri> (and yes, 2 tickets)
23:24:37 <djazayeri> go ahead and attach a patch to the one of them
23:26:48 <deadpool> djazayeri: i put you as a watcher is that fine?
23:26:53 <djazayeri> yes please
23:31:28 <deadpool> djazayeri: done
23:31:48 <djazayeri> thx
23:31:52 <deadpool> np
23:48:54 *** wyclif has joined #openmrs