viernes, 29 de abril de 2016

Interface disign and import thefiles (ASAP)

From this last 2 weeks i worked totally in Asap Portal. On this time, at the begging Cardoce help me to redesign the interface because i needed add the option that the user can get the csv file from your computer. When i sew the code i almost i didn't understood the code. He explained that the interface worked with Bootstrap and that classes to design and give to the element of a HTML. Also we can make a custom design, changing the input of the classes into a css file.
I investigating the code, saw that the project only had 1 windows, the rest was panels. At few time i find where needed add my code, then i investigate how create a file chooser into Ruby on rails, this video was really useful to create that feature. When i returned to saw the code, the label generated by the file chooser i didn't needed. To fix that problem, i needed create a css file where i hidden these elements.
With the file uploaded into the controller, I decided create my first pull request of the project. But when Jesus revised it, He tell to me that i needed create test from the controller functions. To help me with this work, I used the code of ICS and take a look on the testing that Jesus had done.When I check the code, only check if the file uploaded was the same to the test. 
When i was doing the test, i contemplate other cases. For example: When the user don't upload a file, or maybe if the user loads a different with different extension. Then I pursue to validate this cases.
When my pull request was merge it, I continued to create a new folder to create the functionality of the project. On this part, I needed import 2 files, the report files (transactions) and the mapping template.
The logic was moderately easy, because i used hash tables, i only imported the files and got only the necessary information, and concatenated the information. The real problem is the testing, until right now this theme  I am really week.
To gave the format and create the file i used the information of this gem to create it.
The last Wednesday Sirias, give me a retrospective of Tristan. On this he tell me that i didn't show him my progress. Then i tried to show my advance on the same day and ask him for a follow up.

No hay comentarios:

Publicar un comentario