---
# System prepended metadata

title: Hotfix workflow
tags: [workflow, git, notes]

---

---
title: Hotfix workflow
tags: workflow,git,notes
---


Hotfix shall be done by branching from master and Pull request back to master after the development is done
1. Create hotfix branch from master
2. Develop fix for issue on the newly created hotfix branch
3. Test fix locally
4. Pull request to master and develop


**The following are additional process for different issue circumastances:**

- When Issue requires a replication of production database to debug and fix:
    1. Ask client for permission to replicate production database in local database.
    2. Lead/Client shall be the one to provide the dump copy of production database
    3. Dump provided database copy to local database,
    4. Debugging / Fix
    5. Revert the local database to previous state prior to the dump.
```When dumping to local, always revert the database to previous state before the dump after debugging and fix.```
