Thursday, June 27, 2013

Improving the object selection code: GSoC week 2

As my mentor Wyclif had reviewed the first week code changes for the 'select object types to validation' feature and have added his comments on the code I spent this week to modify the code according to the feedback and improving it.

The main three points to do improvement were,

1. In the object types selection dialog window, show the Simple Object type name instead of showing the full class name as org.openmrs.Concept etc. So with the new changes these types are changes to;

org.openmrs.Concept  --> Concept
org.openmrs.Provider --> Provider etc.

2. Instead of string processing to get the selected types to be posted once the list is submitted, use Spring and send a List of types.
After i set the name of the checkboxes to be the same i.e type, then the browser always sends all checked ones to the server and spring automatically convert them into a list or array. Therefore i changed the previous way of reading the types and append them into a single send before it is posted and used this method.

3. Reviewed on the logic which makes validation threads and tested whether it works fine.

Saturday, June 22, 2013

Beginning the coding phase - Week 1

This monday began the GSoC 2013 coding period. As discussed with my mentor I have started coding with VM-2 where i am going to work on 'Make it possible to select the type of metadata or data to validate instead of typing a fully qualified class name'.

At the end of week i have finished the following tasks in the ticket.

1. The new validator UI contains 4 buttons as 'Select Types', 'Show Report', 'Stop Validation' and 'Validate Types'.


2. Once the user click 'Select Types' a new dialog window will be open where the user can select all the object types that needs to be validated.


3. When the required types are selected and click 'Done', the selected types will be displayed in the UI. If user wants to remove or add more types, he can again use 'Select Types' window. The previous options will be stored in the dialog window, hence user can remove/add more option in there and click 'Done' back. The types list will be updated accordingly.




After selecting the types, click 'Validate Types' button. The object types will e validated and user will be redirected back to front UI, in image 1.