Collaborative spelling dictionary/Progress
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |
Progress report for OPW Round 9 Project: Collaborative Spelling Dictionary by Ankita Shukla
Community Bonding Period
[edit]Relevant Links
[edit]- Project plan agreed with mentors
- Phabricator project
Landing and first meeting with mentors
[edit]It has been a great experience since the first day I got involved with the wikimedia community! Everyone is way too supportive and is ever-ready to help. I had received immense support and help from the community on the irc channels during the problems I faced in the initial phase, be it during mw-installation, configuration errors or a patch submission!). This is what prompted me to be a regular contributor to wikimedia and to participate in the Outreach program.
My first meeting with my mentors was quite a learning experience. From the first day onwards, they have always been guiding me. The best part has been that they don't spoon-feed me, rather, they show me the direction and I learn by exploring stuff. This has really been very helpful!
I have developed quite a friendly relationship with my mentors in particular and thus it gets easy to discuss any idea with them. Also, my mentors are available most of the time and as such there's no problem in communicating. Another plus point is the same time zone I share with Kartik which facilitates our interactions without any concern of time clashes. :)
Lessons learned since 22 November
[edit]- Got familiar with the VE codebase
- Set up a github repo and initiated it with a README and developer.md files
- Documented ideas for possible dictionary structures and demonstrated them to my mentor through email as well as google doc
- Understood how various MediaWiki IRC channels are used
- Attended OPW career advising meeting for OPW Interns on #opw (irc.gnome.org) on November 26th, 8:30 AM (PST)
- Co-ordination with other related projects is desirable wherever possible
- Created a conpherence on phabricator and invited the mentors
Communication Plan
[edit]- Complete weekly progress reports here
- Check in daily with mentors over hangouts and/or IRC
- Share Google calendars
- Communicate with other mentors over IRC and email with questions, to look over code, etc.
- Regularly write blog posts about the progress of the project
- Regularly report to my mentors about the progress and problems encountered, via emails or hangouts
- Use the phabricator conpherence for brainstorming purposes and discussing ideas
Deliverables (Before mid-term evaluation)
[edit]- Development of initial prototypes for community feedback
- List of tasks
Weekly reports
[edit]Week 1: December 9 - December 15
[edit]- Had a hangout with Kartik and discussed the tasks for the first week
- Fixed my mediawiki-vagrant install without any help :)
- Read extensively about developing an extension from here and here
- Browsed the code of TwnMainPage extension to get an idea of a functional extension.
- Set up the directory structure for SpellingDictionary extension and pushed the code to github.
- Fixed minor things like
- Updated the README with installation instructions.
- Added a (GPL) License to the project.
Week 2: December 16 - December 22
[edit]- Setup the database and the table for storing words.
- Decided upon the dashboard for the project.
- Discussed with the mentor about the UI of the Special page.
- Browsed through the Content Translation (beta) page and the code to attain familiarity with the same.
Week 3: December 23 - December 29
[edit]- Code setup for database access
- User UI implemented to add word & its language :)
- Created the Special page for admins - Special:SpellingDictionaryAdmin
- Wrote the hook for schema update
- Added resource modules for uls
- Wrote the code to store the word submitted by the user into the table :)
- Wrote the code to display all words on admin special page
Week 4: December 30 - January 5
[edit]- Decided upon the design of the admin page with the mentor (would be using a tree-structure as a backbone)
- Fixed several small issues
- Checking for an existing table before creating one
- Cleaning up the code
- Updated documentation (README) with more elaborate and user friendly guidelines
(Could not accomplish much this week as had been travelling for the most part and had some issues with my laptop. It's working fine now after almost killing me by threatening me of complete data as well as environment loss! :) )
Week 5: January 6 - January 12
[edit]- Moved the word-list display from the admin special page to another special page (ViewAll) meant for displaying all the words stored in the database.
- Coded and added classes to be used to display items on admin page:
- Main tree class for the admin page
- Class to add section to admin page tree
- Class to add the various links in every section
- Wrote code to retrieve another special page (to be used when admin clicks on one of the links like 'Browse all words')
- Coded and initialized the tree to be displayed
Week 6: January 13 - January 19
[edit]- Displayed section's text by writing a function that converts object to string for displaying
- Wrote code to display the text in each section too
- Displayed text for page name on admin page
- Organized the code in proper MVC architecture
- Rewrote the code as per MW coding conventions
- Moved the code to display all words to a class's function, and used that to display all words
- Improved UI by improving the loop structure to check for any pre-existing item within a section
- Created a special page for displaying words sorted by language (Select a language and see the words)
- Added another item on admin page to show words sorted by language
- Added alias for ViewByLanguage page
- Several small but important changes:
- Modified message names and added more messages in the localisation files
- Added message names to localisation file and updated message names in corresponding file
Week 7: January 20 - January 26
[edit]- Included page import/export options for admin
- Added section for import/export of word list
- Added function to return special page as admin page item
- Displayed words of a particular language selected
- TODO: Improve the method to take user input (using ULS).
- Displayed the spellings in form of columns
- corrected the column name
- fixed code to render the data on the screen
Second half of internship
[edit]Week 8: January 27 - February 2
[edit]- Added classes to items and defined CSS classes
- Created a new css file
- Loaded the css file in SpellingDictionary.php
- Added classes to the html display on admin page for viewing all spellings
- Removed unnecessary js files
- Added link to the form for adding spellings to db
- Added a dropdown for language selection
- Added corresponding messages in en.json
- Code cleanup
- Deleted files of no use
Week 9: February 3 - February 9
[edit]- Started off the week by fixing errors in form-display due to core update
- Therefore, updated code as per latest form object definition
- Wrote the function for deleting any spelling
- Added ajax function for deleting spelling from table, it is called when admin clicks on "Delete" in order to delete any spelling from the table
- Loaded the JS script from modules for SpellingDictionary
- Provided option to choose language to view spellings
- Removed the originally hardcoded values
- Wrote code to select language from drop-downs
- Passed complete formdata to function instead of explicit field data while selecting language to view words
Week 10: February 10 - February 16
[edit]- Since the basic prototype has been made, therefore now working towards improving its features
- Learnt more about ajax and its implementation
- Tried debugging the code for the Delete ajax function call
Week 11: February 17 - February 23
[edit]- Discussed with my mentor
- the various possibilities on the final stage advancements
- the recent code bugs like:
- form submit callback (although the callback is already included)
- Mediawiki coding convention with respect to ajax function calls
- Studied about implementing ajax function calls without creating any extra unnecessary (intermediate) files
Week 12: February 24 - March 2
[edit]- Created issues on github that need to be looked into.
- ToDo:
- ULS usage for language selection instead of options as drop-down
- Fix ajax function calls to Edit a spelling by admin (I have already written the function)
- Fix ajax function calls to Delete a spelling from the database table by admin
- Create user documentation for Extension wiki to help users add spellings to the dictionary. (Have already created a raw draft of this. Will refine and update after my examinations get over)
- Mostly studied for my examinations (this week till the mid of the next week)
- I'll resume my work after the exams
Week 13: March 3 - March 9
[edit]- Learnt about user groups and rights management on special pages in MediaWiki
- Restricted access on admin dashboard and other admin-pages
- Created a new user group `spelladmin` for implementing restricted access
- Added myself in the sysop, bureaucrat and spelladmin groups
- Fixed the callback error that was being thrown in ViewByLanguage
- Organized and refactored code
- Created separate file for loading resource modules - Resources.php
- Created separate file for loading classes - Autoload.php
- Declared the hooks, special pages etc as $GLOBALS
- Bug fix - Made the showSpellings function nonstatic
- Added language options in dropdown using language codes in languages/Names.php
- Made dropdown language entries lexicographic
- Wrote documentation for the extension