# Data quality widget not working

**URL:** <https://talk.openmrs.org/t/data-quality-widget-not-working/11951>\
**Category:** Development\
**Tags:** dataintegrity, gsoc2017\
**Created:** [June 20, 2017, 7:04pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951 "2017-06-20T19:04:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivtej](https://talk.openmrs.org/user_avatar/talk.openmrs.org/shivtej/32/4909_2.png) [@shivtej](https://talk.openmrs.org/u/shivtej)\
**Post date:** [June 20, 2017, 7:04pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/1 "2017-06-20T19:04:25Z")

</div>

I’m stuck in the issue related to patient dashboard: [DINT-77](https://issues.openmrs.org/browse/DINT-77) . _Data Quality Widget_ in the patient dashboard is not working in my machine. These are the changes I’ve made in the coreapps module: [nit · shivtej1505/openmrs-module-coreapps@777d674 · GitHub](https://github.com/shivtej1505/openmrs-module-coreapps/commit/777d6749309378a463ff3032c92a48092aaea73a)

It is supposed to be look like this: ![](https://talk.openmrs.org/uploads/default/original/2X/8/8d28a4b699c0a099e6d1a42392b08fd5bc7ab64b.png)

But it is looking like this:

 ![](https://talk.openmrs.org/uploads/default/original/2X/5/5e21f544c7fd5589e3735304ca04c1b84686b238.png)

I think even other widget aren’t working properly.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [June 25, 2017, 7:02pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/2 "2017-06-25T19:02:37Z")

</div>

@ssmusoke just in case you did not see this. 🙂

---

<div class="post-metadata">

**Author:** ![shivtej](https://talk.openmrs.org/user_avatar/talk.openmrs.org/shivtej/32/4909_2.png) [@shivtej](https://talk.openmrs.org/u/shivtej)\
**Post date:** [June 25, 2017, 7:18pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/3 "2017-06-25T19:18:07Z")

</div>

@dkayiwa , thank but I already got in touch with @ssmusoke and he told me to ask Rafal for help. 🙂

---

<div class="post-metadata">

**Author:** ![shivtej](https://talk.openmrs.org/user_avatar/talk.openmrs.org/shivtej/32/4909_2.png) [@shivtej](https://talk.openmrs.org/u/shivtej)\
**Post date:** [June 25, 2017, 7:22pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/4 "2017-06-25T19:22:21Z")

</div>

@raff , I’m facing a problem due to webpack. It seems like `ui.includeJavascript` fetching scripts from wrong location or webpack is saving compiled scripts in wrong location. There was 404 error on these scripts:

- [http://localhost:8080/openmrs/ms/uiframework/resource/coreapps/scripts/web/coreapps.dashboardwidgets.js](http://localhost:8080/openmrs/ms/uiframework/resource/coreapps/scripts/web/coreapps.dashboardwidgets.js)
- [http://localhost:8080/openmrs/ms/uiframework/resource/coreapps/scripts/web/coreapps.dashboardwidgets.js](http://localhost:8080/openmrs/ms/uiframework/resource/coreapps/scripts/web/coreapps.dashboardwidgets.js)

I’m using SNAPSHOT version of coreaps-module but still I’m facing the issue. When I copied the scripts generated in `omod/target/classes/web/module/resources/scripts/web/` to `omod/src/main/webapp/resources/scripts/web/` , everything worked fine. Could you please look into this ? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [June 26, 2017, 2:54pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/5 "2017-06-26T14:54:01Z")

</div>

@raff do you have any response to the above?

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [June 26, 2017, 2:56pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/6 "2017-06-26T14:56:55Z")

</div>

@shivtej, could you please paste the whole output from maven when doing ‘mvn clean install’ for the coreapps module?

Reading the DINT-77 issue it seems the regular build works for you, is that right? Are you having an issue with the watch command for development?

---

<div class="post-metadata">

**Author:** ![shivtej](https://talk.openmrs.org/user_avatar/talk.openmrs.org/shivtej/32/4909_2.png) [@shivtej](https://talk.openmrs.org/u/shivtej)\
**Post date:** [June 26, 2017, 7:41pm UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/7 "2017-06-26T19:41:34Z")

</div>

@raff , I added coreapps to watched project and it build without error and also `npm run watch` was working without any error but it looks like `ui.includeJavascript` picking scripts from wrong location. When I copied the generated scripts in that location all the widgets start working. That’s how I completed DINT-77 .

Here is the full log of `mvn clean install` on coreapps module - [https://pastebin.com/NAMdDPrJ](https://pastebin.com/NAMdDPrJ) Thanks!

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [June 27, 2017, 8:32am UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/8 "2017-06-27T08:32:07Z")

</div>

It should work, if you update uiframework to the latest (3.12.0-SNAPSHOT) as mentioned in the README:

> For continous development we recommend setting up a server using OpenMRS SDK and adding the coreapps module to watched projects (supported in UI Framework 3.12.0+).

---

<div class="post-metadata">

**Author:** ![shivtej](https://talk.openmrs.org/user_avatar/talk.openmrs.org/shivtej/32/4909_2.png) [@shivtej](https://talk.openmrs.org/u/shivtej)\
**Post date:** [June 27, 2017, 8:54am UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/9 "2017-06-27T08:54:01Z")

</div>

@raff, I did look for the version `3.12.0+` in the `modules.openmrs.org` but only found `3.11.0+` version there. I will clone the `uiframework` module and try again. I’ll let you know if that worked or not.

I guess we should update the `README` to mention the version specified is SNAPSHOT version or we can upload newer version on the `modules.openmrs.org` .

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [June 27, 2017, 8:56am UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/10 "2017-06-27T08:56:59Z")

</div>

@shivtej, I’ll release 3.12.0 today once you confirm it works for you.

---

<div class="post-metadata">

**Author:** ![shivtej](https://talk.openmrs.org/user_avatar/talk.openmrs.org/shivtej/32/4909_2.png) [@shivtej](https://talk.openmrs.org/u/shivtej)\
**Post date:** [June 27, 2017, 10:53am UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/11 "2017-06-27T10:53:51Z")

</div>

@raff, I tried this with the SNAPSHOT version and it worked nicely. I think you should release this version. Thanks for fixing it.

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [June 27, 2017, 11:29am UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/12 "2017-06-27T11:29:30Z")

</div>

Released. @darius, @wyclif, @mogoodrich, could you please add me to maintainters of [https://modules.openmrs.org/#/show/144/uiframework](https://modules.openmrs.org/#/show/144/uiframework) so I can upload it.

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [July 7, 2017, 4:52am UTC](https://talk.openmrs.org/t/data-quality-widget-not-working/11951/13 "2017-07-07T04:52:32Z")

</div>

@raff sorry for the delay, I just made you a maintainer.

FYI the only way I know to do this (since it’s broken in the modulus UI) is to:

- ssh into the machine
- connect to mysql as root (with a password Cintia gave me, from our lp account)
- (after selecting to find your user\_id…)
- insert into module\_user (module\_maintainers\_id, user\_id) values (144, 46);

It’ll be great when we switch to bintray!
