Saturday 21 March 2015

Week 14 Updates - End of the OPW Internship period

Hi All,

Since my internship was extended for one week, I would like to update you all with the work done during the internship period. Now I have added the user interface for the users to view the projects for a given program. There is also a programs page, where the users can view the list of programs, the programs page user interface needs some improvement. I then worked on to extend the unit tests so that a user is able to change the program for a given project.

So, now the projects program relationship is also tested and you can see the committed code here.

Currently, the user can see the list of programs, and can edit / create / delete program but only by the admin users. The user can see the list of projects for a given program. The admin user can edit the program name on the project page. If you would like to see this, then you can commit the code present in the test_code branch of osmtm-tasking-manager2 repository on my github profile.

Link: https://github.com/NitikaAgarwal/osm-tasking-manager2/tree/test_code

During the OPW internship period, I have learnt a lot of things and gained experience as being a newcomer to the open source world. Thanks to my mentors Pierre Giraud and Kate Chapman.

Cheers!
Nitika



Tuesday 10 March 2015

Updates on Week 13

Hi All,

Just to update you all with the programs feature associated with the projects, on which I have been working. For the Programs field relationship, we have got the below mentioned functionality implemented:

  • /programs - Programs page for the users to view the list of programs, here the user can create a new program by clicking on the "Create new Program" button which will be redirected to /program/new page. With the program listed, there is an option for the users to edit or delete a program by clicking on the "edit" page. Only the admins and project managers have the permission to create, edit and delete the program. 
  • /program/{program.id}/edit - When the user clicks on the edit button on the programs page, it gets redirected to this page so that the user can edit the program fields and then save the modifications. The user can also delete the program by clicking on the delete button.
I have created the unit tests for testing the creation of the program, editing and deleting the program. The unit tests for program are mentioned in the tests_program.py file.

Then I worked on creating the views for the program field and the templates for viewing the list of programs, editing a particular program. After performing functional testing and unit testing, I worked on the relationship between the programs and projects. 

Simultaneously with the above tasks, I worked on the migration scripts for adding the program_id column field to the projects table and creating a program table. 

Then, I worked on performing functional testing for the correct working of the projects program relationship. I have added an interface for the users to select the program associated with that project in the description block while editing the project. Only the admins and project managers have the permission to edit the project. 

Now, I'm working on the interface for the users to view the list of projects for a given program and will then proceed with the other functions i.e, requesting org and purpose fields. 

I'm still working on this internship project and will post on this blog with more updates. 


Cheers,
Nitika


Tuesday 3 March 2015

Week 11 and 12 Updates

Hello Everyone,

We have started with the implementation of the Programs - Project relationship. Firstly, it took sometime for me to get started with the implementation and look at the code to figure out the things. Now, I'm working on the implementation to create Programs table in the database for the users to view the programs, then allow the users to edit or create new programs and even delete the programs. These features will be allowed only to the administrators users.

While working on the implementation part and testing the code, I'm still facing some issues and taking the help of the mentor Pierre, to resolve those issues.
The code that has been written is committed in the master and test1, test2 branches on my github profile. Please see link: https://github.com/NitikaAgarwal/osm-tasking-manager2/tree/test2

I wish to inform that during week 11, I was travelling for religious visit and hence could not work during that week. After that I'm working on the implementation part. To compensate and complete the work, I'm trying to devote more time in the next following weeks and weekends. I'm willing to work for few weeks on this project after the internship period as well.

I'll soon update you more on this !!

Thanks,
Nitika