Skip to main content

GSoC’17 Coding period | Week #3 | Drupal





With the conclusion of the third week of Google Summer of Code 2017, the initial phase of the coding period is coming to a closure. The conceptualization developed during the previous weeks have been of immense help, and has been of notable assistance for the completion of the ports for the first phase.
The previous week, as I had stated in my earlier blogpost, I had to port the following sub-modules regarding the UC Wish list framework:
As I had mentioned in the previous blogpost, till week 2 I had almost completed the first port by configuring the administrator wish list settings and completing a substantial portion of managing user wish lists. With the conclusion of week 3, I have completed the port of the administrator wish list settings. Moreover, I have also included the ‘Add to wish list’ feature as part of the second port.
Thereby I would briefly like to state the steps taken to port the above functionalities:
  • Manage user wish lists:
    • Implementing hook_menu by defining Routes, which are basically are the mappings between URL paths and their corresponding page and access callbacks, stored in the uc_wishlist.routing.yml file by the route name uc_wishlist.admin_wishlist. 
    • Creating database queries to query the user and related wish list information and retrieving them.
    • Creating a corresponding Controller class by implementing a function to retrieve a paged list of wish lists by querying the related database created in the /src/Controller directory.
    • Providing the required menu link associated with the port in YAML format in the uc_wishlist.links.menu.yml file.
As mentioned above, I was able to port the ‘Add administrator wish list settings’ and include ‘Add to wishlist’ & ‘Add to cart’ features as a part of the previous week’s regime. The associated bug fixes would be fixed as per schedule. The next week would include the final portion of the first phase of the coding period, wherein I intend to implement viewing/updating the user wish list after adding products to a specific wish list, by implementing Views Integration through the Views module. The code associated with the port can be found here.
Winding up, these were the objectives and concepts learned during the third week of coding phase in GSoC’17. Hope to learn many more new concepts in the coming weeks for the 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 #7 | UC Wishlist

With the last week of the second phase of the Google Summer of Code 2017 underway, the seventh week has come to a close. The previous week saw the completion of the third port for the second regime, i.e., porting ‘View/Update wishlist’ . The earlier week I had summarised the implementation for the third port, i.e, porting ‘View/Update wishlist’ functionality. So, the work done the previous week for the implementation of the mentioned third port can be summarised below: The first thing I did was to define an interface my UcWishlist entity type class can implement and that extends the default ContentEntityInterface alongwith EntityOwnerInterface . So inside of the module's src/Entity folder, create a file called UcWishlistInterface.php . Next,  I focused on the crux of defining my own Content Entity class and created a folder inside the src/ directory called Entity , and within it, a file called UcWishlist.php . What we have here is a...

Community Bonding with Drupal | GSoC 2017

As mentioned previously, this year I got selected for GSoC under Drupal for the project ‘Porting UC wish list to Drupal 8’ . This blogpost would concisely pivot around the Community Bonding period with Drupal for GSoC’17, thereby focusing on it’s importance and objectives achieved during this phase. This year, the accepted GSoC proposals/projects were announced on April 3, 21:00 IST. The selected students are entitled to participate in the Community Bonding period till May 29th. The Community Bonding period, essentially, is the time for the selected students to socially engage with the fellow developers & learn extensively about their organisation’s functionalities, in other words, have a comprehensive understanding of an organisation’s codebase, codes of conduct, releases etc, rather than jumping straight into coding. Moreover, during this term students have the opportunity of interacting with their respective mentors, plan correspondingly about their proj...