TESTING PATCHES - DRUPAL LADDER


A patch is a structured file that consist of differences between the one site of files and another. So, we are here going to test a patch for an issue queu.

Prerequisites: 

1. A sandbox version of Drupal is required for testing the patch for the issue whose git repository can be set up locally by following the instructions on the site


3. Basic Git knowledge 
  
Steps Required for Testing Patches:

1. Firstly, Go to the issue page and just read about the issue.

 

2. As per the instructions given in the Drupal Ladder, download the patch in comment 2 from  here and save it in your local sandbox directory.

3. Go to your sandbox site first and give a look to the issue.



4. Now, on terminal move to your Drupal8 Sandbox Root Directory and save the patch in the same directory.
Command for moving to your directory : cd path_location_for_your_directory



5. For applying the patch type the command 
  
git apply 1326088-rewrite-desription-for-url-alias.patch in the terminal
  
To see the status of the repository and the changes that have been made type:
  
$ git status (As done in above screenshot).

6. So, our patch has been successfully applied as it shows "modified : core/modules/path.path.module"

7. Now , go back to your sandbox site to see whether the issue has been solved or not.


8.So, the text below the field has been changed , so, that means, our patch has been applied and our issue has been solved successfully! 

9. After testing has been done, the changes applied by the patch can be undo by typing the command :

$ git reset --hard 

What did I learnt?

I learned a lot new things like I learned about an issue, and what are patches, how to work with them and how to solve the issue by testing a patch.

How will I utilize these skills?

It was a nice experience of testing the patches and I got a new skill too. So, I will test more patches thereby solving many more more issues and will thus try to contribute more and more to Drupal.

 










Comments