# GSoC 2017 - More Metadata Management in AdminUI

**URL:** <https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479>\
**Category:** GSoC\
**Tags:** gsoc2017\
**Created:** [May 15, 2017, 1:55pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479 "2017-05-15T13:55:51Z")\
**Posts on this page:** 20\
**Page:** 7

<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 21, 2017, 6:31pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/122 "2017-07-21T18:31:02Z")

</div>

@suthagar23, we can add support for the REST call that you want. What data do you have available to query with? I guess you have the module’s is the information that you have available? The module’s package?

We can add support for something like

```
GET https://addons.openmrs.org/api/v1/addon?type=OMOD&modulePackage={xyz}

```

@reubenv, please see the last few messages in this thread. Can you please add this new REST endpoint as your top priority?

(We can deploy this before we finish with the current PR that we’re working on. This will give you a chance to practice using git branch…)

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [July 21, 2017, 6:39pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/123 "2017-07-21T18:39:41Z")

</div>

@darius Yah that will be great 🙂I have all the details (uuid, package , name) which can obtain using “openmrs/ws/rest/v1/module?v=full”.

Here I wanted to generate those GET URLs for all modules repeatedly to check updates and for some more information. So I need that calling method.

using this, I am getting all the module details, but I want only for requested module package. `GET https://addons.openmrs.org/api/v1/addon?type=OMOD&modulePackage={xyz}`

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [July 25, 2017, 4:00pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/124 "2017-07-25T16:00:58Z")

</div>

