IRC Chat : 2012-10-19 - OpenMRS

00:18:06 *** mseaton has joined #openmrs
00:18:06 *** ChanServ sets mode: +v mseaton
00:18:12 *** mseaton has left #openmrs
00:57:24 *** andrea__ has quit IRC
00:57:47 *** andrea__ has joined #openmrs
01:50:03 *** r0bby has joined #openmrs
01:50:03 *** ChanServ sets mode: +v r0bby
02:17:51 *** harshadura has quit IRC
02:26:26 *** upul` has joined #openmrs
02:26:26 *** ChanServ sets mode: +v upul`
02:43:11 *** andrea__ has quit IRC
02:43:11 *** andrea_pat has quit IRC
02:43:47 *** upul` has quit IRC
03:16:46 *** upul` has joined #openmrs
03:16:46 *** ChanServ sets mode: +v upul`
03:28:28 *** r0bby has quit IRC
03:29:53 *** r0bby has joined #openmrs
03:29:53 *** ChanServ sets mode: +v r0bby
03:34:18 *** r0bby has quit IRC
03:47:31 *** r0bby has joined #openmrs
03:47:31 *** ChanServ sets mode: +v r0bby
05:01:05 *** kishoreyekkanti has joined #openmrs
05:38:50 *** r0bby is now known as robbyoconnor
06:02:26 *** pascal` has joined #openmrs
06:02:26 *** ChanServ sets mode: +v pascal`
06:10:57 *** dkayiwa has joined #openmrs
06:59:27 *** rafa has joined #openmrs
06:59:27 *** ChanServ sets mode: +v rafa
07:17:52 *** binance has joined #openmrs
07:18:24 <binance> hi rafa. Little help.
07:18:33 <rafa> hi binance
07:18:47 <rafa> yes?
07:19:40 <binance> http://pastebin.com/VDh0Rhfq
07:19:53 <binance> Please check out that error.
07:20:50 <rafa> binance: wrong user or password for the db connection
07:21:15 <binance> my user and password have not changed
07:21:23 <binance> I only reinstalled mysql
07:21:47 <rafa> binance: is it started?
07:21:56 <binance> how do i correct it? when is the runtime.properties file located?
07:22:11 <rafa> binance: are you on windows?
07:22:12 <binance> yes. mysql is running.
07:22:57 <binance> yes. win7
07:23:25 <rafa> binance: so it's probably in c:\Users\your_user_name\Application Data\OpenMRS\
07:24:09 <robbyoconnor> by this time I will have met 2 people from the OpenMRS community :D
07:24:22 <robbyoconnor> by this time tomorrow I will have met 2 people from the OpenMRS community :D
07:24:50 <rafa> robbyoconnor: hi, how are you doing?
07:24:52 <binance> what is the file called?
07:25:03 <rafa> robbyoconnor: openmrs-runtime.properties
07:25:20 <rafa> robbyoconnor: sorry it's for binance ;)
07:25:27 <binance> ok
07:26:24 <binance> unable to locate it
07:27:02 <robbyoconnor> rafa I see how it is!
07:27:14 <rafa> binance: are you using standalone?
07:27:19 <rafa> binance: or war?
07:30:52 *** binance has quit IRC
07:49:08 *** binance has joined #openmrs
07:49:34 <binance> how do I open the runtime properties file and make changes?
07:51:48 <binance> rafa?
07:52:02 <rafa> binance: did you find it?
07:52:10 <binance> yes. i did
07:52:30 <rafa> binance: just use notepad
07:52:34 <rafa> binance: it's a text file
07:54:03 <binance> ok
07:54:20 <binance> what changes to i make?
07:54:39 <rafa> binance: just correct connection.username and connection.password
07:55:24 <rafa> binance: if you mention my name before any question I will get a notification and respond faster :)
07:56:09 <binance> ok
07:58:40 <binance> rafa: my password is 'comming' but in the file i see 'JHN^A4j1kt@Z '. Is it ok to simple replace?
07:59:16 <rafa> binance: yes, you need to correct it
07:59:24 <rafa> binance: and don't share your passwords with us :)
08:02:57 *** binance has quit IRC
08:03:25 *** binance has joined #openmrs
08:03:41 <binance> rafa: i just make changes but same error.
08:04:13 <binance> which username and password are those? openmrs admin user or mysql root user?
08:06:31 <binance> rafa:which username and password are those? openmrs admin user or mysql root user?
08:06:43 *** rafa has quit IRC
08:07:28 <binance> anybody else can help?
08:08:32 <dkayiwa> binance: i can try :)
08:09:18 <binance> dkayiwa: i want to change connection.username and connection.password in runtime.properties file
08:09:34 <binance> dkayiwa: which username and password are those? openmrs admin user or mysql root user?
08:09:44 <dkayiwa> binance: for standalone?
08:09:48 <binance> no
08:10:13 <dkayiwa> binance: for enterprise install?
08:10:28 <binance> for developer
08:10:44 <dkayiwa> binance: why do you want to change them?
08:11:44 <binance> dkayiwa: i have error http://pastebin.com/yxR8rqgT
08:12:27 <dkayiwa> binance: is that in eclipse
08:13:29 <binance> dkayiwa: yes
08:13:48 <dkayiwa> binance: was it working well before
08:14:00 <binance> dkayiwa: in eclipse internal web browser
08:14:17 <binance> dkayiwa: yes it was. until i reinstalled mysql
08:14:50 <dkayiwa> binance: and you gave it a different username password
08:15:21 <binance> dkayiwa: no. same root user and same password
08:16:03 <dkayiwa> binance: ok change your runtime properties file to match the same password/username
08:17:58 <binance> dkayiwa: i have. no changes. same error.
08:18:24 <dkayiwa> binance: which username did u give mysql
08:18:50 <binance> i use root user
08:19:21 <dkayiwa> binance: and what username is in your runtime properties file
08:19:42 <binance> dkayiwa: openmrs_user
08:20:00 <binance> dkayiwa: which i replaced with 'root'
08:20:33 <dkayiwa> binance: can you pastebin your runtime properties file
08:22:11 <binance> dkayiwa: http://pastebin.com/7weEgCkm
08:24:10 <dkayiwa> binance: where is your runtime properties file
08:26:21 <binance> dkayiwa: i coppied it from c:\users\binance\appdata\.. to ...\openmrs\webapp directory
08:26:38 <dkayiwa> binance: why
08:27:33 <binance> dkayiwa: because when i build i get the error ..unable to locate runtime properties file in ...\openmrs\webapp
08:29:39 <dkayiwa> binance: can you give me your entire stack trace
08:29:48 <dkayiwa> binance: not just a section
08:31:42 *** binance has quit IRC
08:34:26 *** binance has joined #openmrs
08:42:57 *** binance has quit IRC
08:52:14 *** binance has joined #openmrs
08:52:42 <binance> dkayiwa: you are not responding?
08:57:07 *** binance has quit IRC
09:03:08 *** binance has joined #openmrs
09:03:21 <binance> somebody help!
09:03:30 <dkayiwa> dkayiwa: binance: can you give me your entire stack trace
09:03:30 <dkayiwa> [11:58am] dkayiwa: binance: not just a section
09:04:00 <binance> what is stack trace?
09:04:14 <dkayiwa> binance: the console output in eclipse
09:06:22 <binance> dkayiwa: http://pastebin.com/cj9eJ632
09:09:10 <dkayiwa> binance: which client do you use to connect to your mysql instance?
09:11:53 <binance> dkayiwa: mysql command line shell
09:12:11 <dkayiwa> binance: did you any where set the user name to admin?
09:12:23 <dkayiwa> binance: Caused by: java.sql.SQLException: Access denied for user 'admin'@'localhost' (using password: YES)
09:12:34 <binance> no
09:13:09 <dkayiwa> binance: rename your runtime properties file, then run again and tell me what happens
09:23:11 <binance> i have renamed. same result
09:23:57 <dkayiwa> binance: pastebin it
09:27:32 *** binance has quit IRC
10:40:26 *** robbyoconnor has quit IRC
10:46:09 *** kjoseph has joined #openmrs
10:46:57 <kjoseph> hi every one
10:47:05 <kjoseph> dkayiwa:hi
10:47:08 <dkayiwa> hi kjoseph
10:49:29 <kjoseph> dkayiwa: mvn clean install failure still, so coming to see you on sunday
10:49:57 <dkayiwa> kjoseph: ok. can you pastebin the log?
10:57:18 <kjoseph> dkayiwa: error pasted at: http://pastebin.com/h0NfMW8x
10:57:38 <dkayiwa> kjoseph: ok
10:58:16 <dkayiwa> kjoseph: in which dirrectory are you executing mvn clean install?
10:58:27 <dkayiwa> kjoseph: can you also respond a bit more quickly?
11:00:49 *** eshan has quit IRC
11:03:02 <dkayiwa> kjoseph: are you there?
11:03:32 <kjoseph> dkayiwa: sorry, now i have used the openmrs-core directory and mvn clean install seems to be working, its downloading
11:04:16 <dkayiwa> kjoseph: then in that case you do not need to come on sunday since its working
11:04:29 <dkayiwa> kjoseph: am trying to make you get used to remote support
11:04:31 <kjoseph> dkayiwa: where? the downloads are running now in cmd
11:05:10 <dkayiwa> kjoseph: the reason is because so many times you will not have physical support but only remote and you need to make things work
11:05:17 <dkayiwa> kjoseph: so this is part of the training :)
11:05:57 <dkayiwa> kjoseph: you need to also improve your response time
11:06:28 <dkayiwa> kjoseph: this is because, someone may be having limited time and hence it is critical to pay attention to them and respond as quickly as you can
11:06:52 <dkayiwa> kjoseph: so irc communication skills are part of the training you need to go through
11:07:06 <dkayiwa> kjoseph: if i let you come on sunday, you will miss out on learning this :)
11:07:17 <dkayiwa> kjoseph: are we together?
11:08:29 <kjoseph> dkayiwa: yes
11:08:46 <dkayiwa> kjoseph: so keep me updated on how the download goes
11:09:39 <dkayiwa> kjoseph: so have you now learn't what the problem was? (as in what you had not done correctly? )
11:12:57 *** kjoseph has quit IRC
11:19:11 *** upul` has quit IRC
12:15:19 *** kishoreyekkanti has quit IRC
12:17:03 *** kishoreyekkanti has joined #openmrs
12:29:48 *** pascal` has quit IRC
12:37:08 *** wyclif has quit IRC
13:09:02 *** rafa has joined #openmrs
13:09:26 *** rafa is now known as Guest95477
13:09:51 *** Guest95477 is now known as rafal
13:10:04 *** rafal is now known as rafa_
13:10:10 *** rafa_ is now known as rafa__
13:14:58 *** mseaton has joined #openmrs
13:14:58 *** ChanServ sets mode: +v mseaton
13:16:14 *** mseaton has left #openmrs
13:20:50 *** wyclif has joined #openmrs
13:36:52 *** andrea__ has joined #openmrs
13:41:22 <dkayiwa> hi rafa__
13:50:02 *** rafa___ has joined #openmrs
13:50:52 *** rafa__ has quit IRC
13:53:45 <dkayiwa> hi rafa___
14:00:25 <rafa___> hi dkayiwa
14:00:52 <dkayiwa> rafa___: did you see my question for META-265?
14:00:56 <dkayiwa> !ticket META-265
14:00:58 <OpenMRSBot> dkayiwa: [#META-265] Merging Concepts creates duplicate concept names which results in a stack trace on import - OpenMRS JIRA - https://tickets.openmrs.org/browse/META-265
14:01:13 <rafa___> no
14:01:22 *** binance has joined #openmrs
14:01:31 <binance> please help http://pastebin.com/jRc4LzhR
14:01:55 <binance> rafa: please help http://pastebin.com/jRc4LzhR
14:02:18 <djazayeri> good morning everyone
14:02:27 <djazayeri> is cpower late for scrum?
14:02:28 <rafa___> dkayiwa: so you mean there are invalid concepts on the export server?
14:02:29 <binance> http://pastebin.com/jRc4LzhR
14:03:10 <dkayiwa> rafa___: yes
14:03:25 <dkayiwa> rafa___: the export server comes with duplicates
14:03:46 *** andreap_ has joined #openmrs
14:04:05 <binance> anyone to help, http://pastebin.com/jRc4LzhR
14:04:09 <dkayiwa> binance: that could be a network connection problem. can you try again?
14:04:15 <rafa___> dkayiwa: that's not a bug then
14:04:22 <dkayiwa> rafa___: ok
14:04:44 <rafa___> dkayiwa: to confirm in the attached package there are duplicate concept names?
14:04:46 *** cpower has joined #openmrs
14:04:57 <dkayiwa> rafa___: let me do so
14:05:05 <cpower> Sorry bwolfe isn't here to smack me that it's scrum time...
14:05:22 <cpower> So ready, set, let's go!
14:05:27 <cpower> !scrumon cpower
14:05:27 * OpenMRSBot says the DAILY SCRUM MEETING is STARTING. This meeting should not last longer than 15 minutes. Please hold other comments until the end of the meeting, or message someone privately. Thank you! ScrumMaster cpower- you may begin when ready.
14:05:56 <cpower> Order djazayeri, andrea__, dkayiwa, rafa, wyclif
14:06:16 <djazayeri> Yesterday:
14:06:33 <djazayeri> * Working on UI for archivists to manage requests for paper charts (Mirebalais)
14:06:38 <djazayeri> * learning about knockout-js
14:06:40 <djazayeri> Today
14:06:56 <djazayeri> * Updating Kenya EMR demo server to the latest code, with Rowan
14:07:01 <djazayeri> * More of the same from yesterday
14:07:12 <djazayeri> * Mapping radiology orderables to LOINC
14:07:14 <djazayeri> No blockers
14:07:33 <andreap_> Thursday
14:07:33 <andreap_> Merck documntation
14:07:33 <andreap_> Git interactive tutorial as Ben suggested
14:07:33 <andreap_> Module using Maven Archetype
14:07:33 <andreap_> Today
14:07:33 <andreap_> Finish Merck documentation
14:07:35 <andreap_> Create Module
14:07:37 <andreap_> Blocker - get 1.8.x code back to fix test
14:07:39 <andreap_> Question - is wiki page re Module using Maven Archetype up to date?
14:08:05 <dkayiwa> IRC
14:08:05 <dkayiwa> Back ported to 1.8.x and 1.9.x: Changed by information not updated when concept names/synonyms are edited, added or removed - TRUNK-3337
14:08:06 <dkayiwa> Just about to finish: Merging Concepts creates duplicate concept names which results in a stack trace on import - META-265
14:08:06 <dkayiwa> No Blockers
14:08:54 <rafa___> Yesterday: * Dev call * Committed:
14:08:59 <rafa___> + META-258 Import concept dictionary + META-279 Subscribing UI
14:09:09 <rafa___> * Added some documentation at https://wiki.openmrs.org/display/docs/Getting+and+using+the+MVP-CIEL+concept+dictionary
14:09:26 <rafa___> Today:
14:09:36 <rafa___> * Committed: + META-292: Speed up concepts count + Added ability to specify initial version + Fixed rolling back only the failed version import
14:09:46 <rafa___> (not pushed yet due to some proxy issues :/) No blockers.
14:09:53 <rafa___> Git is awesome when bad/no network!
14:10:03 <djazayeri> git++
14:11:04 <wyclif> Thursday:
14:11:04 <wyclif> dev call
14:11:04 <wyclif> push to master approved code for TRUNK-2439, TRUNK-2022, and TRUNK-3717
14:11:04 <wyclif> TRUNK-2705 - Improve concept searching when a concept contains multiple matched concept names
14:11:04 <wyclif> Started on TRUNK-3339 - Manage Providers spinning status wheel turns before entering search terms
14:11:04 <wyclif> Friday:
14:11:06 <wyclif> Complete TRUNK-3339 - Manage Providers spinning status wheel turns before entering search terms
14:11:08 <wyclif> HTML-212- Duplicate provider names shown if user (person) has multiple names
14:11:10 <wyclif>
14:11:12 <wyclif> Blockers: None
14:11:33 <cpower> Blockers: andreap_> Blocker - get 1.8.x code back to fix test
14:11:52 <andreap_> cpower, disregard blocker - I sse correct branch
14:12:27 <cpower> Discussion topics: <andreap_> Question - is wiki page re Module using Maven Archetype up to date?
14:12:31 <rafa___> andreap_: git checkout 1.8.x does not work? or you mean something different?
14:12:43 <djazayeri> andrea__: as far as I know that wiki page is up to date
14:12:45 <rafa___> andreap_: ok
14:13:02 <djazayeri> andreap_: is there a particular question you have about it?
14:14:09 <andreap_> djszayeri, re Maven Archetype - settings.xml
14:14:31 <binance> http://pastebin.com/xDvVvbua
14:14:43 <djazayeri> andreap_: you do need to put something in settings.xml, yes.
14:14:59 <djazayeri> because the plugin is defined in the openmrs maven repo, not in the world-global one.
14:15:03 <andreap_> dajszayeri, I don't have settings.xml in mvn dir - are those in the wiki still correct?
14:15:23 <rafa___> andreap_: you may need to create it
14:15:26 <dkayiwa> binance: try again. your connection timed out
14:15:44 <binance> i have tried about 5 times. same result
14:15:56 <andreap_> rafa__, ok - just like in the wiki?
14:16:03 <rafa___> andreap_: yes
14:16:05 <dkayiwa> binance: yes your connection is very terrible
14:16:34 <dkayiwa> binance: but for the last one, you were almost done as it was on the last project: openmrs-webapp
14:16:39 <andreap_> rafa, ok thanks ansd I'm ok on checkout of 1.8.x too
14:16:49 <dkayiwa> binance: so just try again
14:17:03 <rafa___> andreap_: np
14:25:29 <rafa___> djazayeri: has the call started?
14:25:45 <djazayeri> rafa___: I haven't dialed in yet, hold on
14:26:15 <rafa___> djazayeri: freeconferencing seems to be offline for me :/
14:26:29 <djazayeri> I can probably skype you and skypeout to freeconferencing
14:26:48 <rafa___> ok
14:27:08 <cpower> !scrumoff
14:27:08 * OpenMRSBot says the DAILY SCRUM MEETING has ENDED. This channel is now returned to normal hacking operations. Post-scrum meeting follow-up conversations may now begin.
14:28:30 *** cpower has quit IRC
14:29:17 *** burke has joined #openmrs
14:29:17 *** ChanServ sets mode: +o burke
14:29:52 <binance> ok
14:36:24 <djazayeri> rafa___: calling you now
14:40:27 *** binance has quit IRC
14:54:34 <wyclif> djazayeri, would it be fine to backport a changeset that contains a new service method?
14:55:36 <djazayeri> wyclif: depends, what service method?
14:56:38 *** binance has joined #openmrs
14:56:50 <binance> A core module failed to start. The following modules are marked as 'core' by OpenMRS but were unable to start: logic v0.5.2,
14:57:04 <binance> i have this error msg: A core module failed to start. The following modules are marked as 'core' by OpenMRS but were unable to start: logic v0.5.2,
14:57:08 <binance> plase help
14:57:20 <dkayiwa> binance: can you pastebin the entire stack trace?
14:57:47 <binance> that is all. i was setting up openmrs using the wizard
14:58:21 *** harshadura has joined #openmrs
14:58:24 <wyclif> djazayeri, there is ProviderService.getProviders(String) and i want to add another with an extra argument to includeRetired or not
14:58:33 <wyclif> djazayeri, i guess it should be fine
14:58:37 <djazayeri> wyclif: I approve
14:58:43 <binance> http://pastebin.com/5LGC2M02
14:58:56 <binance> dkayiwa: http://pastebin.com/5LGC2M02
15:00:01 <dkayiwa> binance: are you running from eclipse?
15:00:52 <binance> no... from normal browser
15:01:02 <wyclif> djazayeri, thanks
15:01:24 <dkayiwa> binance: check in the openmrs-webapp project if you have the logic module as bundled in WEB-INF/bundledModules
15:04:25 <binance> dkayiwa: do you mean in ...\openmrs\webapp\src\main\webapp\WEB-INF
15:04:39 <dkayiwa> binance: yes
15:05:07 <binance> yes. there is bundleModules
15:05:34 <dkayiwa> binance: is the logic module there?
15:05:48 <binance> dkayiwa: file name logic-0.5.2.omod
15:06:07 <dkayiwa> binance: did you compile the war file yourself?
15:06:13 <binance> dkayiwa": yes
15:06:40 <dkayiwa> binance: how did you deploy it in tomcat? using tomcat manager?
15:07:52 <binance> i never used tomcat.
15:08:14 <dkayiwa> binance: what are you using?
15:09:15 *** mseaton has joined #openmrs
15:09:15 *** ChanServ sets mode: +v mseaton
15:10:07 <binance> mavan
15:10:34 <dkayiwa> binance: using which command?
15:13:35 <binance> mvn jetty:run
15:14:46 <dkayiwa> binance: can you give me the entire stack trace?
15:15:03 <dkayiwa> binance: what you gave me does not look like the entire log
15:16:46 <binance> dkayiwa:http://pastebin.com/nvYsaU8z
15:18:52 <dkayiwa> binance: still this looks incomplete
15:20:24 <binance> dkayiwa: http://pastebin.com/ivZriARs
15:21:24 <dkayiwa> binance: can you send me one full log instead of just parts?
15:21:30 <dkayiwa> binance: it will make it easier for me
15:23:23 *** rafa___ has quit IRC
15:23:36 *** kishoreyekkanti has quit IRC
15:23:45 <binance> i am using the command prompt. that is all i could copy
15:27:53 <dkayiwa> binance: may be stop and try it again
15:29:55 *** dkayiwa has left #openmrs
15:34:12 *** binance has quit IRC
15:36:30 *** nribeka has joined #openmrs
15:36:30 *** ChanServ sets mode: +v nribeka
15:37:41 *** pascal` has joined #openmrs
15:37:41 *** ChanServ sets mode: +v pascal`
16:13:06 *** andreap_ has quit IRC
16:13:06 *** burke is now known as burke_away
16:13:14 *** andrea__ has quit IRC
16:57:41 *** djazayeri1 has joined #openmrs
17:00:24 *** djazayeri has quit IRC
17:01:44 *** wyclif has quit IRC
17:01:44 *** nribeka_ has joined #openmrs
17:02:31 *** nribeka has quit IRC
17:02:37 *** nribeka_ has quit IRC
17:02:58 *** nribeka has joined #openmrs
17:02:58 *** ChanServ sets mode: +v nribeka
17:05:35 *** wyclif has joined #openmrs
17:14:31 *** pascal` has quit IRC
18:37:18 *** mckorad has joined #openmrs
18:41:21 <mckorad> djazayeri1: Hi, regarding ticket https://tickets.openmrs.org/browse/TRUNK-3622
18:41:55 <mckorad> djazayeri1: what is the handler supposed to do?
18:42:34 *** djazayeri1 is now known as djazayeri
18:42:40 <djazayeri> mckorad: per its javadoc...
18:42:41 <djazayeri> Subclasses of this interface represent different ways of building UI widgets to handle {@link CustomDatatype}s.
18:43:08 <mckorad> djazayeri: ok
18:43:33 <djazayeri> mckorad: the idea is that if a user chooses to have a Visit Attribute whose datatype is "Location", there needs to be a UI widget for them to choose the location
18:43:50 <djazayeri> mckorad: the CustomDatatypeHandler is what controls that UI widget
18:43:56 <mckorad> djazayeri: ok
18:44:57 <djazayeri> mckorad: I believe that we already have a Location widget implemented as a "fieldgen". You'll have to look around in the jsp files to see an example of how these are typically used. Search for <openmrs:fieldgen
18:45:19 <djazayeri> mckorad: so, you probably want to implement the equivalent of BooleanFieldGenDatatypeHandler, but for Location instead of Boolean.
18:45:34 <mckorad> djazayeri: ok..will look into those
18:45:58 <djazayeri> mckorad: see the javadoc on the FieldGenDatatypeHandler interface. It describes the methods you have to implement
18:46:22 <mckorad> djazayeri: yeah
18:56:15 *** nribeka has quit IRC
19:09:14 *** nribeka has joined #openmrs
19:09:14 *** ChanServ sets mode: +v nribeka
19:40:43 <mckorad> djazayeri: I am trying to understand the functionality of the Boolean Dataype...what happens when the user selects the dataype as boolean and its associated handler?
19:42:06 <djazayeri> mckorad: have you tried using the demo server, and creating a location attribute type whose datatype is boolean, and seeing how this looks?
19:43:09 <djazayeri> mckorad: let me set that up for you
19:45:26 <mckorad> djazayeri:sure
19:45:53 <djazayeri> mckorad: see http://demo.openmrs.org/openmrs/admin/locations/locationAttributeTypes.list
19:46:00 <djazayeri> I just created that
19:46:29 <djazayeri> mckorad: now look at http://demo.openmrs.org/openmrs/admin/locations/location.form?locationId=3
19:46:40 <djazayeri> see the "Accepts medicaid patients" question?
19:46:59 <djazayeri> mckorad: (FYI apparently there's a bug in the code around that, because I can't save even after choosing True)
19:47:04 <djazayeri> but that's the general idea
19:47:32 <mckorad> djazayeri: where did you choose true?
19:47:38 <djazayeri> http://demo.openmrs.org/openmrs/admin/locations/location.form?locationId=3
19:48:04 <djazayeri> gotta run to lunch
19:48:17 <mckorad> djazayeri: ok
19:48:56 <djazayeri> mckorad: the point being, each attribute type we create on that Manage Xyz Attribute Types page is then visible as a question on the Manage Xyz page
19:49:37 <djazayeri> mckorad: the CustomDatatype defines a possible type of value (look in the Manage Location Attribute Types page to see there are very few options implemented now), and the CustomDatatypeHandler controls the UI for that
20:00:38 *** burke_away has quit IRC
20:02:14 <mckorad> djazayeri: so we add a Location datatype in the "Add Location Atrribute types" and it should show up a new drop down "Parent Location" in the Manage Location-> Location ?
20:02:26 <mckorad> djazayeri: Is this what is expected?
20:12:40 <djazayeri> mckorad: no
20:13:21 <djazayeri> mckorad: I shouldn't have chosen Location Attributes as an example, because location shows up two places
20:13:28 <djazayeri> mckorad: look at Manage Provider Attributes instead
20:14:16 <djazayeri> mckorad: the idea is that if you created a Provider Attribute (via the UI) called "Works at", whose datatype is your newly-created LocationDatatype...
20:14:43 <djazayeri> mckorad: then on the Manage Providers screens, that provider would have a "Works at:" field, that would have a dropdown of locations.
20:18:00 <mckorad> djazayeri: in the "Create Provider" ?
20:22:28 <djazayeri> mckorad: sure
20:23:25 <mckorad> djazayeri: but we have to do this to the Location Atrribute type and not to the Provider Attribute Type right?
20:24:30 <djazayeri> mckorad: no
20:24:52 <djazayeri> mckorad: Provider Attribute Types control what fields show up on the Manage Provider pages
20:25:12 <djazayeri> Xyz Attribute Types control what fields show up on the Manage Xyz pages
20:25:23 <mckorad> djazayeri: ok
20:26:05 <mckorad> djazayeri: so we have to the same for Location Atrribute Types right?
20:26:25 <mckorad> djazayeri: i mean addind the Location
20:29:54 <djazayeri> mckorad: there is already infrastructure in place that as long as you implement the CustomDatatype and CustomDatatypeHandler, they will automatically be available for all the different OpenMRS types that take attributes
20:30:36 <mckorad> djazayeri: ok
20:33:54 *** nribeka has quit IRC
20:38:18 <wyclif> hi djazayeri
20:38:25 <djazayeri> hi wyclif
20:38:38 <wyclif> djazayeri, am running into a problem
20:39:25 <wyclif> djazayeri, i have a query where i want to get a row count but in the mapping file there is an order-by tag on the set tag
20:40:47 <wyclif> djazayeri, meaning if i try to get add a projection for row count, it will fail on H2 and some DBs because they complain that i have to add a groupBy for the sorted columns which results in hbernate generating an invalid sql query
20:40:51 <wyclif> djazayeri, in summary
20:41:17 *** mckorad has quit IRC
20:42:38 <wyclif> djazayeri mysql and a bunch of DBs are fine with the generated query so we and we have not noticed this in the web app, so it is ok to have a failing test that is ignored to be fixed later and i just ensure the web app works fine?
20:43:34 <djazayeri> wyclif: if the query works in mysql but fails in h2, yes, you can @Ignore it
20:44:26 <wyclif> ok, this is in relation with getCountOfProviders
20:46:14 <wyclif> djazayeri, ok, this is in relation with getCountOfProviders, basically because of the order by on person names in on person.hbml, a query for a row count fails if there a provider with mutliple names or a name/identifier/personname that match the query
21:08:24 *** wyclif has quit IRC
21:25:53 *** mseaton has left #openmrs
22:06:29 *** andreapat has joined #openmrs
22:15:52 *** andreapat has quit IRC
22:45:40 *** wyclif has joined #openmrs
23:34:59 *** djazayeri has quit IRC
23:35:21 *** djazayeri has joined #openmrs
23:35:21 *** ChanServ sets mode: +o djazayeri