Editing User:Albertcoder/GSoC2014/logs

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 389: Line 389:
 
Improved the menu bar on the top of each Special Page. Thinking to add images/icons in sometime after achieving all the basic functionality.
 
Improved the menu bar on the top of each Special Page. Thinking to add images/icons in sometime after achieving all the basic functionality.
  
 +
=== Week 10 ===
  
 
'''''21st July(Monday)
 
'''''21st July(Monday)
Line 395: Line 396:
  
 
'''Cleaned''' the code edited a few things like repositioning the forms at proper place in the code to make it more readable.
 
'''Cleaned''' the code edited a few things like repositioning the forms at proper place in the code to make it more readable.
 
=== Week 10 ===
 
 
  
 
'''''22nd July(Tuesday)
 
'''''22nd July(Tuesday)
Line 416: Line 414:
  
 
Encountered some problem in implementing the '''status flag''' to be administered by the admin.
 
Encountered some problem in implementing the '''status flag''' to be administered by the admin.
 
 
'''''25th July(Friday)
 
 
Worked on '''export feature''', almost done. Used '''json_encode()''' to export the data by storing it in an array. Now working on passing multiple attributes in '''multidimensional array'''.
 
 
'''Status flag''' still in pipeline.
 
 
'''''26th July(Saturday)
 
 
Could not do much '''GSoC''' oriented today, as I was engaged in attending inevitable '''seminars''' in my college related to other technologies.
 
 
 
'''''28th July(Monday)
 
 
'''Progress''': Been able to write the data from the backend(tables) in '''.json''' file. I passed an array to json_encode(), whose result I wrote in a file. The contents written in the file are absolutely what they should be.
 
 
'''Problem''': When I try to prompt the user to download the same file, some futile/useless data seems to get appended at the end of the file.
 
 
Did some manipulations with the '''LocalSettings.php''' like changing the logo, skin, enabling the image uploads and so on.
 
 
===Week 11===
 
 
'''''29th July(Tuesday)
 
 
For exporting the data in json, found and implemented another '''solution''' to store the material names and the values of different traits in two '''separate arrays.'''
 
 
Used '''array_combine()''' to make an '''associative array''' of material name and value as '''key : value''' pair.
 
 
'''''30th July(Wednesday)
 
 
Made json export work but there are some glitches like the file in which the json material is written is perfect but the exported file from web interface contains some needless data appended at the end.
 
 
'''''31th July(Thursday)
 
 
Removed the problem of '''futile data''' getting appended in '''.json file'''.
 
 
Added a '''new file''' which has the code to '''export''' the data in JSON format.
 
 
Added '''option''' to select any trait which is to be exported by storing it in '''variables.'''
 
 
'''''1st August(Friday)
 
 
'''Status flag''' nearly accomplished which was in pipeline. '''Updations''' that can be only done by '''Sysop and bureaucrat''' are just left.
 
 
'''Status visible''' in view all materials page.
 
 
'''Export'''(call to action button) added in the menu bar.
 
 
'''Search bar''' hidden from the '''main login page''' where is wasn't required.
 
 
'''''2nd August(Saturday)
 
 
Couldn't work today because of engagements like depositing college fees and shifting to new hostel. Also there was power supply's problem so I could not keep my laptop charged.
 
 
'''''4th August(Monday)
 
 
Learned how to embed '''JavaScript''' in MediaWiki. Used in the '''navigation bar''' on the top of each page.
 
 
 
===Week 12===
 
 
'''''5th August(Tuesday)
 
 
'''Status''' now visible in '''Search by Trait''' and '''Search by Material''' too. All the '''approved''' material properties are denoted by "1" and the '''pending''' by "0". The privilege(for bureaucrat and sysop) to approve still pending.
 
 
'''''6th August(Wednesday)
 
 
Facing a bit of challenge to set the privilege for approval. Because unlike '''Wiki''' pages, '''Special''' pages cannot be edited.
 
 
'''''7th August(Thursday)
 
 
Done with the '''approval part.''' Now the values can be approved from the '''Special Page itself'''.
 
 
'''''8th August(Friday) and 9th August(Saturday)
 
 
Visited a funeral ceremony.
 
 
Couldn't work, I also had to visit my doctor regarding respiratory problem.
 
 
'''''11th August(Monday)
 
 
Made the navigation bar more interactive using '''javascript.''' Also renamed a few variable for better '''readability'''.
 
 
=== Week 13 ===
 
 
'''''12th August(Tuesday)
 
 
Found a minor glitch in export. The '''indices''' of the '''two arrays''' don't match and making the json more readable by replacing the "value" attribute with trait name.
 
 
'''''13th August(Wednesday)
 
 
Perfectly done with the '''json export''' now grappling with '''CSV format.'''
 
 
'''''14th August(Thursday)
 
 
Export in '''CSV done''', using PHP '''header''' function and '''array''' manipulation.
 
 
'''Status''' which was approved by the admin is '''now visible''' on the '''front-end''' too.
 
 
'''''15th August(Friday)
 
 
'''Exporting''' data in '''XML''' format now possible. Now grappling with data import.
 
 
'''''16th August(Saturday)
 
 
Added '''update''' , '''import''' call to action buttons.
 
 
Done with '''import''' of data in '''JSON.'''
 
 
'''''17th August(Sunday)
 
 
Set the permissions such that only '''sysop''' and '''bureaucrat''' can delete '''materials''' and '''traits.'''
 
 
'''''18th August(Monday)
 
 
As today is the last day of GSoC, I have given my level best to add everything possible to the code before final evaluation.
 
 
I have added support for importing the data by '''selecting''' the trait name which earlier was '''static.'''
 
 
I have updated the '''update page''' which now allows to update all the values of a particular material '''in one go''', which wasn't possible earlier.
 
 
I have also added the facility to the user to '''add''' only '''selective''' traits at a time in case he does not know all the values at present.
 
 
Apart from '''normal users''', a separate '''call to action button''' is added for '''admins''' to delete materials and traits and approve the values added by users.
 
 
And finally '''removed''' the '''unnecessary''' data '''exported''' from XML like mat_id, timestamp etc.
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)