GSoC 2017 - More Metadata Management in AdminUI

@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…)

@darius Yah that will be great :slight_smile: 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}

@dkayiwa Follow this link to download the latest SysAdmin up to now. And you can use this link 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

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 ),

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

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

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:

@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) :smiley:

@darius @suthagar23 PR has been created for the new rest points here

@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

@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.

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

Good summary of what is going on. :slight_smile:

1 Like

@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.


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.


Commit : Drag & Drop Feature added and feedbacks updated · suthagar23/openmrs-owa-sysadmin@c130b54 · GitHub

@dkayiwa I have updated with modules-ref app and you can find the OWA Zip file here for your local usage.

Awesome! :smile: Let me try them out.

@dkayiwa If that above zip is not working, then use this zip file instead of previous one :slight_smile:

Sure, thanks!

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?

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”.

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]

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

You can test it on Module-ref application or download the zipped file here and test it locally.

Commit : Drag and Drop module changes and updates · suthagar23/openmrs-owa-sysadmin@55a316f · GitHub

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