Logo

How to collaborate

Bug Fix

Introduction

When addressing bugs in the application, there are two approaches to consider: normal fixes and hotfixes. This document outlines the differences between the two methods and provides guidance on when to use each one, as well as the branching and merging strategies involved.

Normal Fixes

Normal fixes are used for non-critical bugs that can wait until the next scheduled release. These fixes are developed on a separate branch based on the develop branch and are merged back into the develop branch upon completion. The process for normal fixes is as follows:

  1. Identify the bug and create a ticket with a detailed description.
  2. Create a new branch based on the develop branch. Name the branch using the following format: fix/<ticket-number>-short-description.
  3. Fix the bug on the newly created branch, following the Definition of Done (DoD) criteria.
  4. Test the bugfix to ensure it resolves the issue and doesn't introduce new problems.
  5. Create a pull request to merge the bugfix branch into the develop branch.
  6. Review and approve the pull request.
  7. Merge the bugfix branch into the develop branch.
  8. Deploy the develop branch to the staging environment for further testing and validation.
  9. Once the staging environment is tested and approved, merge the develop branch into the main branch.
  10. Deploy the main branch to the production environment.

Hotfixes

Hotfixes are used for critical bugs that need to be resolved immediately and cannot wait for the next scheduled release. These fixes are developed on a separate branch based on the main branch and are merged back into both the main and develop branches upon completion. The process for hotfixes is as follows:

  1. Identify the critical bug and create a ticket with a detailed description.
  2. Create a new branch based on the main branch. Name the branch using the following format: hotfix/<ticket-number>-short-description.
  3. Fix the bug on the newly created branch, following the Definition of Done (DoD) criteria.
  4. Test the hotfix to ensure it resolves the issue and doesn't introduce new problems.
  5. Create a pull request to merge the hotfix branch into the main branch.
  6. Review and approve the pull request.
  7. Merge the hotfix branch into the main branch.
  8. Deploy the main branch to the production environment immediately.
  9. Create another pull request to merge the hotfix branch into the develop branch.
  10. Review and approve the pull request.
  11. Merge the hotfix branch into the develop branch.
  12. Deploy the develop branch to the staging environment for further testing and validation.
Previous
New features and improvements