@dkayiwaFollow [this link](https://www.sendspace.com/file/krx812) to download the latest SysAdmin up to now. And you can use [this link](https://www.sendspace.com/file/4eyimk) to download the required webservices.REST module with sysAdmin Resource.

There are some errors on Module update. OpenMRS AddOns REST endpoint wanted to fix this issue.

Week 8 Blog update: [https://medium.com/@suthagar23/module-update-with-openmrs-add-ons-74b1ef0fdc1b](https://medium.com/@suthagar23/module-update-with-openmrs-add-ons-74b1ef0fdc1b)

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [July 25, 2017, 7:19pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/125 "2017-07-25T19:19:38Z")

</div>

I planned to modify the SystemInfo dashboard in the SysAdmin OWA which can give more user experience to the end users.

Currently, the dashboard is like this (like some text lines and paragraphs ),

 ![](https://talk.openmrs.org/uploads/default/original/2X/7/701d5de64200c9ef14e349995663f80d92cab5e5.PNG)

I would like to implement with some better user experience like this following,

 ![](https://talk.openmrs.org/uploads/default/original/2X/2/26b4e0897dd8937f7c1a2cf23194927332fd46d1.PNG)

@dkayiwa @darius and others, What about your ideas to make it better? (Are there any problems in using those images here?)

---

<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:** [July 26, 2017, 9:37am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/126 "2017-07-26T09:37:30Z")

</div>

How about the OpenMRS icon for “OpenMRS Information”? For operating system, what do you think of this? [https://www.google.com/search?q=operating+system+icon&tbm=isch&imgil=3nsCRlkO0nRWRM%3A%3BcoL-r3lkk91nlM%3Bhttp%253A%252F%252Fwww.newdesignfile.com%252Fpost\_operating-system-icon\_90646%252F&source=iu&pf=m&fir=3nsCRlkO0nRWRM%3A%2CcoL-r3lkk91nlM%2C\_&usg=\_\_9O0IWV2psY1k1LSa-Aa\_Q\_38-WM%3D&biw=1440&bih=755&ved=0ahUKEwjBhPzn0qbVAhVIBMAKHRXrAJ8QyjcIQg&ei=gGJ4WcHEBciIgAaV1oP4CQ#imgrc=3nsCRlkO0nRWRM:](https://www.google.com/search?q=operating+system+icon&tbm=isch&imgil=3nsCRlkO0nRWRM%253A%253BcoL-r3lkk91nlM%253Bhttp%25253A%25252F%25252Fwww.newdesignfile.com%25252Fpost_operating-system-icon_90646%25252F&source=iu&pf=m&fir=3nsCRlkO0nRWRM%253A%252CcoL-r3lkk91nlM%252C_&usg=__9O0IWV2psY1k1LSa-Aa_Q_38-WM%3D&biw=1440&bih=755&ved=0ahUKEwjBhPzn0qbVAhVIBMAKHRXrAJ8QyjcIQg&ei=gGJ4WcHEBciIgAaV1oP4CQ#imgrc=3nsCRlkO0nRWRM:)

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [July 26, 2017, 9:59am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/127 "2017-07-26T09:59:26Z")

</div>

@dkayiwa Yah, It’s good to use OpenMRS Icon for OpenMRS Information!

Here I have planned to use different icons for OS like this,

1. Windows OS - windows Icon
2. Linux OS - Linux Icon
3. iOS - iOS Icon
4. Others - default Icon which you mentored above.

It will give extract idea about the OS easily with that respected images. (Eye impact) 😃

---

<div class="post-metadata">

**Author:** ![reubenv](https://talk.openmrs.org/user_avatar/talk.openmrs.org/reubenv/32/3818_2.png) [@reubenv](https://talk.openmrs.org/u/reubenv)\
**Post date:** [July 28, 2017, 8:05pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/128 "2017-07-28T20:05:47Z")

</div>

@darius @suthagar23 PR has been created for the new rest points [here](https://github.com/openmrs/openmrs-contrib-addonindex/pull/20)

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [August 1, 2017, 6:13pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/129 "2017-08-01T18:13:33Z")

</div>

@reubenv when will I have that endpoint properly? Currently, It is sending all the module details for the request. [https://addons.openmrs.org/api/v1/addon?type=OMOD&modulePackage=org.openmrs.module.atlas](https://addons.openmrs.org/api/v1/addon?type=OMOD&modulePackage=org.openmrs.module.atlas)

---

<div class="post-metadata">

**Author:** ![reubenv](https://talk.openmrs.org/user_avatar/talk.openmrs.org/reubenv/32/3818_2.png) [@reubenv](https://talk.openmrs.org/u/reubenv)\
**Post date:** [August 2, 2017, 2:07am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/130 "2017-08-02T02:07:16Z")

</div>

@suthagar23 I’m not quite sure . I have submitted the PR so when Darius finds time, he’ll review it. He said that he’d be free tonight so he’ll probably check it out tonight.

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [August 7, 2017, 12:24pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/131 "2017-08-07T12:24:49Z")

</div>

Weekly update : [https://medium.com/@suthagar23/started-working-on-manage-scheduler-fe62c240c8b](https://medium.com/@suthagar23/started-working-on-manage-scheduler-fe62c240c8b)

---

<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:** [August 7, 2017, 12:39pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/132 "2017-08-07T12:39:46Z")

</div>

Good summary of what is going on. 🙂

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [August 9, 2017, 11:10pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/133 "2017-08-09T23:10:04Z")

</div>

@dkayiwa I have updated following changes in the SysAdmin OWA

- System Information page updates
- prevent any other action while one is still in progress
- Alert messages modified with module names(START/STOP/UPDATE alert messages)
- Previous messages will be cleared before the next action

Here I have used pop ups to show the current activity status, and at this point, the user can not trigger other actions.

 ![](https://talk.openmrs.org/uploads/default/original/2X/3/3413f78efc34fd40dd8eb8ba34a4ee8577de9a77.PNG)

* * *

### New Feature

I have updated the module upload or upgrade page with drag and drop feature. Now user can just drag and drop the module(.omod) file to upload to the server.

 ![](https://talk.openmrs.org/uploads/default/original/2X/1/19610fcbcd371d6bf6dbe800b7431aee2ef81cb1.PNG)

* * *

Commit : [Drag & Drop Feature added and feedbacks updated · suthagar23/openmrs-owa-sysadmin@c130b54 · GitHub](https://github.com/suthagar23/openmrs-owa-sysadmin/commit/c130b5413d86a0887149855fb42302f69cfb67e2)

@dkayiwa I have updated with modules-ref app and you can find the OWA Zip file [here](https://www.sendspace.com/file/j44hrj) for your local usage.

---

<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:** [August 10, 2017, 4:32am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/134 "2017-08-10T04:32:59Z")

</div>

Awesome! 😄Let me try them out.

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [August 10, 2017, 6:29am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/135 "2017-08-10T06:29:57Z")

</div>

@dkayiwa If that above zip is not working, then [use this zip file](https://www.sendspace.com/file/s3aiqb) instead of previous one 🙂

---

<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:** [August 10, 2017, 7:24am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/136 "2017-08-10T07:24:19Z")

</div>

Sure, 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:** [August 10, 2017, 10:05am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/137 "2017-08-10T10:05:54Z")

</div>

What happens for some one who does not want to drag and drop, but simply wants to browse to locate the file on their system?

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [August 10, 2017, 10:42am UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/138 "2017-08-10T10:42:10Z")

</div>

They can simply click on that box to open File browser, then they can simply select modules to upload.

The message inside the box illustrates that features like “Drag files here or Click to upload”.

---

<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:** [August 10, 2017, 1:35pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/139 "2017-08-10T13:35:58Z")

</div>

Whenever i drag and drop a module and then click the “Upload Module” button, i get this error:

[Failed to convert value of type ‘java.lang.String’ to required type ‘org.springframework.web.multipart.MultipartFile’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [org.springframework.web.multipart.MultipartFile]: no matching editors or conversion strategy found]

---

<div class="post-metadata">

**Author:** ![suthagar23](https://talk.openmrs.org/user_avatar/talk.openmrs.org/suthagar23/32/6342_2.png) [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Post date:** [August 13, 2017, 2:16pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/140 "2017-08-13T14:16:24Z")

</div>

@dkayiwaI have updated drag and drop part and Now It’s working perfectly, You can test it now 🙂 and I have changed progress spinner from OpenMRS logo to another one, you can see it here,

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

You can test it on Module-ref application or download the[zipped file here](https://www.sendspace.com/file/k1pjdp) and test it locally.

Commit : [Drag and Drop module changes and updates · suthagar23/openmrs-owa-sysadmin@55a316f · GitHub](https://github.com/suthagar23/openmrs-owa-sysadmin/commit/55a316fc9f4b37b9cd4eca0092542548be5a7db5)

---

<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:** [August 13, 2017, 6:46pm UTC](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479/141 "2017-08-13T18:46:11Z")

</div>

I have just tried the zipped file you gave but it gives a blank page.

[Previous page](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479.md?page=6)

[Next page](https://talk.openmrs.org/t/gsoc-2017-more-metadata-management-in-adminui/11479.md?page=8)
