Skip to main content

GSoC’17 Coding period | Week #1 | Drupal




The Coding phase of Google Summer of Code 2017 kicked off the previous week on May 30th, 16:00 UTC, marking the conclusion of the one-month long Community Bonding period. As stated earlier in my previous post, the Community Bonding term proffered the selected students an opportunity to build a rapport with their community, helping them in interacting with the respective mentors and fellow developers.

Presently, I am working on porting the UC Wish list module to Drupal 8, under the guidance of Naveen Valecha, which would specifically allow customers to create and administer personalized wish lists of products in their Ubercart store, thereby enabling potential customers to get a better understanding by referring to those wishlists. During the community bonding phase, I had been asked to create a Plan issue for tracking the status of the port and sub-issues of the project goals, by my mentor. As per the implementation, for the first phase/month of the coding period, I plan to successfully port the following sub-modules:
Therefore, briefly stating the work done the earlier week:
  • Learnt the implementation Form API for the creation, submission & validation of forms (eg:- wish list email) and Search API for executing a functional and effective search.
  • Learnt the employment of the Database API to provide a structured interface for the dynamic construction of queries to implement the second sub-module port and to check whether a wish list is private.
  • Conversion of D7 Hook functions to D8 APIs involving Routes, to define the path to Controllers (page callbacks in D7) or to create tabs and/or contextual links. This was done by creating the corresponding YAML files required and converting the D7 hook_menu() implementations by defining the routes in YAML format, through the routing.yml file.

  • Directory structure:

  • Learnt the verification procedure for email address of an user through the Data Common API.
  • Created a basic controller for the module for converting page/access callbacks for routes, to proper Controller classes. Also, learnt about the creation and application of YAML files and blogged about it.
As stated above, I was able to get a significant understanding of the project and the sub-modules considered for the initial phase. Moreover, I also came across some vital changes in D8 in contrast to its previous functionalities.
  • The .info files in D7 are replaced by .info.yml files. The .info files contained the basic information regarding the respective module.
  • The D7 variables have been converted to the D8 state system. The previous versions had variable_get and variable_set functions to store variables and their default configurations. They are, at present removed from D8 and replaced by the Configuration API.
  • Symfony framework  is used in D8 in the Controller file.. It has MVC architecture. This makes the code easy to maintain, scale, and reuse.
Summing up, these were some of the objectives and concepts learnt during the first week of coding phase in GSoC’17. Hope to learn many more new concepts in the coming weeks for successful completion of the port.

Cheers!

Comments

Popular posts from this blog

GSoC’17 Coding period | Week #5 | Drupal

The second phase of the Coding Phase officially kicked off the previous week on June 30th, 16:00, marking the conclusion of the First Evaluation period for Google Summer of Code 2017. On the personal front, I would like to state that I progressed successfully through the evaluations by completing the two designated ports for my project ‘Porting UC Wish list to Drupal 8’ , under the able guidance of my mentor, Naveen Valecha . I have also maintained a detailed info for the work done as part of the first phase evaluations in a previous blogpost . The previous week, based on the mentor’s review of the earlier ports done, I had also fixed the coding standards and made some changes to the code, as suggested by him. Meanwhile, based on a comprehensive analysis for the above mentioned ports, the work done briefly the earlier week can be stated as: 'View wishlist' option visuals in D8: 'Email wishlist' option visuals: As of now, I...

GSoC’17 Coding period | Week #4 | Drupal

The fourth week of Google Summer of Code 2017 has come to a close, bringing forth the onset of the First Evaluation Period. The conceptualization developed during the first phase of coding have been of immense help and has provided notable assistance for the completion of the assigned ports. As I had stated in the previous blog posts, this month I had the objective of completing the following ports concerning the first phase of the coding regime: Admin wish list settings Add to wishlist  With the conclusion of week 4, I have completed the port of the administrator wish list settings as well as the ‘ Add to wishlist ’ feature as part of the second port. Also for the ‘ Add to Wishlist ’ functionality to work successfully, my next objective would be to add the functionality to view/access the user wish list, on using the button. This functionality would further be succeeded by the option to update the specific wish list, by displaying the required button ...

GSoC’17 Coding period | Week #10 | Uc Wishlist

With the conclusion of the tenth week of Google Summer of Code 2017, the coding regime is almost halfway through the third phase. Meanwhile, last week saw a stringent buildup on the concept for the remaining ports, which would aid in its gradual completion. I have maintained a detailed structure of the code for the port which can be accessed here . Focusing on the present scenario, the implementation of the 5th port ‘Email wishlist to users’ has almost reached completion. Additionally, the implementation of the last port ‘Add user wish list settings’ is underway, with a significant portion of the port to be accomplished within the coming week. Therefore, based on a comprehensive evaluation of the current status of the module, the work done previous week can be summarised as: Option to email wishlist to others: This feature would enable users or wish list owners to share any wish list with other users or potential customers by emailing it to the respe...