GSoC 2017 | Week 6: Port Vote Up/Down

This marks the end of week 6 of GSoC's coding period. My Project is Port Vote Up/Down to Drupal 8. More information about my project and GSoC can be found here. I am working with marvil07 this summer.

Agenda for the week

The agenda for Week 4 was to fix the PR, create tests for the routes as described in previous week's post. Apart from this, the AJAX integration was carried out.

I did the following things:

  • Created VoteUpDownTest which defines the test for the routes. 

    This test extends the BrowserTestCase, and is used to check if the given routes are present or not for a given entity.
  • Fixed the PR issues. 

    I fixed the minor issues of the PR which is an ongoing process of the project.
  • Added AJAX functionality to the links

    The endpoints were to be modified to have a '/nojs' prefix in order to have it working in the desired manner. In addition to this, a class 'use-ajax' was added to every anchor element. 

Project progress

By the end of this week, we have the following things done:

  • A plugin type named 'vud_widget'
  • Voting API implemented for basic use
  • AJAX API implemented
  • 2 tests, each for plugintype and for routes



The code written for the week could be found here

Agenda for next week

The agenda for the next week is to rectify the PRs, test the code using the Tests written and start off with field entity to display the plugins.